Posted Mar 10, 2011 21:49 UTC (Thu) by epa
In reply to: Memory overcommit
Parent article: Delaying the OOM killer
If you needed to have the total amount of real memory you malloc, most systems would need twice as much RAM.
Or just twice as much swap space - which is not an issue on a typical desktop or laptop hard disk these days. (On an SSD or mobile phone it may be different.)
If you have a huge swapfile but no overcommit, and if some applications allocate lots of memory and then unexpectedly start using all the memory they asked for, then your system will start swapping and running slowly. If you just overcommit memory, then when apps start using all the memory they allocated the system will become unstable and processes will be killed without warning by the OOM killer. It's clear which is preferable.
to post comments)