> 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
> - When the decision is made to write back some dirty data, the kernel
> will write back all dirty data.
> 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.
-- 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 firstname.lastname@example.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/