From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Wed, 04 Feb 2004 15:57:16 +0900 From: IWAMOTO Toshihiro Subject: Re: Active Memory Defragmentation: Our implementation & problems In-Reply-To: <1075874074.14153.159.camel@nighthawk> References: <20040204050915.59866.qmail@web9704.mail.yahoo.com> <1075874074.14153.159.camel@nighthawk> MIME-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII Message-Id: <20040204065717.EFB277049E@sv1.valinux.co.jp> Sender: owner-linux-mm@kvack.org Return-Path: To: Dave Hansen Cc: Alok Mooley , Linux Kernel Mailing List , linux-mm , "Martin J. Bligh" List-ID: 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: aart@kvack.org