Re: [PATCH 0/2] Make the Unevictable LRU available on NOMMU

From: Lee Schermerhorn
Date: Fri Mar 20 2009 - 12:10:56 EST


On Sat, 2009-03-14 at 09:27 +0900, Minchan Kim wrote:
> Hi, David.
>
> It seems your patch is better than mine. Thanks. :)
> But my concern is that as Peter pointed out, unevictable lru's
> solution is not fundamental one.
>
> He want to remove ramfs page from lru list to begin with.
> I guess Andrew also thought same thing with Peter.
>
> I think it's a fundamental solution. but it may be long term solution.
> This patch can solve NOMMU problem in current status.
>
> Andrew, What do you think about it ?

[been meaning to respond to this...]

I just want to point out [again :)] that removing the ramfs pages from
the lru will prevent them from being migrated--e.g., for mem hot unplug,
defrag or such. We currently have this situation with the new ram disk
driver [brd.c] which, unlike the old rd driver, doesn't place its pages
on the LRU.

Migration uses isolation of pages from lru to arbitrate between tasks
trying to migrate or reclaim the same page. If migration doesn't find
the page on the lru, it assumes that it lost the race and skips the
page. This is one of the reasons we chose to keep unevictable pages on
an lru-like list known to isolate_lru_page().

Something to keep in mind if/when this comes up again. Maybe we don't
care? Maybe ram disk/fs pages should come only from non-movable zone?
Or maybe migration can be reworked not to require the page be
"isolatable" from the lru [haven't thought about how one might do this].

Lee

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