public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Disable scheduler debugging
@ 2004-06-06  1:32 Andi Kleen
  2004-06-06  5:53 ` Ingo Molnar
  0 siblings, 1 reply; 7+ messages in thread
From: Andi Kleen @ 2004-06-06  1:32 UTC (permalink / raw)
  To: akpm; +Cc: linux-kernel


The domain scheduler spews out a lot of information at boot up, but it looks
mostly redundant because it's just a transformation of what is in /proc/cpuinfo
anyways. Also it is well tested now. Disable it.

diff -u linux/kernel/sched.c-o linux/kernel/sched.c
--- linux/kernel/sched.c-o	2004-06-01 19:19:58.000000000 +0200
+++ linux/kernel/sched.c	2004-06-01 19:26:56.000000000 +0200
@@ -3641,7 +3641,7 @@
 #endif /* CONFIG_NUMA_SCHED */
 #endif /* ARCH_HAS_SCHED_DOMAIN */
 
-#define SCHED_DOMAIN_DEBUG
+#undef SCHED_DOMAIN_DEBUG
 #ifdef SCHED_DOMAIN_DEBUG
 void sched_domain_debug(void)
 {

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] Disable scheduler debugging
  2004-06-06  1:32 [PATCH] Disable scheduler debugging Andi Kleen
@ 2004-06-06  5:53 ` Ingo Molnar
  2004-06-06 16:24   ` Jeff Garzik
  0 siblings, 1 reply; 7+ messages in thread
From: Ingo Molnar @ 2004-06-06  5:53 UTC (permalink / raw)
  To: Andi Kleen; +Cc: akpm, linux-kernel


* Andi Kleen <ak@suse.de> wrote:

> The domain scheduler spews out a lot of information at boot up, but it
> looks mostly redundant because it's just a transformation of what is
> in /proc/cpuinfo anyways. Also it is well tested now. Disable it.

i'd rather keep it some more, there are still open issues and if there's
a boot failure or early crash it makes it easier for us to see the
actual domain setup. Also, the messages are KERN_DEBUG.

	Ingo

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] Disable scheduler debugging
  2004-06-06  5:53 ` Ingo Molnar
@ 2004-06-06 16:24   ` Jeff Garzik
  2004-06-06 21:46     ` Zwane Mwaikambo
  2004-06-06 22:57     ` David Lang
  0 siblings, 2 replies; 7+ messages in thread
From: Jeff Garzik @ 2004-06-06 16:24 UTC (permalink / raw)
  To: Ingo Molnar; +Cc: Andi Kleen, akpm, linux-kernel

Ingo Molnar wrote:
> * Andi Kleen <ak@suse.de> wrote:
> 
> 
>>The domain scheduler spews out a lot of information at boot up, but it
>>looks mostly redundant because it's just a transformation of what is
>>in /proc/cpuinfo anyways. Also it is well tested now. Disable it.
> 
> 
> i'd rather keep it some more, there are still open issues and if there's
> a boot failure or early crash it makes it easier for us to see the
> actual domain setup. Also, the messages are KERN_DEBUG.


Unfortunately there are just, flat-out, way too many kernel messages at 
boot-up.  Making them KERN_DEBUG doesn't solve the fact that SMP boxes 
often overflow the printk buffer before you boot up to a useful userland 
that can record the dmesg.

The IO-APIC code is a _major_ offender in this area, but the CPU code is 
right up there as well.

	Jeff


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] Disable scheduler debugging
  2004-06-06 16:24   ` Jeff Garzik
@ 2004-06-06 21:46     ` Zwane Mwaikambo
  2004-06-06 21:55       ` Jeff Garzik
  2004-06-06 22:57     ` David Lang
  1 sibling, 1 reply; 7+ messages in thread
From: Zwane Mwaikambo @ 2004-06-06 21:46 UTC (permalink / raw)
  To: Jeff Garzik; +Cc: Ingo Molnar, Andi Kleen, Andrew Morton, Linux Kernel

On Sun, 6 Jun 2004, Jeff Garzik wrote:

> Unfortunately there are just, flat-out, way too many kernel messages at
> boot-up.  Making them KERN_DEBUG doesn't solve the fact that SMP boxes
> often overflow the printk buffer before you boot up to a useful userland
> that can record the dmesg.
>
> The IO-APIC code is a _major_ offender in this area, but the CPU code is
> right up there as well.

How about the configurable log buffer size patch? I think Andrew still has
that amongst his wares.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] Disable scheduler debugging
  2004-06-06 21:55       ` Jeff Garzik
@ 2004-06-06 21:55         ` Randy.Dunlap
  0 siblings, 0 replies; 7+ messages in thread
From: Randy.Dunlap @ 2004-06-06 21:55 UTC (permalink / raw)
  To: Jeff Garzik; +Cc: zwane, mingo, ak, akpm, linux-kernel

On Sun, 06 Jun 2004 17:55:07 -0400 Jeff Garzik wrote:

| Zwane Mwaikambo wrote:
| > On Sun, 6 Jun 2004, Jeff Garzik wrote:
| > 
| > 
| >>Unfortunately there are just, flat-out, way too many kernel messages at
| >>boot-up.  Making them KERN_DEBUG doesn't solve the fact that SMP boxes
| >>often overflow the printk buffer before you boot up to a useful userland
| >>that can record the dmesg.
| >>
| >>The IO-APIC code is a _major_ offender in this area, but the CPU code is
| >>right up there as well.
| > 
| > 
| > How about the configurable log buffer size patch? I think Andrew still has
| > that amongst his wares.
| 
| It's in mainline.  That's no excuse for the voluminous logs, though... 
| I'm a "1-2 lines per module" type of person :)

It's mainline, both CONFIG and command-line settable.

I'm a "there's always some case where more info is needed"
type of person.  But it won't happen on the next boot....
especially if the log size is increased.  :(

--
~Randy

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] Disable scheduler debugging
  2004-06-06 21:46     ` Zwane Mwaikambo
@ 2004-06-06 21:55       ` Jeff Garzik
  2004-06-06 21:55         ` Randy.Dunlap
  0 siblings, 1 reply; 7+ messages in thread
From: Jeff Garzik @ 2004-06-06 21:55 UTC (permalink / raw)
  To: Zwane Mwaikambo; +Cc: Ingo Molnar, Andi Kleen, Andrew Morton, Linux Kernel

Zwane Mwaikambo wrote:
> On Sun, 6 Jun 2004, Jeff Garzik wrote:
> 
> 
>>Unfortunately there are just, flat-out, way too many kernel messages at
>>boot-up.  Making them KERN_DEBUG doesn't solve the fact that SMP boxes
>>often overflow the printk buffer before you boot up to a useful userland
>>that can record the dmesg.
>>
>>The IO-APIC code is a _major_ offender in this area, but the CPU code is
>>right up there as well.
> 
> 
> How about the configurable log buffer size patch? I think Andrew still has
> that amongst his wares.

It's in mainline.  That's no excuse for the voluminous logs, though... 
I'm a "1-2 lines per module" type of person :)

	Jeff




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] Disable scheduler debugging
  2004-06-06 16:24   ` Jeff Garzik
  2004-06-06 21:46     ` Zwane Mwaikambo
@ 2004-06-06 22:57     ` David Lang
  1 sibling, 0 replies; 7+ messages in thread
From: David Lang @ 2004-06-06 22:57 UTC (permalink / raw)
  To: Jeff Garzik; +Cc: Ingo Molnar, Andi Kleen, akpm, linux-kernel

On Sun, 6 Jun 2004, Jeff Garzik wrote:

>
> Unfortunately there are just, flat-out, way too many kernel messages at 
> boot-up.  Making them KERN_DEBUG doesn't solve the fact that SMP boxes often 
> overflow the printk buffer before you boot up to a useful userland that can 
> record the dmesg.
>
> The IO-APIC code is a _major_ offender in this area, but the CPU code is 
> right up there as well.
>
neither of these are nearly as bad as the crypto code, it takes a HUGE 
kernel log to get any info from before that if you enable all the 
encryption modes.

David Lang


-- 
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it." - Brian W. Kernighan

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2004-06-06 23:01 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-06  1:32 [PATCH] Disable scheduler debugging Andi Kleen
2004-06-06  5:53 ` Ingo Molnar
2004-06-06 16:24   ` Jeff Garzik
2004-06-06 21:46     ` Zwane Mwaikambo
2004-06-06 21:55       ` Jeff Garzik
2004-06-06 21:55         ` Randy.Dunlap
2004-06-06 22:57     ` David Lang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox