提交 7a6560e0 编写于 作者: A Andrea Righi 提交者: Linus Torvalds

documentation: clarify dirty_ratio and dirty_background_ratio description

The current documentation of dirty_ratio and dirty_background_ratio is a
bit misleading.

In the documentation we say that they are "a percentage of total system
memory", but the current page writeback policy, intead, is to apply the
percentages to the dirtyable memory, that means free pages + reclaimable
pages.

Better to be more explicit to clarify this concept.
Signed-off-by: NAndrea Righi <righi.andrea@gmail.com>
Signed-off-by: NKAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 9f1b16a5
...@@ -1384,15 +1384,18 @@ causes the kernel to prefer to reclaim dentries and inodes. ...@@ -1384,15 +1384,18 @@ causes the kernel to prefer to reclaim dentries and inodes.
dirty_background_ratio dirty_background_ratio
---------------------- ----------------------
Contains, as a percentage of total system memory, the number of pages at which Contains, as a percentage of the dirtyable system memory (free pages + mapped
the pdflush background writeback daemon will start writing out dirty data. pages + file cache, not including locked pages and HugePages), the number of
pages at which the pdflush background writeback daemon will start writing out
dirty data.
dirty_ratio dirty_ratio
----------------- -----------------
Contains, as a percentage of total system memory, the number of pages at which Contains, as a percentage of the dirtyable system memory (free pages + mapped
a process which is generating disk writes will itself start writing out dirty pages + file cache, not including locked pages and HugePages), the number of
data. pages at which a process which is generating disk writes will itself start
writing out dirty data.
dirty_writeback_centisecs dirty_writeback_centisecs
------------------------- -------------------------
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册