Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753485AbYCIMAr (ORCPT ); Sun, 9 Mar 2008 08:00:47 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752406AbYCIMAj (ORCPT ); Sun, 9 Mar 2008 08:00:39 -0400 Received: from www.tglx.de ([62.245.132.106]:41526 "EHLO www.tglx.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752143AbYCIMAi (ORCPT ); Sun, 9 Mar 2008 08:00:38 -0400 Date: Sun, 9 Mar 2008 13:00:05 +0100 (CET) From: Thomas Gleixner To: KOSAKI Motohiro cc: LKML , Linus Torvalds , Andrew Morton , Ingo Molnar , Christoph Lameter , Bart Van Assche Subject: Re: quicklists confuse meminfo In-Reply-To: <20080309193657.C6D8.KOSAKI.MOTOHIRO@jp.fujitsu.com> Message-ID: References: <20080309193657.C6D8.KOSAKI.MOTOHIRO@jp.fujitsu.com> User-Agent: Alpine 1.00 (LFD 882 2007-12-20) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 993 Lines: 38 On Sun, 9 Mar 2008, KOSAKI Motohiro wrote: > Hi > > in general, I like this patch and I think this is very useful. > but I don't like #ifdef ;) /me neither :) > > +#ifdef CONFIG_QUICKLIST > > + "QuickLists: %8lu kB\n" > > +#endif > > + ,K(i.totalram), > > K(i.freeram), > > K(i.bufferram), > > K(cached), > > @@ -215,6 +220,9 @@ static int meminfo_read_proc(char *page, > > (unsigned long)VMALLOC_TOTAL >> 10, > > vmi.used >> 10, > > vmi.largest_chunk >> 10 > > +#ifdef CONFIG_QUICKLIST > > + ,K(quicklist_total_size()) > > +#endif > > Do you dislike my following patch? I like it. I'm just not sure about the accounting of cached memory in general, though quicklists seem to be a pretty obvious one. Thanks, tglx -- 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/