mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Martin Hicks <mort@bork.org>
To: "H. Peter Anvin" <hpa@zytor.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [patch] Generic way to control display of debug printk's
Date: Tue, 25 Mar 2003 14:28:43 -0500	[thread overview]
Message-ID: <20030325192843.GB11198@bork.org> (raw)
In-Reply-To: <b5ggva$2lu$1@cesium.transmeta.com>



On Fri, Mar 21, 2003 at 06:15:06PM -0800, H. Peter Anvin wrote:
> Followup to:  <20030321223717.GA1241@bork.org>
> By author:    Martin Hicks <mort@wildopensource.com>
> In newsgroup: linux.dev.kernel
> > 
> > It seems to me that a generic way to dynamically control the printing
> > of certain messages to the console during kernel boot is required.
> > Systems that really need this are large SMP systems or NUMA machines
> > with a large number of nodes.  The number of messages that appear 
> > per-node or per-cpu is huge in these machines.
> > 
> 
> See KERN_EMERG, KERN_ALERT, KERN_CRIT, KERN_ERR, KERN_WARNING,
> KERN_NOTICE, KERN_INFO, KERN_DEBUG.

Okay, perhaps I didn't clearly identify the problem last time.  The
problem is the number of messages that go into the log_buf.  On
large systems we can certainly just crank up the size of log_buf, but I
don't see this as a terribly elegant solution.

I think there should be some facility, mirroring the way we can set a
threshold for console messages, to decide if a message is logged at all.
For example, setting console_loglevel and log_loglevel (the new
threshold) to 7 results in no KERN_DEBUG messages begin printed to the
console or the log.

I'm testing a patch now, but are there any comments on the basic idea?
Is it preferrable to just crank up the size of log_buf?

mh

-- 
Martin Hicks  ||  mort@bork.org  || PGP/GnuPG: 0x4C7F2BEE
plato up 2 days, 22:44, 14 users,  load average: 2.64, 0.94, 0.34
Great Spirits have always encountered opposition from mediocre minds
						-Albert Einstein

  reply	other threads:[~2003-03-25 19:17 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-21 22:37 Martin Hicks
2003-03-22  2:15 ` H. Peter Anvin
2003-03-25 19:28   ` Martin Hicks [this message]
2003-03-25 21:38     ` H. Peter Anvin

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=20030325192843.GB11198@bork.org \
    --to=mort@bork.org \
    --cc=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    /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

all inboxes | Powered by JetHome®