Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934086AbZLGLkT (ORCPT ); Mon, 7 Dec 2009 06:40:19 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932800AbZLGLkS (ORCPT ); Mon, 7 Dec 2009 06:40:18 -0500 Received: from mx1.redhat.com ([209.132.183.28]:57581 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932559AbZLGLkR (ORCPT ); Mon, 7 Dec 2009 06:40:17 -0500 Message-ID: <4B1CEA16.2040702@redhat.com> Date: Mon, 07 Dec 2009 19:42:14 +0800 From: Cong Wang User-Agent: Thunderbird 2.0.0.23 (X11/20091001) MIME-Version: 1.0 To: Hugh Dickins CC: linux-kernel@vger.kernel.org, Mel Gorman , Alexey Dobriyan , "Eric W. Biederman" , akpm@linux-foundation.org, Al Viro Subject: Re: [Patch] proc: fill 'lib' field in /proc//statm References: <20091207102808.4312.38760.sendpatchset@localhost.localdomain> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1439 Lines: 42 Hugh Dickins wrote: > On Mon, 7 Dec 2009, Amerigo Wang wrote: > >> Currently, the 'lib' field of /proc//statm is >> always 0, we should fill it with the right value, >> the same with 'VmLib'. > > The right value (if you're looking for consistency with Linux 2.4) > is the number of currently resident "library" pages: and we don't > know that number - we can't even define what a library is. Hmm, the current algorithm is just kicking out text size of itself from ->exec_vm, it really makes some sense, but not always. > > We could add some code to make it show the same bogus number as > we show somewhere else, but it has said 0 ever since 2.5.37: so > I don't think it's worth a line of code myself, but bow to others. If you mean 'VmLib' in /proc//status, this is the same with it. > >> Signed-off-by: WANG Cong >> Cc: Eric W. Biederman >> Cc: Alexey Dobriyan >> Cc: Al Viro >> Cc: Mel Gorman >> Cc: stable@kernel.org > > What does alarm me is that you think this is fit for -stable! > Oh, sorry, I thought missing this field is a mistake... Dropped. Thanks. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/