Another example of zram memory compression: http://forums.debian.net/viewtopic.php?t=77627
Could someone be so kind to try this and post your results/performance?
Compressed Memory Swap
1. First log into a root terminal. To check if you have the zram module available and load it run:
2. Next create the device. In this case 50mb.
echo $((50*1024*1024)) > /sys/block/zram0/disksize
3. Then you have to make the compressed memory device into a swap and mount it as higher priority than other swap devices.
swapon -p 10 /dev/zram0
4. You can check if it works by running:
If it works the output should look like this:
Filename Type Size Used Priority
/dev/sda1 partition 2928636 0 -1
/dev/zram0 partition 51196 23924 10
5. In order to have this persistant upon reboots I just add the commands to /etc/rc.local such as this:
modprobe zram &&
echo $((50*1024*1024)) > /sys/block/zram0/disksize &&
mkswap /dev/zram0 &&
swapon -p 10 /dev/zram0 &&