Skip to contentSkip to conversation

doc: add description to dirtytime_expire_seconds

PATCH Applied Yang Shi 3 participants 4 messages May 30, 2018 – Jun 26, 2018

Subsystems (3)

v1 of 2 Applied Latest is v2 →

lore
Share & tools
lore

Yang Shi

author
#0 lore raw

PATCH 1/1 doc: add description to dirtytime_expire_seconds

commit 1efff914afac8a965ad63817ecf8861a927c2ace ("fs: add dirtytime_expire_seconds sysctl") introduced dirtytime_expire_seconds knob, but there is not description about it in Documentation/sysctl/vm.txt.

Add the description for it.

Cc Theodore Ts'o <[email protected]>

---
I didn't dig into the old review discussion about why the description was not added at the first place. I'm supposed every knob under /proc/sys should have a brief description.

 Documentation/sysctl/vm.txt | 11 +++++++++++
 1 file changed, 11 insertions(+)
Documentation/sysctl/vm.txt +11 -0
index 17256f2..f4f4f9c 100644
@@ -27,6 +27,7 @@ Currently, these files are in /proc/sys/vm:
 - dirty_bytes
 - dirty_expire_centisecs
 - dirty_ratio
+- dirtytime_expire_seconds
 - dirty_writeback_centisecs
 - drop_caches
 - extfrag_threshold
@@ -178,6 +179,16 @@ The total available memory is not equal to total system memory.
 
 ==============================================================
 
+dirtytime_expire_seconds
+
+When a lazytime inode is constantly having its pages dirtied, it with an
+updated timestamp will never get chance to be written out.  This tunable
+is used to define when dirty inode is old enough to be eligible for
+writeback by the kernel flusher threads. And, it is also used as the
+interval to wakeup dirtytime_writeback thread. It is expressed in seconds.
+
+==============================================================
+
 dirty_writeback_centisecs
 
 The kernel flusher threads will periodically wake up and write `old' data
Signature · 1 line
1.8.3.1
author
#1 lore raw

ping

Ted,

Any comment is appreciated.

Regards,

Yang

Quoted 46 lines · Yang Shi

commit 1efff914afac8a965ad63817ecf8861a927c2ace ("fs: add dirtytime_expire_seconds sysctl") introduced dirtytime_expire_seconds knob, but there is not description about it in Documentation/sysctl/vm.txt.

Add the description for it.

Cc Theodore Ts'o <[email protected]>

---
I didn't dig into the old review discussion about why the description was not added at the first place. I'm supposed every knob under /proc/sys should have a brief description.

  Documentation/sysctl/vm.txt | 11 +++++++++++
  1 file changed, 11 insertions(+)
Documentation/sysctl/vm.txt +11 -0
index 17256f2..f4f4f9c 100644
@@ -27,6 +27,7 @@ Currently, these files are in /proc/sys/vm:
  - dirty_bytes
  - dirty_expire_centisecs
  - dirty_ratio
+- dirtytime_expire_seconds
  - dirty_writeback_centisecs
  - drop_caches
  - extfrag_threshold
@@ -178,6 +179,16 @@ The total available memory is not equal to total system memory.
 
  ==============================================================
 
+dirtytime_expire_seconds
+
+When a lazytime inode is constantly having its pages dirtied, it with an
+updated timestamp will never get chance to be written out.  This tunable
+is used to define when dirty inode is old enough to be eligible for
+writeback by the kernel flusher threads. And, it is also used as the
+interval to wakeup dirtytime_writeback thread. It is expressed in seconds.
+
+==============================================================
+
  dirty_writeback_centisecs
 
  The kernel flusher threads will periodically wake up and write `old' data
#2 lore raw
In reply to Yang Shi
Quoted 30 lines · Yang Shi

commit 1efff914afac8a965ad63817ecf8861a927c2ace ("fs: add dirtytime_expire_seconds sysctl") introduced dirtytime_expire_seconds knob, but there is not description about it in Documentation/sysctl/vm.txt.

Add the description for it.

Cc Theodore Ts'o <[email protected]>

---
I didn't dig into the old review discussion about why the description was not added at the first place. I'm supposed every knob under /proc/sys should have a brief description.

 Documentation/sysctl/vm.txt | 11 +++++++++++
 1 file changed, 11 insertions(+)
Documentation/sysctl/vm.txt +1 -0
index 17256f2..f4f4f9c 100644
@@ -27,6 +27,7 @@ Currently, these files are in /proc/sys/vm:
 - dirty_bytes
 - dirty_expire_centisecs
 - dirty_ratio
+- dirtytime_expire_seconds
 - dirty_writeback_centisecs
 - drop_caches
 - extfrag_threshold

Documentation/sysctl/vm.txt The total available memory is not equal to total system memory. · line 184

Quoted 6 lines
Documentation/sysctl/vm.txt +3 -0
@@ -178,6 +179,16 @@ The total available memory is not equal to total system memory.
 
 ==============================================================
 
+dirtytime_expire_seconds
+
+When a lazytime inode is constantly having its pages dirtied, it with an

The second part of this sentence, after the comma doesn't parse.

Documentation/sysctl/vm.txt The total available memory is not equal to total system memory. · line 188

Quoted 4 lines
Documentation/sysctl/vm.txt +4 -0
+updated timestamp will never get chance to be written out.  This tunable
+is used to define when dirty inode is old enough to be eligible for
+writeback by the kernel flusher threads. And, it is also used as the
+interval to wakeup dirtytime_writeback thread. It is expressed in seconds.

I think the final sentence is a bit redundant, given the very explicit name of the knob.

Quoted 7 lines
Documentation/sysctl/vm.txt +3 -0
+
+==============================================================
+
 dirty_writeback_centisecs
 
 The kernel flusher threads will periodically wake up and write `old' data
maintainer Applied
#3 lore raw
In reply to Yang Shi
Quoted 6 lines · On Thu, 31 May 2018 07:56:53 +0800 Yang Shi <[email protected]> wrote:

commit 1efff914afac8a965ad63817ecf8861a927c2ace ("fs: add dirtytime_expire_seconds sysctl") introduced dirtytime_expire_seconds knob, but there is not description about it in Documentation/sysctl/vm.txt.

Add the description for it.

Applied to the docs tree, sorry for taking so long to get to it.

Thanks,

jon