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.
This is still an issue. I see that COMPCACHE is enabled in my lucid kernel: 2.6.32- 16-generic BLK_DEV_ COMPCACHE= m BLK_DEV_ COMPCACHE_ DEBUG is not set BLK_DEV_ COMPCACHE_ STATS is not set
$ grep COMPCACHE config-
CONFIG_
# CONFIG_
# CONFIG_
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.