Re: [PATCH] Update Unevictable LRU and Mlocked Pages documentation

Rik van Riel
2008-08-01T14:06:23Z

On Fri, 01 Aug 2008 08:46:20 -0500
Christoph Lameter <cl@linux-foundation.org> wrote:

> Yes I know and I think the rationale is not convincing if the justification
> of the additional LRU is primarily for page migration.

Basically there are two alternatives:

1) treat unevictable pages just like we treat other pages in the
system, which means we get to use the same code to manipulate
them, the same code to isolate them (for migrate, etc), the
same code to keep track of the statistics, etc...

2) treat unevictable pages differently (not put them on a list)
and have special statistics code, special code to isolate
them, special code to detect them, etc...

Because pretty much every time we move a page onto or off of the
unevictable list, we also touch the list_head in the page for
other reasons (typically to add the page to or remove from a normal
LRU list), we thought it would make the most sense to go with the
approach that needs the least amount of special code for the
unevictable pages.

Besides, a locked page is locked - it should go through fewer
list manipulations than the normal file and anon pages ever will,
so if the list manipulation shows up as a bottleneck it will show
up as a bottleneck for the evictable pages first...

--
All rights reversed.