4 ms·
This is fascinating. I always assumed the susceptibility to fork bombs was an inevitable consequence of the Unix process model optimizing for speed of fork. Do
by ghostpepper 2y ago
This is fascinating. I always assumed the susceptibility to fork bombs was an inevitable consequence of the Unix process model optimizing for speed of fork.
Do you know why/how BSD handles it better?
- chungy 2y agoI can't really speak to what FreeBSD is (or was?) doing special, but even on Linux these days with proper ulimits, fork bombs are pretty far from the disaster they once were.
- treadmill 2y agoIf I recall correctly, a certain amount of CPU, memory and processes has been reserved for root for a long time on FreeBSD. This would prevent the from bomb from exhausting all resources.