Kconfig: enlarge printk buffer size limit
RFC PATCH 1/1 Kconfig: enlarge printk buffer size limit
From: Artem Bityutskiy <[email protected]>
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.
lib/Kconfig.debug +1 -1
@@ -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
Quoted 13 lines · On Fri, 02 Mar 2007 15:27:48 +0200 Artem Bityutskiy wrote:
From: Artem Bityutskiy <[email protected]>
Subject: [RFC] [PATCH]Kconfig: enlarge printk buffer size limitThis 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
===================================================================
lib/Kconfig.debug config DEBUG_KERNEL · line 85
Quoted 8 lines
lib/Kconfig.debug +1
-1@@ -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 ***
Quoted 2 lines · Randy Dunlap
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.
Signature · 2 lines
Best regards, Artem Bityutskiy (Битюцкий Артём)