3 ms·
>“As long as a zombie is not removed from the system via a wait, it will consume a slot in the kernel process table, and if this table fills, it will not be pos
by m00dy 12y ago
>“As long as a zombie is not removed from the system via a wait, it will consume a slot in the kernel process table, and if this table fills, it will not be possible to create further processes.”
To the author->
Do you know how many processes a kernel can handle ?
root@lisa2:~# cat /proc/sys/kernel/pid_max
32768
fyi.
- FooBarWidget 12y agoMurphey's law. Do you know how many values a 32-bit integer can represent? Surely no one ever has to worry about overflows?
- moe 12y agoThis is actually a flexible limit; # echo 1000000 >/proc/sys/kernel/pid_max # cat /proc/sys/kernel/pid_max 1000000 But why would you run your containers with a ticking timebomb?
- ekimekim 12y agoSuppose a service has a timed routine that spawns a child every 10 seconds. Unfortunately, this child has a bug and starts leaking zombies to PID1. Congratulations, you now have approx 9 hours until your entire system stops being able to spawn new processes.
- m00dy 12y agoYou could have a nuclear war near the datacenter where you host that broken software & container. I think it has a better probability to exist in a real world.