| ▲ | loeg 3 days ago | |||||||||||||||||||||||||||||||||||||
How does disabling overcommit waste RAM? | ||||||||||||||||||||||||||||||||||||||
| ▲ | jcalvinowens 3 days ago | parent | next [-] | |||||||||||||||||||||||||||||||||||||
Because userspace rarely actually faults in all the pages it allocates. | ||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||
| ▲ | PunchyHamster 2 days ago | parent | prev [-] | |||||||||||||||||||||||||||||||||||||
overcommit 0 - Apache2 runs. - Apache2 takes 50MB. - Apache2 spawns 32 threads. - Apache2 takes 50MB + (per-thread vars * 32) overcommit 2 - Apache2 runs. - Apache2 takes 50MB. - Apache2 spawns 32 threads. - Apache2 takes 50MB + (5032) + (per-thread vars 32) Boom, Now your simple apache server serving some static files can't fit on 512MB VM and needs in excess of 1.7GB of memory just to allocate | ||||||||||||||||||||||||||||||||||||||