* Re: + ksm-add-vm_stat-and-meminfo-entry-to-reflect-pte-mapping-to-ksm-pages.patch added to -mm tree [not found] <201103012341.p21Nf64e006469@imap1.linux-foundation.org> @ 2011-03-24 12:53 ` Johannes Weiner 2011-03-24 13:20 ` Rik van Riel 0 siblings, 1 reply; 2+ messages in thread From: Johannes Weiner @ 2011-03-24 12:53 UTC (permalink / raw) To: akpm Cc: nai.xia, aarcange, chrisw, hugh.dickins, ieidus, riel, mm-commits, linux-mm, linux-kernel On Tue, Mar 01, 2011 at 03:41:06PM -0800, akpm@linux-foundation.org wrote: > diff -puN include/linux/mmzone.h~ksm-add-vm_stat-and-meminfo-entry-to-reflect-pte-mapping-to-ksm-pages include/linux/mmzone.h > --- a/include/linux/mmzone.h~ksm-add-vm_stat-and-meminfo-entry-to-reflect-pte-mapping-to-ksm-pages > +++ a/include/linux/mmzone.h > @@ -115,6 +115,9 @@ enum zone_stat_item { > NUMA_OTHER, /* allocation from other node */ > #endif > NR_ANON_TRANSPARENT_HUGEPAGES, > +#ifdef CONFIG_KSM > + NR_KSM_PAGES_SHARING, > +#endif > NR_VM_ZONE_STAT_ITEMS }; This adds a zone stat item without a corresponding entry in vm_stat_text. As a result, all vm event entries in /proc/vmstat show the value of the respective previous counter. Signed-off-by: Johannes Weiner <hannes@cmpxchg.org> --- diff --git a/mm/vmstat.c b/mm/vmstat.c index 5ce2d0a..fca991c 100644 --- a/mm/vmstat.c +++ b/mm/vmstat.c @@ -886,6 +886,9 @@ static const char * const vmstat_text[] = { "numa_other", #endif "nr_anon_transparent_hugepages", +#ifdef CONFIG_KSM + "nr_ksm_pages_sharing", +#endif "nr_dirty_threshold", "nr_dirty_background_threshold", -- 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/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a> ^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: + ksm-add-vm_stat-and-meminfo-entry-to-reflect-pte-mapping-to-ksm-pages.patch added to -mm tree 2011-03-24 12:53 ` + ksm-add-vm_stat-and-meminfo-entry-to-reflect-pte-mapping-to-ksm-pages.patch added to -mm tree Johannes Weiner @ 2011-03-24 13:20 ` Rik van Riel 0 siblings, 0 replies; 2+ messages in thread From: Rik van Riel @ 2011-03-24 13:20 UTC (permalink / raw) To: Johannes Weiner Cc: akpm, nai.xia, aarcange, chrisw, hugh.dickins, mm-commits, linux-mm, linux-kernel On 03/24/2011 08:53 AM, Johannes Weiner wrote: > On Tue, Mar 01, 2011 at 03:41:06PM -0800, akpm@linux-foundation.org wrote: >> diff -puN include/linux/mmzone.h~ksm-add-vm_stat-and-meminfo-entry-to-reflect-pte-mapping-to-ksm-pages include/linux/mmzone.h >> --- a/include/linux/mmzone.h~ksm-add-vm_stat-and-meminfo-entry-to-reflect-pte-mapping-to-ksm-pages >> +++ a/include/linux/mmzone.h >> @@ -115,6 +115,9 @@ enum zone_stat_item { >> NUMA_OTHER, /* allocation from other node */ >> #endif >> NR_ANON_TRANSPARENT_HUGEPAGES, >> +#ifdef CONFIG_KSM >> + NR_KSM_PAGES_SHARING, >> +#endif >> NR_VM_ZONE_STAT_ITEMS }; > > This adds a zone stat item without a corresponding entry in > vm_stat_text. As a result, all vm event entries in /proc/vmstat show > the value of the respective previous counter. > > Signed-off-by: Johannes Weiner<hannes@cmpxchg.org> Acked-by: Rik van Riel <riel@redhat.com> -- All rights reversed -- 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/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a> ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-03-24 13:20 UTC | newest] Thread overview: 2+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [not found] <201103012341.p21Nf64e006469@imap1.linux-foundation.org> 2011-03-24 12:53 ` + ksm-add-vm_stat-and-meminfo-entry-to-reflect-pte-mapping-to-ksm-pages.patch added to -mm tree Johannes Weiner 2011-03-24 13:20 ` Rik van Riel
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).