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

Re: Active Memory Defragmentation: Our implementation & problems



At 03 Feb 2004 21:54:34 -0800,
Dave Hansen wrote:
> Moving file-backed pages is mostly handled already.  You can do a
> regular page-cache lookup with find_get_page(), make your copy,
> invalidate the old one, then readd the new one.  The invalidation can be
> done in the same style as shrink_list().

Actually, it is a bit more complicated.
I have implemented similar functionality for memory hotremoval.

See my post about memory hotremoval
http://marc.theaimsgroup.com/?l=linux-kernel&m=107354781130941&w=2
for details.
remap_onepage() and remapd() in the patch are the main functions.

--
IWAMOTO Toshihiro

--
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/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>