since 2 years we are using zram[0] in our production
networks and we love it. i like to kick out the package
compcache which is very outdated and just use the mainline
implementation. at the moment we are manually go into
kernel_menuconfig and switch on:

General setup:
---> [*] Support for paging of anonymous memory (swap)

Device Drivers
---> Staging drivers ---> [*] Compressed RAM block device support

which means:
CONFIG_FRONTSWAP is not set
CONFIG_SWAP=y
CONFIG_HIBERNATION is not set
CONFIG_MTD_SWAP is not set
CONFIG_ZRAM=y
CONFIG_ZRAM_DEBUG is not set
CONFIG_ZSMALLOC=y
CONFIG_LZO_COMPRESS=y
CONFIG_LZO_DECOMPRESS=y

also we use our own rc-file, so we can do
/etc/init.d/zram start|stop

https://github.com/bittorf/kalua/blob/master/openwrt-addons/etc/init.d/zram

IMHO it should be a menuconfig-entry in "base-system", because it
is fundamental for all 16mb routers. What i need for baking a Makefile
is a hint for a package which

a) activates some symbols in kernel-config
b) enforces building and loading of a kmodule
c) has an rc-file

I'am new to Make, so please help 8-) Also i like to have feedback.
For the motivation, the output of a WRT54G running 3.6.11:

root@openwrt:~ free
             total         used         free       shared      buffers
Mem:         13004        11420         1584            0          696
-/+ buffers:              10724         2280
Swap:         6140          584         5556

bye, bastian

[0] https://code.google.com/p/compcache/
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to