lkml.org 
[lkml]   [2011]   [Feb]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] ksm: add vm_stat and meminfo entry to reflect pte mapping to ksm pages
From
Date
On Sat, 2011-02-26 at 22:56 +0800, Nai Xia wrote
> @@ -904,6 +905,10 @@ static int try_to_merge_one_page(struct vm_area_struct
> *vma,
> */
> set_page_stable_node(page, NULL);
> mark_page_accessed(page);
> + if (mapcount)
> + add_zone_page_state(page_zone(page),
> + NR_KSM_PAGES_SHARING,
> + mapcount);
> err = 0;
> } else if (pages_identical(page, kpage))
> err = replace_page(vma, page, kpage, orig_pte);

If you're going to store this per-zone, does it make sense to have it
show up in /proc/zoneinfo? meminfo's also getting pretty porky these
days, so I almost wonder if it should stay in zoneinfo only.

-- Dave



\
 
 \ /
  Last update: 2011-03-01 03:25    [W:0.064 / U:9.248 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site