Commit a45e3c5c authored by Bart Samwel's avatar Bart Samwel Committed by Linus Torvalds

[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: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 9f763dbd
...@@ -28,8 +28,9 @@ Contents ...@@ -28,8 +28,9 @@ Contents
The short story The short story
--------------- ---------------
If you just want to use it, run the laptop_mode control script (which is included To use laptop mode, you don't need to set any kernel configuration options
at the end of this document) as follows: or anything. You simply need to run the laptop_mode control script (which
is included in this document) as follows:
# laptop_mode start # laptop_mode start
...@@ -78,12 +79,13 @@ Caveats ...@@ -78,12 +79,13 @@ Caveats
The details The details
----------- -----------
Laptop-mode is controlled by the flag /proc/sys/vm/laptop_mode. When this Laptop-mode is controlled by the flag /proc/sys/vm/laptop_mode. This flag is
flag is set, any physical disk read operation (that might have caused the present for all kernels that have the laptop mode patch, regardless of any
hard disk to spin up) causes Linux to flush all dirty blocks. The result configuration options. When the flag is set, any physical disk read operation
of this is that after a disk has spun down, it will not be spun up anymore (that might have caused the hard disk to spin up) causes Linux to flush all dirty
to write dirty blocks, because those blocks had already been written blocks. The result of this is that after a disk has spun down, it will not be spun
immediately after the most recent read operation 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 To increase the effectiveness of the laptop_mode strategy, the laptop_mode
control script increases dirty_expire_centisecs and dirty_writeback_centisecs in control script increases dirty_expire_centisecs and dirty_writeback_centisecs in
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment