Toward more predictable and reliable out-of-memory handling
Toward more predictable and reliable out-of-memory handling
Posted Apr 15, 2016 23:27 UTC (Fri) by oak (guest, #2786)In reply to: Toward more predictable and reliable out-of-memory handling by eternaleye
Parent article: Toward more predictable and reliable out-of-memory handling
> there are most certainly programs which allocate large amounts of address space without necessarily using that memory in the end.
For example programs that create threads. While the stack in main thread grows dynamically, rest of the threads have a fixed sized stack. While one can specify what sized stack threads get, most programs don't.
By default, thread stack sizes on Linux are currently 8MB. If you have a lot of programs that use a lot of threads, without overcommit that would eat quite a bit of RAM.