Comment 5 for bug 381059

Revision history for this message
Martin Meyer (elreydetodo) wrote : Re: use compcache by default

This is still an issue. I see that COMPCACHE is enabled in my lucid kernel:
$ grep COMPCACHE config-2.6.32-16-generic
CONFIG_BLK_DEV_COMPCACHE=m
# CONFIG_BLK_DEV_COMPCACHE_DEBUG is not set
# CONFIG_BLK_DEV_COMPCACHE_STATS is not set

The module name now is ramzswap. Probing it creates /dev/ramzswap0, which you can call swapon on. Using it is simple:
# modprobe ramzswap
# swapon /dev/ramzswap0 -p 100

Doing that simple stuff will cause an area of compressed ramdisk to be your highest priority swap disk. A nice init script with a configurable variable to specify the size to use is all that is needed. A little configuration dialog to put in the Administration would be nice. Would also be nice if the Ubuntu installer would detect small-ram conditions and offer to configure it automatically at install time.