lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20110324125316.GA2310@cmpxchg.org>
Date:	Thu, 24 Mar 2011 13:53:16 +0100
From:	Johannes Weiner <hannes@...xchg.org>
To:	akpm@...ux-foundation.org
Cc:	nai.xia@...il.com, aarcange@...hat.com, chrisw@...s-sol.org,
	hugh.dickins@...cali.co.uk, ieidus@...hat.com, riel@...hat.com,
	mm-commits@...r.kernel.org, linux-mm@...ck.org,
	linux-kernel@...r.kernel.org
Subject: Re: +
 ksm-add-vm_stat-and-meminfo-entry-to-reflect-pte-mapping-to-ksm-pages.patch
 added to -mm tree

On Tue, Mar 01, 2011 at 03:41:06PM -0800, akpm@...ux-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@...xchg.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 from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ