Messages in this thread | | | Date | Mon, 30 Nov 2009 22:32:01 -0800 | From | Chris Wright <> | Subject | Re: [PATCH 2/9] ksm: let shared pages be swappable |
| |
* KAMEZAWA Hiroyuki (kamezawa.hiroyu@jp.fujitsu.com) wrote: > Hmm. Can KSM coalesce 10000+ of pages to a page ?
Yes. The zero page is a prime example of this.
> In such case, lru > need to scan 10000+ ptes with 10000+ anon_vma->lock and 10000+ pte locks > for reclaiming a page.
Would likely be a poor choice too. With so many references it's likely to be touched soon and swapped right back in.
thanks, -chris
| |