Sample Header Ad - 728x90

What is the appropriate value of vm.swappiness when using zram?

22 votes
4 answers
18577 views
I'm using zram on my computer as a compressed RAM-backed swap. When the system needs to swap something out, swapping it to a zram-backed swap file is more or less equivalent to compressing that data in-memory to free up space. This makes swapping very fast most of the time, relative to disk-backed swap. Because of this, I wonder if there is some performance to be gained by encouraging the system to swap out unused stuff more aggressively, since it can do so without actually hitting the disk? So has anyone messed around with, say, setting vm.swappiness to 100 while using zram? Would this be desirable? sysctl -w vm.swappiness=100
Asked by Ryan C. Thompson (5520 rep)
Mar 12, 2012, 09:26 PM
Last activity: Apr 8, 2024, 01:24 PM