Re: [PATCH] take pageout refcount into account for remove_exclusive_swap_page

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Rik van Riel <riel@...>
Cc: Daisuke Nishimura <nishimura@...>, <akpm@...>, <kosaki.motohiro@...>, <linux-kernel@...>
Date: Tuesday, May 13, 2008 - 3:02 pm

On Tue, 2008-05-13 at 14:09 -0400, Rik van Riel wrote:

Duh!  I was reading "page_mapcount()", 'cause that's what I've been
considering using for this purpose.


OK.  I can test the more general case down the road.


Well, all anon pages are shared right after fork(), right?  They only
become private once they've been written to.  I don't have a feel for
the relative numbers of shared anon vs COWed anon--either in general or
in the swap cache.


I suppose I can just go ahead and use this version with my stress load
and count the times when I could have freed the swap cache entry, but
didn't because it's mapped in multiple address spaces.  Later ... :)


--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH -mm 05/15] free swap space on swap-in/activation, Rik van Riel, (Mon Apr 28, 2:18 pm)
Re: [PATCH -mm 05/15] free swap space on swap-in/activation, Daisuke Nishimura, (Mon May 12, 7:21 am)
Re: [PATCH -mm 05/15] free swap space on swap-in/activation, Daisuke Nishimura, (Tue May 13, 9:00 am)
Re: [PATCH] take pageout refcount into account for remove_ex..., Lee Schermerhorn, (Tue May 13, 3:02 pm)
Re: [PATCH] take pageout refcount into account for remove_ex..., Daisuke Nishimura, (Wed May 14, 10:15 pm)