Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161092AbVKDHqB (ORCPT ); Fri, 4 Nov 2005 02:46:01 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1161094AbVKDHqB (ORCPT ); Fri, 4 Nov 2005 02:46:01 -0500 Received: from omx2-ext.sgi.com ([192.48.171.19]:29568 "EHLO omx2.sgi.com") by vger.kernel.org with ESMTP id S1161092AbVKDHqA (ORCPT ); Fri, 4 Nov 2005 02:46:00 -0500 Date: Thu, 3 Nov 2005 23:45:30 -0800 From: Paul Jackson To: Andrew Morton 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: <20051103234530.5fcb2825.pj@sgi.com> In-Reply-To: <20051103231019.488127a6.akpm@osdl.org> 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> <20051103231019.488127a6.akpm@osdl.org> Organization: SGI X-Mailer: Sylpheed version 2.0.0beta5 (GTK+ 2.4.9; i686-pc-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: 1942 Lines: 56 Andrew wrote: > > So I will leave that challenge on the table for someone else. > > And I won't merge your patch ;) Be that way ;). > Seriously, it does appear that doing it per-task is adequate for your > needs, and it is certainly more general. My motivations for the per-cpuset, digitally filtered rate, as opposed to the per-task raw counter mostly have to do with minimizing total cost (user + kernel) of collecting this information. I have this phobia, perhaps not well founded, that moving critical scheduling/allocation decisions like this into user space will fail in some cases because the cost of gathering the critical information will be too intrusive on system performance and scalability. A per-task stat requires walking the tasklist, to build a list of the tasks to query. A raw counter requires repeated polling to determine the recent rate of activity. The filtered per-cpuset rate avoids any need to repeatedly access global resources such as the tasklist, and minimizes the total cpu cycles required to get the interesting stat. > But I have to care for all users. Well you should, and well you do. If you have good reason, or just good instincts, to think that there are uses for per-task raw counters, then your choice is clear. As indeed it was clear. I don't recall hearing of any desire for per-task memory pressure data, until tonight. I will miss this patch. It had provided exactly what I thought was needed, with an extremely small impact on system (kern+user) performance. Oh well. -- I won't rest till it's the best ... Programmer, Linux Scalability Paul Jackson 1.925.600.0401 - 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/