Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030458AbVKDHLP (ORCPT ); Fri, 4 Nov 2005 02:11:15 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751416AbVKDHLP (ORCPT ); Fri, 4 Nov 2005 02:11:15 -0500 Received: from smtp.osdl.org ([65.172.181.4]:54977 "EHLO smtp.osdl.org") by vger.kernel.org with ESMTP id S1751413AbVKDHLO (ORCPT ); Fri, 4 Nov 2005 02:11:14 -0500 Date: Thu, 3 Nov 2005 23:10:19 -0800 From: Andrew Morton To: Paul Jackson Cc: bron@bronze.corp.sgi.com, pbadari@gmail.com, jdike@addtoit.com, rob@landley.net, nickpiggin@yahoo.com.au, gh@us.ibm.com, mingo@elte.hu, kamezawa.hiroyu@jp.fujitsu.com, haveblue@us.ibm.com, mel@csn.ul.ie, mbligh@mbligh.org, kravetz@us.ibm.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, lhms-devel@lists.sourceforge.net Subject: Re: [Lhms-devel] [PATCH 0/7] Fragmentation Avoidance V19 Message-Id: <20051103231019.488127a6.akpm@osdl.org> In-Reply-To: <20051103224239.7a9aee29.pj@sgi.com> References: <200511021747.45599.rob@landley.net> <43699573.4070301@yahoo.com.au> <200511030007.34285.rob@landley.net> <20051103163555.GA4174@ccure.user-mode-linux.org> <1131035000.24503.135.camel@localhost.localdomain> <20051103205202.4417acf4.akpm@osdl.org> <20051103213538.7f037b3a.pj@sgi.com> <20051103214807.68a3063c.akpm@osdl.org> <20051103224239.7a9aee29.pj@sgi.com> X-Mailer: Sylpheed version 1.0.4 (GTK+ 1.2.10; i386-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1682 Lines: 46 Paul Jackson wrote: > > > I was kind of thinking that the stats should be per-process (actually > > per-mm) rather than bound to cpusets. /proc//pageout-stats or something. > > There may well be a market for these too. But such stats sound like > more work, and the market isn't one that's paying my salary. But I have to care for all users. > So I will leave that challenge on the table for someone else. And I won't merge your patch ;) Seriously, it does appear that doing it per-task is adequate for your needs, and it is certainly more general. I cannot understand why you decided to count only the number of direct-reclaim events, via a "digitally filtered, constant time based, event frequency meter". a) It loses information. If we were to export the number of pages reclaimed from the mm, filtering can be done in userspace. b) It omits reclaim performed by kswapd and by other tasks (ok, it's very cpuset-specific). c) It only counts synchronous try_to_free_pages() attempts. What if an attempt only freed pagecache, or didbn't manage to free anything? d) It doesn't notice if kswapd is swapping the heck out of your not-allocating-any-memory-now process. I think all the above can be addressed by exporting per-task (actually per-mm) reclaim info. (I haven't put much though into what info that should be - page reclaim attempts, mmapped reclaims, swapcache reclaims, etc) - 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/