public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC] [PATCH] Kconfig: enlarge printk buffer size limit
@ 2007-03-02 13:27 Artem Bityutskiy
  2007-03-02 17:11 ` Randy Dunlap
  0 siblings, 1 reply; 3+ messages in thread
From: Artem Bityutskiy @ 2007-03-02 13:27 UTC (permalink / raw)
  To: linux-kernel

From: Artem Bityutskiy <artem.bityutskiy@nokia.com>
Subject: [RFC] [PATCH] Kconfig: enlarge printk buffer size limit

This patch makes the upper kernel ring buffer size limit larger. It
is often very handy to have huge ring-buffer for debugging purposes,
when the subsystem which is being debugged produces large amount of
useful output.

Index: ubi-2.6.git/lib/Kconfig.debug
===================================================================
--- ubi-2.6.git.orig/lib/Kconfig.debug
+++ ubi-2.6.git/lib/Kconfig.debug
@@ -79,7 +79,7 @@ config DEBUG_KERNEL
 
 config LOG_BUF_SHIFT
 	int "Kernel log buffer size (16 => 64KB, 17 => 128KB)" if DEBUG_KERNEL
-	range 12 21
+	range 12 26
 	default 17 if S390 || LOCKDEP
 	default 16 if X86_NUMAQ || IA64
 	default 15 if SMP




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

* Re: [RFC] [PATCH] Kconfig: enlarge printk buffer size limit
  2007-03-02 13:27 [RFC] [PATCH] Kconfig: enlarge printk buffer size limit Artem Bityutskiy
@ 2007-03-02 17:11 ` Randy Dunlap
  2007-03-07 11:33   ` Artem Bityutskiy
  0 siblings, 1 reply; 3+ messages in thread
From: Randy Dunlap @ 2007-03-02 17:11 UTC (permalink / raw)
  To: dedekind; +Cc: linux-kernel

On Fri, 02 Mar 2007 15:27:48 +0200 Artem Bityutskiy wrote:

> From: Artem Bityutskiy <artem.bityutskiy@nokia.com>
> Subject: [RFC] [PATCH] Kconfig: enlarge printk buffer size limit
> 
> This patch makes the upper kernel ring buffer size limit larger. It
> is often very handy to have huge ring-buffer for debugging purposes,
> when the subsystem which is being debugged produces large amount of
> useful output.
> 
> Index: ubi-2.6.git/lib/Kconfig.debug
> ===================================================================
> --- ubi-2.6.git.orig/lib/Kconfig.debug
> +++ ubi-2.6.git/lib/Kconfig.debug
> @@ -79,7 +79,7 @@ config DEBUG_KERNEL
>  
>  config LOG_BUF_SHIFT
>  	int "Kernel log buffer size (16 => 64KB, 17 => 128KB)" if DEBUG_KERNEL
> -	range 12 21
> +	range 12 26
>  	default 17 if S390 || LOCKDEP
>  	default 16 if X86_NUMAQ || IA64
>  	default 15 if SMP

That's simple enough, but you could also just add
	log_buf_len=huge_number
or
	log_buf_len=500M
or
	log_buf_len=1G
(for megabytes or gigabytes) to the kernel boot command line.


---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***

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

* Re: [RFC] [PATCH] Kconfig: enlarge printk buffer size limit
  2007-03-02 17:11 ` Randy Dunlap
@ 2007-03-07 11:33   ` Artem Bityutskiy
  0 siblings, 0 replies; 3+ messages in thread
From: Artem Bityutskiy @ 2007-03-07 11:33 UTC (permalink / raw)
  To: Randy Dunlap; +Cc: linux-kernel

On Fri, 2007-03-02 at 09:11 -0800, Randy Dunlap wrote:
> That's simple enough, but you could also just add
> 	log_buf_len=huge_number

Yeah, thanks for the tip, although the Kconfig change would not hurt as
well.

-- 
Best regards,
Artem Bityutskiy (Битюцкий Артём)


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

end of thread, other threads:[~2007-03-07 11:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-02 13:27 [RFC] [PATCH] Kconfig: enlarge printk buffer size limit Artem Bityutskiy
2007-03-02 17:11 ` Randy Dunlap
2007-03-07 11:33   ` Artem Bityutskiy

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