lkml.org 
[lkml]   [2002]   [Jun]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [rfc] "laptop mode"
Hi!

> laptop_mode
> -----------
>
> Setting this entry to '1' will put the kernel's dirty data writeout
> algorithms into a mode which is better suited to laptop/notebook
> computers. This mode is specifically designed to minimise the
> frequency of disk spinups. Laptop mode works as follows:
>
> - Dirty data remains in memory for longer periods of time (controlled
> by laptop_writeback_centisecs).
>
> - If there is pending dirty data and the disk is spun up for any
> reason (even for a read) then all dirty data will be written back
> shortly afterwards. ie: when the disk is spun up, make good use of
> it.
>
> - When the decision is made to write back some dirty data, the kernel
> will write back all dirty data.

Nice!

> laptop_writeback_centisecs
> --------------------------
>
> This tunable determines the maximum age of dirty data when the machine
> is operating in Laptop mode. The default value is 30000 - five

Well, I run my notebooks in similar mode with writeback set essentialy to
infinity. I do it even on my home server....

> This implementation doesn't try to be very smart - there's a direct
> call out of do_ide_request() into the writeback code. This couldn't
> be done from within ll_rw_blk.c because then a write to the ramdisk
> would spin the disk up. Even as-is, a read from the IDE CDROM
> drive will cause the IDE hard disk to spin up and flush data, so

It would nice to do this per disk.... If you have server with one active
and one inactive disk, you want the inactive one to sleep.
Pavel
--
Philips Velo 1: 1"x4"x8", 300gram, 60, 12MB, 40bogomips, linux, mutt,
details at http://atrey.karlin.mff.cuni.cz/~pavel/velo/index.html.

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

\
 
 \ /
  Last update: 2005-03-22 13:26    [W:0.128 / U:0.304 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site