Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757812AbZD1VCU (ORCPT ); Tue, 28 Apr 2009 17:02:20 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754379AbZD1VCF (ORCPT ); Tue, 28 Apr 2009 17:02:05 -0400 Received: from waste.org ([66.93.16.53]:51976 "EHLO waste.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753930AbZD1VCE (ORCPT ); Tue, 28 Apr 2009 17:02:04 -0400 Subject: Re: [PATCH 5/5] proc: export more page flags in /proc/kpageflags From: Matt Mackall To: Tony Luck Cc: Wu Fengguang , Ingo Molnar , Steven Rostedt , =?ISO-8859-1?Q?Fr=E9d=E9ric?= Weisbecker , Larry Woodman , Peter Zijlstra , Pekka Enberg , Eduard - Gabriel Munteanu , Andrew Morton , LKML , KOSAKI Motohiro , Andi Kleen , Alexey Dobriyan , "linux-mm@kvack.org" In-Reply-To: <12c511ca0904281347m394b04e0mcb61f7c336752cc4@mail.gmail.com> References: <20090428010907.912554629@intel.com> <20090428014920.769723618@intel.com> <20090428065507.GA2024@elte.hu> <20090428083320.GB17038@localhost> <12c511ca0904281111r10f37a5coe5a2750f4dbfbcda@mail.gmail.com> <1240943671.938.575.camel@calx> <12c511ca0904281347m394b04e0mcb61f7c336752cc4@mail.gmail.com> Content-Type: text/plain Date: Tue, 28 Apr 2009 15:59:53 -0500 Message-Id: <1240952393.938.992.camel@calx> Mime-Version: 1.0 X-Mailer: Evolution 2.24.5 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 866 Lines: 22 On Tue, 2009-04-28 at 13:47 -0700, Tony Luck wrote: > On Tue, Apr 28, 2009 at 11:34 AM, Matt Mackall wrote: > > Bah. The rate of change is proportional to #cpus, not #pages. Assuming > > you've got 1024 processors, you could run the scan in parallel in .2 > > seconds still. > > That would help ... it would also make the patch to support this > functionality a lot more complex. The kernel bits should handle this already today. You just need 1k userspace threads to open /proc/kpageflags, seek() appropriately, and read(). -- http://selenic.com : development and support for Mercurial and Linux -- 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/