mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-26 12:26:11 +00:00
docs: zswap: fix shell command format
Format the shell commands as code block to keep the documentation in the same style Signed-off-by: Weiji Wang <nebclllo0444@gmail.com> Signed-off-by: Jonathan Corbet <corbet@lwn.net> Link: https://lore.kernel.org/r/20240319114253.2647-1-nebclllo0444@gmail.com
This commit is contained in:
parent
b75d85218f
commit
e9c44c1bea
1 changed files with 2 additions and 2 deletions
|
@ -155,7 +155,7 @@ Setting this parameter to 100 will disable the hysteresis.
|
||||||
|
|
||||||
Some users cannot tolerate the swapping that comes with zswap store failures
|
Some users cannot tolerate the swapping that comes with zswap store failures
|
||||||
and zswap writebacks. Swapping can be disabled entirely (without disabling
|
and zswap writebacks. Swapping can be disabled entirely (without disabling
|
||||||
zswap itself) on a cgroup-basis as follows:
|
zswap itself) on a cgroup-basis as follows::
|
||||||
|
|
||||||
echo 0 > /sys/fs/cgroup/<cgroup-name>/memory.zswap.writeback
|
echo 0 > /sys/fs/cgroup/<cgroup-name>/memory.zswap.writeback
|
||||||
|
|
||||||
|
@ -166,7 +166,7 @@ writeback (because the same pages might be rejected again and again).
|
||||||
When there is a sizable amount of cold memory residing in the zswap pool, it
|
When there is a sizable amount of cold memory residing in the zswap pool, it
|
||||||
can be advantageous to proactively write these cold pages to swap and reclaim
|
can be advantageous to proactively write these cold pages to swap and reclaim
|
||||||
the memory for other use cases. By default, the zswap shrinker is disabled.
|
the memory for other use cases. By default, the zswap shrinker is disabled.
|
||||||
User can enable it as follows:
|
User can enable it as follows::
|
||||||
|
|
||||||
echo Y > /sys/module/zswap/parameters/shrinker_enabled
|
echo Y > /sys/module/zswap/parameters/shrinker_enabled
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue