From: Ingo Molnar <mingo@elte.hu>
To: David Rientjes <rientjes@google.com>
Cc: Andreas Herrmann <herrmann.der.user@googlemail.com>,
"H. Peter Anvin" <hpa@zytor.com>,
Thomas Gleixner <tglx@linutronix.de>,
Andrew Morton <akpm@linux-foundation.org>,
Mike Travis <travis@sgi.com>,
Heiko Carstens <heiko.carstens@de.ibm.com>,
Roland Dreier <rdreier@cisco.com>,
Randy Dunlap <rdunlap@xenotime.net>, Tejun Heo <tj@kernel.org>,
Andi Kleen <andi@firstfloor.org>,
Greg Kroah-Hartman <gregkh@suse.de>,
Yinghai Lu <yhlu.kernel@gmail.com>,
Steven Rostedt <rostedt@goodmis.org>,
Rusty Russell <rusty@rustcorp.com.au>,
Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>,
Jack Steiner <steiner@sgi.com>,
Frederic Weisbecker <fweisbec@gmail.com>,
x86@kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [patch] x86: reduce srat verbosity in the kernel log
Date: Fri, 13 Nov 2009 11:57:36 +0100 [thread overview]
Message-ID: <20091113105736.GA21904@elte.hu> (raw)
In-Reply-To: <alpine.DEB.2.00.0911130222080.21963@chino.kir.corp.google.com>
* David Rientjes <rientjes@google.com> wrote:
> On Fri, 13 Nov 2009, Ingo Molnar wrote:
>
> > There's two problems outlined in this discussion:
> >
> > A) too verbose bootup that is annoying with 64 CPUs and a show-stopper
> > with 4096 CPUs.
> >
> > B) the ad-hoc nature of our topology enumeration. Some of it is in
> > /sys, some of it is in printk logs. None really works well and
> > there's no structure in it.
> >
> > The simplest solution for (A) is what i suggested a few mails ago: dont
> > print the information by default, but allow (for trouble-shooting)
> > purposes for it to be printed when a boot option is passed.
> >
>
> Sigh, and even if that were done with a subsequent patch, you would
> still want to reduce the debugging output from 1272 lines to 40, just
> like my patch does without losing any information. It's insane to
> emit 1272 lines even if they are emitted only for a certain kernel
> parameter. I'm sure we agree on that.
For _debug_ output, we want it pretty simple. 1272 lines is nothing if
it's only done for debugging/trouble-shooting.
Furthermore, if this _only_ gets used in the debug case, we want it
simple for the pure reason that it's uncommon code. It might work now,
but it might regress later without anyone noticing it - up to the point
when someone might need it when it breaks in the worst possible moment.
We've been through this many times before and that's the core principle
of all debug printout code: keep it simple.
> > Problem (B), topology info enumeration of a successful bootup is a
> > different matter. It should be exposed to user-space via proper /sys
> > abstractions, not via ad-hoc printks. There's ongoing work in that
> > area, from Andreas Hermann, with patches posted. hpa expressed the
> > view there that topology structure should be expressed via a nice
> > vfs abstraction - i share that opinion.
>
> Ingo, what do you want?
My goal is to accept good patches and to reject patches that are bad or
not good enough.
> Your first criticism was that it should be limited only to a kernel
> parameter but now it seems like you're insisting that the printk's get
> removed completely and its exported via userspace. Then what is the
> kernel parameter that you suggested for?
Please read my mail. There's three usecases:
- default bootup. We want no messages in the log.
- troubleshooting bootup with a boot flag specified. (an existing
example is apic=verbose) We want simple messages in that case and
obvious logic. (verbosity is not an overriding issue - we are
troubleshooting)
- Successful bootup and we want to retrieve topology information for
the system. Using the boot logs for it is not the right channel -
/sys is.
Your patch is not a 'good enough' solution to either of these usecases,
because:
- In the default case it prints 40 lines more than it should.
- In the troubleshooting case it provides the information but it is
not a simple mechanism. (anything with state and a bitmap in it is
out pretty much - stick to simple printks, those are in the least
danger of regressing down the road. It's also less bloated in terms
of code. )
- For extracing topology information kernel log messages is not
something that tools can rely on very well.
Thanks,
Ingo
next prev parent reply other threads:[~2009-11-13 10:58 UTC|newest]
Thread overview: 54+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-12 17:19 [PATCH 0/7] Limit console output by suppressing repetitious messages Mike Travis
2009-11-12 17:19 ` [PATCH 1/7] x86: Limit the number of processor bootup messages Mike Travis
2009-11-12 18:09 ` Ingo Molnar
2009-11-12 20:05 ` Mike Travis
2009-11-13 9:52 ` Ingo Molnar
2009-11-13 13:43 ` Mike Travis
2009-11-12 22:10 ` Yinghai Lu
2009-11-13 13:46 ` Mike Travis
2009-11-13 21:58 ` Yinghai Lu
2009-11-12 17:19 ` [PATCH 2/7] ACPI: Limit the number of per cpu ACPI " Mike Travis
2009-11-12 21:02 ` David Rientjes
2009-11-12 21:19 ` Mike Travis
2009-11-12 21:28 ` David Rientjes
2009-11-13 13:53 ` Mike Travis
2009-11-12 17:19 ` [PATCH 3/7] INIT: Limit the number of per cpu INIT " Mike Travis
2009-11-12 21:06 ` David Rientjes
2009-11-12 21:20 ` Mike Travis
2009-11-12 17:19 ` [PATCH 4/7] firmware: Limit the number of per cpu firmware messages during bootup Mike Travis
2009-11-12 17:19 ` [PATCH 5/7] x86: Limit the number of per cpu MCE bootup messages Mike Travis
2009-11-12 17:19 ` [PATCH 6/7] sched: Limit the number of scheduler debug messages Mike Travis
2009-11-12 17:19 ` [PATCH 7/7] x86: Limit number of per cpu TSC sync messages Mike Travis
2009-11-12 20:48 ` [patch] x86: reduce srat verbosity in the kernel log David Rientjes
2009-11-13 9:53 ` Ingo Molnar
2009-11-13 10:02 ` David Rientjes
2009-11-13 10:13 ` Ingo Molnar
2009-11-13 10:29 ` David Rientjes
2009-11-13 10:57 ` Ingo Molnar [this message]
2009-11-20 18:37 ` Pavel Machek
2009-11-20 18:58 ` Mike Travis
2009-11-12 22:16 ` [PATCH 0/7] Limit console output by suppressing repetitious messages Yinghai Lu
[not found] <20091023233743.439628000@alcatraz.americas.sgi.com>
2009-10-23 23:37 ` [PATCH 3/8] SGI x86_64 UV: Limit the number of number of SRAT messages Mike Travis
2009-10-26 7:04 ` Andi Kleen
2009-10-27 15:24 ` Mike Travis
2009-10-27 19:45 ` David Rientjes
2009-10-27 20:00 ` Mike Travis
2009-10-27 20:25 ` [patch] x86: reduce srat verbosity in the kernel log David Rientjes
2009-10-27 20:42 ` Mike Travis
2009-10-27 20:48 ` David Rientjes
2009-10-27 23:02 ` Mike Travis
2009-10-28 3:29 ` Andi Kleen
2009-10-28 4:08 ` David Rientjes
2009-10-28 3:53 ` Yinghai Lu
2009-10-28 4:08 ` David Rientjes
2009-10-27 20:55 ` Cyrill Gorcunov
2009-10-27 21:06 ` David Rientjes
2009-10-27 21:10 ` Cyrill Gorcunov
2009-10-28 3:32 ` Andi Kleen
2009-10-28 4:08 ` David Rientjes
2009-10-28 4:11 ` Andi Kleen
2009-10-28 17:02 ` Mike Travis
2009-10-28 20:52 ` David Rientjes
2009-10-28 21:03 ` Mike Travis
2009-10-28 21:06 ` David Rientjes
2009-10-28 21:35 ` Mike Travis
2009-10-28 21:46 ` David Rientjes
2009-10-28 22:36 ` Mike Travis
2009-10-29 8:21 ` David Rientjes
2009-10-29 16:34 ` Mike Travis
2009-10-29 19:06 ` David Rientjes
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20091113105736.GA21904@elte.hu \
--to=mingo@elte.hu \
--cc=akpm@linux-foundation.org \
--cc=andi@firstfloor.org \
--cc=fweisbec@gmail.com \
--cc=gregkh@suse.de \
--cc=heiko.carstens@de.ibm.com \
--cc=herrmann.der.user@googlemail.com \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=rdreier@cisco.com \
--cc=rdunlap@xenotime.net \
--cc=rientjes@google.com \
--cc=rostedt@goodmis.org \
--cc=rusty@rustcorp.com.au \
--cc=seto.hidetoshi@jp.fujitsu.com \
--cc=steiner@sgi.com \
--cc=tglx@linutronix.de \
--cc=tj@kernel.org \
--cc=travis@sgi.com \
--cc=x86@kernel.org \
--cc=yhlu.kernel@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox