diff options
| author | Sergey Senozhatsky <[email protected]> | 2024-09-02 19:56:10 +0900 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2024-09-09 16:39:11 -0700 |
| commit | 6a559ecd6e7ec26b691add74eab8ee3eb5dd2a87 (patch) | |
| tree | c87fd90e2c1d9bb12e5004e719445914c084cc5b /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | 1e673c8cf7f9c1156f615b7c00f224a8110070da (diff) | |
zram: add dictionary support to zstd backend
This adds support for pre-trained zstd dictionaries [1] Dictionary is
setup in params once (per-comp) and loaded to Cctx and Dctx by reference,
so we don't allocate extra memory.
TEST
====
*** zstd
/sys/block/zram0/mm_stat
1750654976 504565092 514203648 0 514203648 1 0 34204 34204
*** zstd dict=/etc/zstd-dict-amd64
/sys/block/zram0/mm_stat
1750638592 465851259 475373568 0 475373568 1 0 34185 34185
*** zstd level=8 dict=/etc/zstd-dict-amd64
/sys/block/zram0/mm_stat
1750642688 430765171 439955456 0 439955456 1 0 34185 34185
[1] https://github.com/facebook/zstd/blob/dev/programs/zstd.1.md#dictionary-builder
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Sergey Senozhatsky <[email protected]>
Cc: Minchan Kim <[email protected]>
Cc: Nick Terrell <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions