Skip to content

Commit c705a09

Browse files
committed
vm: Document dirty_bytes and dirty_background_bytes
1 parent 363f8ff commit c705a09

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

tuned/plugins/plugin_vm.py

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,28 @@
1414
class VMPlugin(base.Plugin):
1515
"""
1616
Tunes selected sysctl options in `/proc/sys/vm`, currently
17-
[option]`dirty_ratio`, [option]`dirty_background_ratio`,
1817
[option]`dirty_bytes`, and [option]`dirty_background_bytes`.
1918
See https://docs.kernel.org/admin-guide/sysctl/vm.html for detailed
2019
documentation of these options.
2120
22-
Additionaly enables or disables transparent huge pages depending on
21+
.Set dirty bytes to 64 MiB
22+
====
23+
----
24+
[vm]
25+
dirty_bytes=67108864
26+
----
27+
====
28+
29+
.Set dirty bytes to 10% of total available memory
30+
====
31+
Note that this updates the `/proc/sys/vm/dirty_ratio` sysctl option.
32+
----
33+
[vm]
34+
dirty_bytes=10%
35+
----
36+
====
37+
38+
Additionally enables or disables transparent huge pages depending on
2339
the value of the [option]`transparent_hugepages` option. The option
2440
can have one of three possible values: `always`, `madvise` and `never`.
2541

0 commit comments

Comments
 (0)