linux-stable/Documentation/admin-guide/blockdev
Sergey Senozhatsky 4eac932103 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/20240902105656.1383858-16-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>
2024-09-09 16:39:09 -07:00
..
drbd docs: admin-guide/blockdev: Remove digraph of node-states 2021-11-29 14:39:43 -07:00
floppy.rst Replace HTTP links with HTTPS ones: DRBD driver 2020-07-05 14:16:44 -06:00
index.rst docs: blockdev: change title to match section content 2022-06-01 09:30:53 -06:00
nbd.rst docs nbd: userspace NBD now favors github over sourceforge 2023-04-27 19:15:11 -06:00
paride.rst drivers/block: Remove PARIDE core and high-level protocols 2023-01-31 10:41:32 +09:00
ramdisk.rst Documentation/admin-guide: blockdev/ramdisk: remove use of "rdev" 2020-09-24 10:50:31 -06:00
zram.rst zram: introduce algorithm_params device attribute 2024-09-09 16:39:09 -07:00