Re:Linux Memory Overcommit (2007)
by rcxdude on Monday August 19, 2024 @03:19AM
(#41288599)
Do you run with swap in that case? I would suspect two possible reasons: firstly most software on linux is not run in that configuration and is thus unprepared for malloc failure: I would not be surprised if the return is not checked for many malloc() calls. Secondly, running without swap will cause bad performance (like, whole system freezing for a long time) failure modes as linux will evict cached code pages from RAM instead of rarely accessed data under memory pressure.
[ Parent
| on HN ]
Re:Linux Memory Overcommit (2007)
by taskforcegemini on Monday August 19, 2024 @03:44AM
(#41288771)
>Secondly, running without swap will cause bad performance (like, whole system freezing for a long time)
in my experience it is exactly the opposite. unless you swap onto ssds, swapping will grind the whole system to a halt, while without swap the oom-reaper will kill the culprit and you can immediately work on the system to check/fix things. result also depends on your applications of course.