[PATCH] kernel: make zram honor available compressors when selecting the initial algo

Rui Salvaterra rsalvaterra at gmail.com
Thu Dec 2 04:18:35 PST 2021


Hi, Sven,

On Thu, 2 Dec 2021 at 01:49, Sven Roederer <devel-sven at geroedel.de> wrote:
>
> I'm trying to make a as small as possible kernel (to safe RAM / flash). As I'm
> already using the lzo-module I like to avoid to include both and keep the
> choice to select any combination of them.

I wholeheartedly agree with the objective, but I'm still not convinced
the benefits outweight the complexity of an extra kernel patch, for
two reasons. First, a system so RAM-constrained that can't afford an
extra worst-case two page allocation (8192 bytes, for the ~6 kiB
lzo-rle module) is most likely not a viable target for OpenWrt anymore
(ditto for the extra storage space). Second, if you're using zram and
you want to use lzo compression, what you really want is lzo-rle, as
it offers higher compression ratios.

Thanks,
Rui



More information about the openwrt-devel mailing list