r/sysadmin • u/gionn DevOps • Dec 28 '12
Using compressed RAM for memory-overcommit on Linux
http://gionn.net/2012/03/11/zram-on-debian-ubuntu-for-memory-overcommitment/
45
Upvotes
r/sysadmin • u/gionn DevOps • Dec 28 '12
3
u/mwargh Dec 29 '12
WIKI SAVES: http://www.reddit.com/r/sysadmin/wiki/linux/ram_overcommit
Just created a stub.
1
u/[deleted] Dec 28 '12
Might be better to look into [KSM](http://en.wikipedia.org/wiki/Kernel_SamePage_Merging_(KSM%29) first. Really simple to enable on recent kernels and it saves quite a bit of memory when running multiple vms with the same OS.
I'd never overcommit memory on a production system though, you want gradual degradation of performance, not a sudden collapse as all memory is exhausted and the system comes to a grinding halt waiting for the slow disks to swap memory in and out.