diff options
author | NeilBrown <neilb@suse.de> | 2006-06-26 03:27:37 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-06-26 12:58:37 -0400 |
commit | 16f17b39f385212b73278a76d482cdcaaebe6c02 (patch) | |
tree | b7b79b380257e7438516a8b38cd9fbd33284f64f /Documentation | |
parent | 9443a1d1f72c688646278c06d0a9a3c79e895325 (diff) |
[PATCH] md: increase the delay before marking metadata clean, and make it configurable
When a md array has been idle (no writes) for 20msecs it is marked as 'clean'.
This delay turns out to be too short for some real workloads. So increase it
to 200msec (the time to update the metadata should be a tiny fraction of that)
and make it sysfs-configurable.
Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/md.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Documentation/md.txt b/Documentation/md.txt index 03a13c462cf2..b19978e035fc 100644 --- a/Documentation/md.txt +++ b/Documentation/md.txt | |||
@@ -207,6 +207,15 @@ All md devices contain: | |||
207 | available. It will then appear at md/dev-XXX (depending on the | 207 | available. It will then appear at md/dev-XXX (depending on the |
208 | name of the device) and further configuration is then possible. | 208 | name of the device) and further configuration is then possible. |
209 | 209 | ||
210 | safe_mode_delay | ||
211 | When an md array has seen no write requests for a certain period | ||
212 | of time, it will be marked as 'clean'. When another write | ||
213 | request arrive, the array is marked as 'dirty' before the write | ||
214 | commenses. This is known as 'safe_mode'. | ||
215 | The 'certain period' is controlled by this file which stores the | ||
216 | period as a number of seconds. The default is 200msec (0.200). | ||
217 | Writing a value of 0 disables safemode. | ||
218 | |||
210 | sync_speed_min | 219 | sync_speed_min |
211 | sync_speed_max | 220 | sync_speed_max |
212 | This are similar to /proc/sys/dev/raid/speed_limit_{min,max} | 221 | This are similar to /proc/sys/dev/raid/speed_limit_{min,max} |