Systemd vs. Docker
Systemd vs. Docker
Posted Feb 27, 2016 23:42 UTC (Sat) by Cyberax (✭ supporter ✭, #52523)In reply to: Systemd vs. Docker by paulj
Parent article: Systemd vs. Docker
Forkbombs are more interesting - you CAN cause PID starvation by launching a forkbomb in an unconfined cgroup. https://www.kernel.org/doc/Documentation/cgroup-v1/pids.txt can help against it.
Another problematic case are PID races. SIGSTOP+SIGKILL does the job reliably, SIGSTOP can't be ignored and also forces the process to stick around.
Posted Feb 28, 2016 3:43 UTC (Sun)
by mchapman (subscriber, #66589)
[Link] (1 responses)
It might be possible for two or more cooperating processes to circumvent this by continually SIGCONTing each other, forking new processes along the way. cortana's suggestion of using the freezer controller seems like a better approach.
Posted Feb 28, 2016 6:44 UTC (Sun)
by Cyberax (✭ supporter ✭, #52523)
[Link]
It appears that process handles or PID namespaces is the only reliable way.
Systemd vs. Docker
Systemd vs. Docker