diff options
| author | Sergey Senozhatsky <[email protected]> | 2024-09-02 19:56:03 +0900 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2024-09-09 16:39:09 -0700 |
| commit | 4eac932103a5d8c3a1bdf6776dbc1a178c31d896 (patch) | |
| tree | 8a2caaf827dcd6150c15d3f6571b99a655285227 /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | eb826a01909a2d39660ed5a486ebc43e831254bc (diff) | |
zram: introduce algorithm_params device attribute
This attribute is used to setup compression algorithms' parameters, so we
can tweak algorithms' characteristics. At this point only 'level' is
supported (to be extended in the future).
Each call sets up parameters for one particular algorithm, which should be
specified either by the algorithm's priority or algo name. This is
expected to be called after corresponding algorithm is selected via
comp_algorithm or recomp_algorithm.
echo "priority=0 level=1" > /sys/block/zram0/algorithm_params
or
echo "algo=zstd level=1" > /sys/block/zram0/algorithm_params
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/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions