Re:Where Everything Went Wrong: Error Handling and Error Mes...
by mlindner on Friday February 19, 2021 @08:07PM
(#26200312)
So you want your kernel to panic whenever it runs out of memory?
[ Parent
| on HN ]
Re:Where Everything Went Wrong: Error Handling and Error Mes...
by xxpor on Friday February 19, 2021 @09:46PM
(#26201017)
Yes, for servers! Hard failures are much easier to deal with than soft-not-dead-but-still-useless states.
echo 1 > proc/sys/vm/panic_on_oom
Re:Where Everything Went Wrong: Error Handling and Error Mes...
by mlindner on Sunday February 21, 2021 @08:57PM
(#26219820)
Interesting. The company I just left sells a load balancer/application server/do-everything-box and one of the rules of the coding is that it must never crash. Even out of memory errors need to be recovered from and we shut off the kernel feature that makes malloc not actually malloc memory.