What is memory overcommit?
AdvancedConceptStorage & Memory
Answer
Linux lets processes allocate more virtual memory than exists, betting most will never touch it all. vm.overcommit_memory:
0(default): heuristic, refuses obviously excessive allocations.1: always allow (Redis recommends this to avoid fork failures onBGSAVE).2: strict; commit limit = swap + RAM ×overcommit_ratio%.mallocfails instead of OOM later.
Check CommitLimit and Committed_AS in /proc/meminfo.
More on Storage & Memory
How do you list disks, partitions and filesystems?IntermediateMBR vs GPT partition tables?IntermediateWalk through adding a new disk and mounting it permanently.IntermediateExplain the six fields of an /etc/fstab line.IntermediateWhy use UUIDs and `nofail` in fstab?IntermediateWhat does a bad fstab entry do, and how do you recover?Advanced