aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorBart Samwel <bart@samwel.tk>2004-06-26 21:01:19 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-06-26 21:01:19 -0700
commita45e3c5c3482581bf0247247db2826706d774875 (patch)
tree973f9b63ecdca8a1ae27c0687b5abc0e2d7940f1 /Documentation
parent9f763dbd8bafa29ddc1c93a6d1413381fc0f8935 (diff)
downloadhistory-a45e3c5c3482581bf0247247db2826706d774875.tar.gz
[PATCH] laptop-mode documentation update
The laptop mode docs don't say that no kernel configuration changes are needed to use laptop mode. That's caused some people to look for the option. This patch makes the doc explicitly mention the lack of an option. Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/laptop-mode.txt18
1 files changed, 10 insertions, 8 deletions
diff --git a/Documentation/laptop-mode.txt b/Documentation/laptop-mode.txt
index 423ecefb7bc147..0058e6093f7942 100644
--- a/Documentation/laptop-mode.txt
+++ b/Documentation/laptop-mode.txt
@@ -28,8 +28,9 @@ Contents
The short story
---------------
-If you just want to use it, run the laptop_mode control script (which is included
-at the end of this document) as follows:
+To use laptop mode, you don't need to set any kernel configuration options
+or anything. You simply need to run the laptop_mode control script (which
+is included in this document) as follows:
# laptop_mode start
@@ -78,12 +79,13 @@ Caveats
The details
-----------
-Laptop-mode is controlled by the flag /proc/sys/vm/laptop_mode. When this
-flag is set, any physical disk read operation (that might have caused the
-hard disk to spin up) causes Linux to flush all dirty blocks. The result
-of this is that after a disk has spun down, it will not be spun up anymore
-to write dirty blocks, because those blocks had already been written
-immediately after the most recent read operation
+Laptop-mode is controlled by the flag /proc/sys/vm/laptop_mode. This flag is
+present for all kernels that have the laptop mode patch, regardless of any
+configuration options. When the flag is set, any physical disk read operation
+(that might have caused the hard disk to spin up) causes Linux to flush all dirty
+blocks. The result of this is that after a disk has spun down, it will not be spun
+up anymore to write dirty blocks, because those blocks had already been written
+immediately after the most recent read operation.
To increase the effectiveness of the laptop_mode strategy, the laptop_mode
control script increases dirty_expire_centisecs and dirty_writeback_centisecs in