From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Thu, 31 Jul 2003 13:11:35 -0400 (EDT) From: "Raghu R. Arur" Subject: Re: Understanding page faults code in mm/memory.c In-Reply-To: Message-ID: References: <20030731111502.GA1591@eugeneteo.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org Return-Path: To: Mel Gorman Cc: Eugene Teo , linux-mm@kvack.org List-ID: No, what i meant was, if the rss value gets decremented when a page is put into swap cache, then why is it not incremented in do_wp_page when you fault for a page inside swap cache. if you fault, then you add it establish the pte to the page in the swap cache. dont you need to increment the rss value too ?? I know i am missing something over here. Please help me in understanding it correctly. Thanks, Raghu On Thu, 31 Jul 2003, Mel Gorman wrote: > On Thu, 31 Jul 2003, Raghu R. Arur wrote: > > > But when you put a page on to the swap cache will not the rss of the > > address spage decrease. if not then when will the rss value of the > > address space change. > > > > vmscan.c:try_to_swap_out() will decrement the rss before adding it to the > swap cache with add_to_swap_cache() > > -- > Mel Gorman > -- 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