zram-swap: default to lzo instead of lzo-rle compression
Sven Roederer
devel-sven at geroedel.de
Thu Sep 17 19:38:29 EDT 2020
Am Donnerstag, 17. September 2020, 11:38:42 CEST schrieb e9hack:
>The kernel module lzo-rle is still missing. To solve this, it must be
> installed on the root-fs:
>
> diff --git a/package/kernel/linux/modules/lib.mk
> b/package/kernel/linux/modules/lib.mk index 1289cc1f25..fade8a5cfd 100644
> --- a/package/kernel/linux/modules/lib.mk
> +++ b/package/kernel/linux/modules/lib.mk
> @@ -109,9 +109,10 @@ define KernelPackage/lib-lzo
> HIDDEN:=1
> FILES:= \
> $(LINUX_DIR)/crypto/lzo.ko \
> + $(LINUX_DIR)/crypto/lzo-rle.ko at ge5.1 \
> $(LINUX_DIR)/lib/lzo/lzo_compress.ko \
> $(LINUX_DIR)/lib/lzo/lzo_decompress.ko
> - AUTOLOAD:=$(call AutoProbe,lzo lzo_compress lzo_decompress)
> + AUTOLOAD:=$(call AutoProbe,lzo lzo-rle lzo_compress lzo_decompress)
> endef
>
Hartmut,
I had a short test wit zram-swap these days and also saw this.
I fixed this by changing the default compression-algo to lzo via etc/config/
system. My intention was not to use an additional kernel-module which will
consume additional RAM which I just won by using zram ... (Indeed I did not
check the numbers and only assumed)
Sven
More information about the openwrt-devel
mailing list