diff options
| author | Sergey Senozhatsky <senozhatsky@chromium.org> | 2024-09-02 19:55:57 +0900 |
|---|---|---|
| committer | Andrew Morton <akpm@linux-foundation.org> | 2024-09-09 16:39:08 -0700 |
| commit | dbf2763cec21f4e56420c3a31bf6f0ebf81b5ab7 (patch) | |
| tree | cf2b88a4544284ff38e81f09676354507772c68d /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | zram: add zstd compression backend support (diff) | |
| download | linux-dbf2763cec21f4e56420c3a31bf6f0ebf81b5ab7.tar.gz linux-dbf2763cec21f4e56420c3a31bf6f0ebf81b5ab7.zip | |
zram: pass estimated src size hint to zstd
zram works with PAGE_SIZE buffers, so we always know exact size of the
source buffer and hence can pass estimated_src_size to zstd_get_params().
This hint on x86_64, for example, reduces the size of the work memory
buffer from 1303520 bytes down to 90080 bytes. Given that compression
streams are per-CPU that's quite some memory saving.
Link: https://lkml.kernel.org/r/20240902105656.1383858-10-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>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions
