From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753443AbZIAIui (ORCPT ); Tue, 1 Sep 2009 04:50:38 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753415AbZIAIuh (ORCPT ); Tue, 1 Sep 2009 04:50:37 -0400 Received: from mga14.intel.com ([143.182.124.37]:43213 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753409AbZIAIuf (ORCPT ); Tue, 1 Sep 2009 04:50:35 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.44,271,1249282800"; d="scan'208";a="182702897" Date: Tue, 1 Sep 2009 15:58:50 +0800 From: Wu Fengguang To: Chris Wright Cc: Andrew Morton , KOSAKI Motohiro , Josh Triplett , "linux-kernel@vger.kernel.org" , Andi Kleen , Nick Piggin , Christoph Lameter , Hugh Dickins , Izik Eidus Subject: Re: [PATCH] pagemap: document KPF_KSM and show it in page-types Message-ID: <20090901075850.GB1446@localhost> References: <20090808173900.GA21009@feather> <20090812065107.GA16363@localhost> <20090831135720.5E53.A69D9226@jp.fujitsu.com> <20090831065659.GA18039@localhost> <20090831071425.GA26634@localhost> <20090831071702.GB26634@localhost> <20090831164151.GB22649@x200.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090831164151.GB22649@x200.localdomain> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 01, 2009 at 12:41:51AM +0800, Chris Wright wrote: > * Wu Fengguang (fengguang.wu@intel.com) wrote: > > It indicates to the system admin that processes mapping such pages may be > > eating less physical memory than the reported numbers by legacy tools. > > > > CC: Hugh Dickins > > CC: Chris Wright > > CC: Izik Eidus > > Signed-off-by: Wu Fengguang > > Acked-by: Chris Wright Thanks. > > --- linux-mm.orig/tools/vm/page-types.c 2009-08-31 15:00:24.000000000 +0800 > > +++ linux-mm/tools/vm/page-types.c 2009-08-31 15:02:10.000000000 +0800 > > @@ -49,6 +49,7 @@ > > #define KPF_UNEVICTABLE 18 > > #define KPF_HWPOISON 19 > > #define KPF_NOPAGE 20 > > +#define KPF_KSM 21 > > Doesn't this highlight the trouble w/ maintaining two copies of same info? Yes, I even had patch to move these numbers to page-flags.h. however given that we have to update the flag name strings anyway, this is not a big extra burden? Thanks, Fengguang