[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <461290D5.3020200@redhat.com>
Date: Tue, 03 Apr 2007 13:37:25 -0400
From: Rik van Riel <riel@...hat.com>
To: Ulrich Drepper <drepper@...hat.com>
CC: Andrew Morton <akpm@...ux-foundation.org>,
Linux Kernel <linux-kernel@...r.kernel.org>,
Jakub Jelinek <jakub@...hat.com>
Subject: Re: missing madvise functionality
Ulrich Drepper wrote:
> Rik van Riel wrote:
>> I already started looking into implementing this.
>>
>> Basically:
>> [...]
>
> Sounds good. Except:
>
>
>> 1) on MADV_DONTNEED, mark pages clean, not accessed and move them
>> to some "dontneed" LRU list.
>
> LRU is likely the wrong answer. The longer a page has not been reused
> the more likely it won't be. So, the dontneed-list should be a simple
> FIFO.
Well yes, it is.
If the page was accessed again, it will be moved to
the active list :)
--
Politics is the struggle between those who want to make their country
the best in the world, and those who believe it already is. Each group
calls the other unpatriotic.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists