lkml.org 
[lkml]   [2011]   [Mar]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: + ksm-add-vm_stat-and-meminfo-entry-to-reflect-pte-mapping-to-ksm-pages.patch added to -mm tree
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


\
 
 \ /
  Last update: 2011-03-24 14:23    [W:0.025 / U:0.100 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site