[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: nonblocking-vm.patch



On Wed, 4 Sep 2002, Andrew Morton wrote:

> > But only if enough IO completes. Otherwise we'll just end
> > up doing too much scanning for no gain again.
>
> Well we want to _find_ the just-completed IO, yes?  Which implies
> parking it onto the cold end of the inactive list at interrupt
> time, or a separate list or something.

In rmap14 I'm doing the following things when scanning the
inactive list:

1) if the page was referenced, activate
2) if the page is clean, reclaim

3) if the page is written to disk, keep it at the end of
   the list where we start scanning from

4) if we don't write the page to disk (I don't submit too
   much IO at once) we move it to the far end of the inactive
   list

This means that the pages for which IO completed will be found
somewhere near the start of the list.

regards,

Rik
-- 
Bravely reimplemented by the knights who say "NIH".

http://www.surriel.com/		http://distro.conectiva.com/

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/