[linux-mm-cc] Compressed RAM based swap device
Nitin Gupta
nitingupta910 at gmail.com
Mon Dec 17 02:06:40 EST 2007
Hi,
FYI...
New project repository at: http://code.google.com/p/ccache/
This new implementation of compressed cache that will not require any kernel
patching.
Focus for this implementation will be embedded devices not desktops.
Notes:
- Compress only anonymous pages.
- Only LZO compression supported.
- Since LZO is hidden option in kernel config and also distro kernels don't
ship with LZO modules by default, I have temporarily imported LZO algo from
Linux kernel.
- 'make' in ccache will create both ccache and ccache/lzo* modules.
So, to use ccache, do:
- insmod ccache/ccache.ko
- insmod ccache/lzo/lzo_compress.ko
- insmod ccache/lzo/lzo_decompress.ko
- mknod /dev/ccache b 253 0 (replace 253 with whatever Major no. is assigned
to ccache - cat /proc/devices | grep ccache)
- swapon /dev/ccache
Currently, code is very minimal - ccache size is hardcoded to 10 pages etc.
etc... but it conveys the idea :)
Cheers,
Nitin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.laptop.org/pipermail/linux-mm-cc/attachments/20071217/ac0b4905/attachment.htm
More information about the linux-mm-cc
mailing list