Skip to contentSkip to conversation

Documentation: add description of dirty_background_centisecs

PATCH In review Namjae Jeon 2 participants 2 messages Sep 16, 2012 – Sep 20, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v3 2/2 Documentation: add description of dirty_background_centisecs

From: Namjae Jeon <[email protected]>

This commit adds dirty_background_centisecs description in bdi sysfs documentation.

---
 Documentation/ABI/testing/sysfs-class-bdi |   25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)
Documentation/ABI/testing/sysfs-class-bdi +25 -0
index 5f50097..6869736 100644
@@ -48,3 +48,28 @@ max_ratio (read-write)
 	most of the write-back cache.  For example in case of an NFS
 	mount that is prone to get stuck, or a FUSE mount which cannot
 	be trusted to play fair.
+
+dirty_background_centisecs (read-write)
+
+	It is used to start early writeback of given bdi once bdi dirty
+	data exceeds product of average write bandwidth and
+	dirty_background_centisecs. It works in parallel of
+	dirty_writeback_centsecs and dirty_expire_interval based periodic
+	flushing mechanism.
+
+        It is mainly useful for tuning writeback speed at 'NFS Server'
+	sothat NFS client could see better write speed.
+	A good use case is setting it to around 100 (1 second) in the NFS
+	server for improving NFS write performance. Note that it's not
+	recommended to set it to a too small value, which might lead to
+	unnecessary flushing for small IO size.
+        Setting it to 0 disables the feature.
+
+	However, sometimes it may not match user expectations as it is based
+	on bdi write bandwidth estimation. The users should not expect this
+	threshold to work accurately.
+	Write bandwidth estimation is a best effort to estimate bdi write
+	speed bandwidth. But it can be wildly wrong in certain situations
+	such as sudden change of workload (including the workload startup
+	stage), or if there are no heavy writes since boot, in which case
+	there is no reasonable estimation yet.
Signature · 1 line
1.7.9.5
#1 lore raw

[ add CC ]

Quoted 52 lines · Namjae Jeon

From: Namjae Jeon <[email protected]>

This commit adds dirty_background_centisecs description in bdi sysfs documentation.

---
 Documentation/ABI/testing/sysfs-class-bdi |   25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)
Documentation/ABI/testing/sysfs-class-bdi +25 -0
index 5f50097..6869736 100644
@@ -48,3 +48,28 @@ max_ratio (read-write)
 	most of the write-back cache.  For example in case of an NFS
 	mount that is prone to get stuck, or a FUSE mount which cannot
 	be trusted to play fair.
+
+dirty_background_centisecs (read-write)
+
+	It is used to start early writeback of given bdi once bdi dirty
+	data exceeds product of average write bandwidth and
+	dirty_background_centisecs. It works in parallel of
+	dirty_writeback_centsecs and dirty_expire_interval based periodic
+	flushing mechanism.
+
+        It is mainly useful for tuning writeback speed at 'NFS Server'
+	sothat NFS client could see better write speed.
+	A good use case is setting it to around 100 (1 second) in the NFS
+	server for improving NFS write performance. Note that it's not
+	recommended to set it to a too small value, which might lead to
+	unnecessary flushing for small IO size.
+        Setting it to 0 disables the feature.
+
+	However, sometimes it may not match user expectations as it is based
+	on bdi write bandwidth estimation. The users should not expect this
+	threshold to work accurately.
+	Write bandwidth estimation is a best effort to estimate bdi write
+	speed bandwidth. But it can be wildly wrong in certain situations
+	such as sudden change of workload (including the workload startup
+	stage), or if there are no heavy writes since boot, in which case
+	there is no reasonable estimation yet.
Signature · 7 lines
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>