LWN.net Logo

Re: [PATCH 4/8] proc: export more page flags in /proc/kpageflags

From:  Ingo Molnar <mingo-AT-elte.hu>
To:  Wu Fengguang <fengguang.wu-AT-intel.com>, Frédéric Weisbecker <fweisbec-AT-gmail.com>, Steven Rostedt <rostedt-AT-goodmis.org>, Peter Zijlstra <a.p.zijlstra-AT-chello.nl>, L
Subject:  Re: [PATCH 4/8] proc: export more page flags in /proc/kpageflags
Date:  Fri, 8 May 2009 13:47:42 +0200
Message-ID:  <20090508114742.GB17129@elte.hu>
Cc:  Andrew Morton <akpm-AT-linux-foundation.org>, LKML <linux-kernel-AT-vger.kernel.org>, KOSAKI Motohiro <kosaki.motohiro-AT-jp.fujitsu.com>, Andi Kleen <andi-AT-firstfloor.org>, Matt Mackall <mpm-AT-selenic.com>, Alexey Dobriyan <adobriyan-AT-gmail.com>, linux-mm-AT-kvack.org
Archive-link:  Article, Thread


* Wu Fengguang <fengguang.wu@intel.com> wrote:

> Export all page flags faithfully in /proc/kpageflags.

Ongoing objection and NAK against extended haphazard exporting of 
kernel internals via an ad-hoc ABI via ad-hoc, privatized 
instrumentation that only helps the MM code and nothing else. It was 
a mistake to introduce the /proc/kpageflags hack a year ago, and it 
even more wrong today to expand on it.

/proc/kpageflags should be done via the proper methods outlined in 
the previous mails i wrote on this topic: for example by using the 
'object collections' abstraction i suggested. Clean enumeration of 
all pages (files, tasks, etc.) and the definition of histograms over 
it via free-form filter expressions is the right way to do this. It 
would not only help other subsystems, it would also be far more 
capable.

So this should be done in cooperation with instrumentation folks, 
while improving _all_ of Linux instrumentation in general. Or, if 
you dont have the time/interest to work with us on that, it should 
not be done at all. Not having the resources/interest to do 
something properly is not a license to introduce further 
instrumentation crap into Linux.

	Ingo

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>



(Log in to post comments)

Copyright © 2009, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds