[lkml]   [2001]   [Feb]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    Patch in this message
    SubjectRe: kernel/printk.c: increasing the buffer size to capture devfsd debug messages.
    On Wed, Feb 21, 2001 at 02:30:08AM +0900, Ishikawa wrote:
    > Has anyone tried 128K buffer size in kernel/printk.c
    > and still have the kernel boot (without
    > hard to notice memory corruption problems and other subtle bugs)?
    > Any hints and tips will be appreciated.

    I have used 128k and larger buffer sizes, and I just noticed this
    fragment in the RedHat Tux Webserver patch. It creates a 2MB buffer:

    --- linux/kernel/printk.c.orig Sun Jan 28 20:24:13 2001
    +++ linux/kernel/printk.c Wed Jan 31 23:21:25 2001
    @@ -22,7 +22,11 @@

    #include <asm/uaccess.h>

    -#define LOG_BUF_LEN (16384)
    +# define LOG_BUF_LEN (16384*128)
    +# define LOG_BUF_LEN (16384)
    #define LOG_BUF_MASK (LOG_BUF_LEN-1)

    static char buf[1024];
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 13:17    [W:0.021 / U:4.880 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site