Hauke,
I tested this patch today and just wanted to give some feedback. The
patch applies cleanly and installs everything correctly, however it does
not activate the swap on boot up. Executing '/etc/init.d/zram start'
successfully starts. There is also a uci error when starting when the
'zram_size_mb' is not set.
On 01/03/2013 03:17 PM, Hauke Mehrtens wrote:
On 12/31/2012 05:07 PM, Bastian Bittorf wrote:
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/
Nice work Bastian.
I would not add it as a global option, but as a module, so it could also
be used by someone not building his own image, but using a prebuild
image, with kernel 3.6.11 I had a problem building this as a module.
The swap utils e.g. from busybox are also needed, this increases the
busybox binary by 3.2K uncompressed.
CONFIG_BUSYBOX_CONFIG_MKSWAP=y
CONFIG_BUSYBOX_CONFIG_SWAPONOFF=y
Attached is a patch adding zram as a module. The default image without
zram should be 3.2K bigger (uncompressed) but there are no more
influences to a image without zram support. Bastian could you test this
and give feedback?
Hauke
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel