[PATCH v0.5] mtd-utils: mkfs.ubifs: Add support for LZ4HC compression
Konstantin Tokarev
annulen at yandex.ru
Sat Oct 5 11:23:02 PDT 2013
05.10.2013, 18:48, "Elie De Brauwer" <eliedebrauwer at gmail.com>:
> All,
>
> After some time to do some testing this is a second version of the
> same patch. Now lz4hc gets actually used. However at this moment in
> time only improvement in terms of cpu time is seen, but lz4hc in this
> context seems to behave worse than LZO, on my local system:
>
> -rw-r--r-- 1 edb edb 28M Oct 5 16:22 imag.lz4hc
> -rw-r--r-- 1 root root 25M Oct 5 16:22 imag.lzo
> -rw-r--r-- 1 root root 43M Oct 5 16:11 imag.none
> -rw-r--r-- 1 root root 22M Oct 5 16:30 imag.zlib
>
> The only thing which comes immediately to mind is that due to the size
> of the chunks (in my case large block being compressed is 4k) lz4hc
> isn't starting to pay off ..
Looks like it might be useful to have mixed lz4hc/lzo mode - lz4hc is faster,
lzo provides better ratio, and both don't use additional memory for decompression.
I did no speed benchmarks yet though.
It also might be that lz4 has tuning parameters which may be useful for rootfs
compression in case when most of files are not modified most of the times, i.e.
trade compression time to space efficiency while keeping decompression speed.
--
Regards,
Konstantin
More information about the linux-mtd
mailing list