Home
last modified time | relevance | path

Searched hist:"1 e673c8cf7f9c1156f615b7c00f224a8110070da" (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/block/zram/
H A Dbackend_lz4hc.cdiff 1e673c8cf7f9c1156f615b7c00f224a8110070da Mon Sep 02 12:56:09 CEST 2024 Sergey Senozhatsky <senozhatsky@chromium.org> zram: add dictionary support to lz4hc

Support pre-trained dictionary param. Just like lz4, lz4hc doesn't
mandate specific format of the dictionary and zstd --train can be used to
train a dictionary for lz4, according to [1].

TEST
====

*** lz4hc
/sys/block/zram0/mm_stat
1750638592 608954620 621031424 0 621031424 1 0 34288 34288

*** lz4hc dict=/etc/lz4-dict-amd64
/sys/block/zram0/mm_stat
1750671360 505068582 514994176 0 514994176 1 0 34278 34278

[1] https://github.com/lz4/lz4/issues/557

Link: https://lkml.kernel.org/r/20240902105656.1383858-22-senozhatsky@chromium.org
Signed-off-by: Sergey Senozhatsky <senozhatsky@chromium.org>
Cc: Minchan Kim <minchan@kernel.org>
Cc: Nick Terrell <terrelln@fb.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>