
Daniel J Jitnah wrote:
Why not zram? Thanks for that. Will definitely investigate further!
I drop this bodge into rc.local. It turns a quarter of your RAM into compressed swap (using DEFLATE). Using LZ4 would probably be better if you have a new kernel. modprobe zram && awk '/^MemTotal/{printf("%dk",$2*0.25)}' /proc/meminfo >/sys/block/zram0/disksize && mkswap /dev/zram0 && swapon /dev/zram0 && sysctl vm.swappiness=80 This is how it looks in action: total used free Mem: 1884 954 930 -/+ buffers/cache: 222 1662 Swap: 511 0 511 So you see, I have no experience about whether it's any GOOD :-) IIRC the swappiness=80 was to encourage that last zero to grow.