Re: [rfc] "laptop mode"

From: Albert D. Cahalan (acahalan@cs.uml.edu)
Date: Tue Jun 04 2002 - 22:41:57 EST


Andrew Morton writes:

> 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.

Also write out everything just before stopping the disk.
Don't let the disk stop if there is any dirty data.
-
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/



This archive was generated by hypermail 2b29 : Fri Jun 07 2002 - 22:00:23 EST