vmovercommitmemory
In Linux, vm.overcommit_memory (often discussed as vmovercommitmemory) is a kernel parameter that controls how the system handles memory allocations that may exceed available physical RAM and swap. The setting is exposed through /proc/sys/vm/overcommit_memory and can be changed at runtime with sysctl or by writing to the proc file. It influences allocation decisions, the likelihood of allocation failures, and the activation of the out-of-memory (OOM) killer.
The parameter has three values. 0 enables a heuristic overcommit policy where the kernel decides whether to
When vm.overcommit_memory is set to 2, the kernel uses vm.overcommit_ratio (a percentage) to determine how much
To view and set: cat /proc/sys/vm/overcommit_memory and echo 0 | sudo tee /proc/sys/vm/overcommit_memory. To make changes persistent,