lkml.org 
[lkml]   [2000]   [Sep]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Notebook disk spindown
Andre Hedrick wrote:
> On Sat, 9 Sep 2000 rob@mur.org.uk wrote:
> > Would it be possible to detect when the disk spins up, and do the flush then?
> Yes if you had a continuious polling of power status wrt standby.

I think the following flushing policy would work almost as well, while
remaining generic:

- if there's a read that is not handled from the buffer cache, flush
(write) all dirty buffers
- if we need to flush (write) one dirty buffers, flush all others too

This wouldn't catch cases like an explicit spin-up without data I/O,
but I don't think this is much of a problem in real life.

- Werner

--
_________________________________________________________________________
/ Werner Almesberger, ICA, EPFL, CH werner.almesberger@ica.epfl.ch /
/_IN_N_032__Tel_+41_21_693_6621__Fax_+41_21_693_6610_____________________/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 12:38    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site