linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* BUG: 2.6.0-test3: dmesg buffer still too small
@ 2003-08-23 15:13 Arno Wagner
  2003-08-23 20:42 ` Diego Calleja García
  0 siblings, 1 reply; 6+ messages in thread
From: Arno Wagner @ 2003-08-23 15:13 UTC (permalink / raw)
  To: linux-kernel

Hi,

I have been patching my kernels for too small dmesg 
buffer size (LOG_BUF_LEN in kernel/printk.c in 2.6.x)
for almost 2 years now. I have a single CPU Athlon 
system and get 25kB bootup messages. On other similar
machines I get 22kB, 16kB and 15kb, the two latter
without RAID

Since 2.6.x still seems to have the insufficient 16kB
buffer size ad default, I now consider this to be
a bug that would be best fixed now while 2.6.x is still
evolving.

Fix: 

a) Make it at least 32kB or better 64kB as
   default for standard PC architectures, i.e.
   set CONFIG_LOG_BUF_SHIFT to 16 in linux/kernel.h
   for these architectures.
or

b) Add a configuration option to set the buffer size
   in kernel configuration.

Doing both would probably be best.

I can continue patching my kernel manually (although it
is annoying and I have to katch printk.c to ignore 
CONFIG_LOG_BUF_SHIFT), but others might not have the 
expertise to do so. And showing all these nice messages 
to the user with no way to retrieve them afterwards is
probaly not a good idea...

Arno

-- 
Arno Wagner, Communication Systems Group, ETH Zuerich, wagner@tik.ee.ethz.ch
GnuPG:  ID: 1E25338F  FP: 0C30 5782 9D93 F785 E79C  0296 797F 6B50 1E25 338F
----
For every complex problem there is an answer that is clear, simple, 
and wrong. -- H L Mencken

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

* Re: BUG: 2.6.0-test3: dmesg buffer still too small
  2003-08-23 15:13 BUG: 2.6.0-test3: dmesg buffer still too small Arno Wagner
@ 2003-08-23 20:42 ` Diego Calleja García
  2003-08-24  1:05   ` Arno Wagner
  0 siblings, 1 reply; 6+ messages in thread
From: Diego Calleja García @ 2003-08-23 20:42 UTC (permalink / raw)
  To: Arno Wagner; +Cc: linux-kernel

El Sat, 23 Aug 2003 17:13:36 +0200 Arno Wagner <wagner@tik.ee.ethz.ch> escribió:

> b) Add a configuration option to set the buffer size
>    in kernel configuration.
> 
  (15) Kernel log buffer size (16 => 64KB, 17 => 128KB


Under "general setup" at least in -test3/4

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

* Re: BUG: 2.6.0-test3: dmesg buffer still too small
  2003-08-23 20:42 ` Diego Calleja García
@ 2003-08-24  1:05   ` Arno Wagner
  2003-08-24  1:12     ` Diego Calleja García
  0 siblings, 1 reply; 6+ messages in thread
From: Arno Wagner @ 2003-08-24  1:05 UTC (permalink / raw)
  To: Diego Calleja Garc?a; +Cc: linux-kernel

On Sat, Aug 23, 2003 at 10:42:55PM +0200, Diego Calleja Garc?a wrote:
> El Sat, 23 Aug 2003 17:13:36 +0200 Arno Wagner <wagner@tik.ee.ethz.ch> escribi?:
> 
> > b) Add a configuration option to set the buffer size
> >    in kernel configuration.
> > 
>   (15) Kernel log buffer size (16 => 64KB, 17 => 128KB
> 
> 
> Under "general setup" at least in -test3/4

Not displayed by "make menuconfig" and "make config" 
unfortunately.

I found the config variable CONFIG_LOG_BUF_SHIFT
on .config. So this is actually a problem with the config 
tools and not the available config variables...

What did you use that displayed the option? Or is there
some other option that hides the choice of log
buffer? I have a stock 2.4.6-test3 from kernel.org

Arno
-- 
Arno Wagner, Communication Systems Group, ETH Zuerich, wagner@tik.ee.ethz.ch
GnuPG:  ID: 1E25338F  FP: 0C30 5782 9D93 F785 E79C  0296 797F 6B50 1E25 338F
----
For every complex problem there is an answer that is clear, simple, 
and wrong. -- H L Mencken

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

* Re: BUG: 2.6.0-test3: dmesg buffer still too small
  2003-08-24  1:05   ` Arno Wagner
@ 2003-08-24  1:12     ` Diego Calleja García
  2003-08-24  1:33       ` Arno Wagner
  0 siblings, 1 reply; 6+ messages in thread
From: Diego Calleja García @ 2003-08-24  1:12 UTC (permalink / raw)
  To: Arno Wagner; +Cc: linux-kernel

El Sun, 24 Aug 2003 03:05:39 +0200 Arno Wagner <wagner@tik.ee.ethz.ch> escribió:

> Not displayed by "make menuconfig" and "make config" 
> unfortunately.

I just copied it from menuconfig. Visible if you've enabled DEBUG_KERNEL.


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

* Re: BUG: 2.6.0-test3: dmesg buffer still too small
  2003-08-24  1:12     ` Diego Calleja García
@ 2003-08-24  1:33       ` Arno Wagner
  0 siblings, 0 replies; 6+ messages in thread
From: Arno Wagner @ 2003-08-24  1:33 UTC (permalink / raw)
  To: Diego Calleja Garc?a; +Cc: linux-kernel

On Sun, Aug 24, 2003 at 03:12:35AM +0200, Diego Calleja Garc?a wrote:
> El Sun, 24 Aug 2003 03:05:39 +0200 Arno Wagner <wagner@tik.ee.ethz.ch> escribi?:
> 
> > Not displayed by "make menuconfig" and "make config" 
> > unfortunately.
> 
> I just copied it from menuconfig. Visible if you've enabled DEBUG_KERNEL.

Indeed. Thanks for the info!

Arno

-- 
Arno Wagner, Communication Systems Group, ETH Zuerich, wagner@tik.ee.ethz.ch
GnuPG:  ID: 1E25338F  FP: 0C30 5782 9D93 F785 E79C  0296 797F 6B50 1E25 338F
----
For every complex problem there is an answer that is clear, simple, 
and wrong. -- H L Mencken

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

* Re: BUG: 2.6.0-test3: dmesg buffer still too small
@ 2003-08-24  2:11 Felipe Alfaro Solana
  0 siblings, 0 replies; 6+ messages in thread
From: Felipe Alfaro Solana @ 2003-08-24  2:11 UTC (permalink / raw)
  To: Arno Wagner, Diego Calleja Garc?a; +Cc: linux-kernel

> > > b) Add a configuration option to set the buffer size 
> > >    in kernel configuration. 
> > >  
> >   (15) Kernel log buffer size (16 => 64KB, 17 => 128KB 
> >  
> >  
> > Under "general setup" at least in -test3/4 
>  
> Not displayed by "make menuconfig" and "make config"  
> unfortunately. 
 
You must enable CONFIG_DEBUG for it to show up. 
-- 
______________________________________________
http://www.linuxmail.org/
Now with e-mail forwarding for only US$5.95/yr

Powered by Outblaze

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

end of thread, other threads:[~2003-08-24  2:13 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-23 15:13 BUG: 2.6.0-test3: dmesg buffer still too small Arno Wagner
2003-08-23 20:42 ` Diego Calleja García
2003-08-24  1:05   ` Arno Wagner
2003-08-24  1:12     ` Diego Calleja García
2003-08-24  1:33       ` Arno Wagner
2003-08-24  2:11 Felipe Alfaro Solana

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).