Re: PATCH: rewritten bdflush

Rik van Riel (riel@nl.linux.org)
Sat, 15 May 1999 09:46:10 +0200 (CEST)


On Thu, 13 May 1999, Steve Willer wrote:
> On Thu, 13 May 1999, Rik van Riel wrote:
>
> > I think we might want to change the kernel's behaviour
> > to include the following things:
> > - don't flush if:
> > - there are less than X dirty buffers &&
> > - we haven't recently read from the disk
>
> You're ignoring very important issues of recoverability. If a
> process is doing work that involves writing to disk, then it
> should be written out regardless of whether the disk is shut down
> or not.

This only is powersaving mode. For some uses it can be good
to use the above algorithm, for other uses you don't want to
use it.

> > - flush if:
> > - there are more than X dirty buffers ||
> > - we issued a read from the disk more than
> > Y and less than Z seconds ago ||
> > - the dirty buffer is FAR too old
> > (say, an hour or so)
>
> You can do the first and last one by tweaking the bdflush parameters.

But the second (write when we need to spin up the disk) is
very important for notebook owners.

Rik -- Open Source: you deserve to be in control of your data.
+-------------------------------------------------------------------+
| Le Reseau netwerksystemen BV: http://www.reseau.nl/ |
| Linux Memory Management site: http://www.linux.eu.org/Linux-MM/ |
| Nederlandse Linux documentatie: http://www.nl.linux.org/ |
+-------------------------------------------------------------------+

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