Re: dmesg command output

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,
     I change printk.c as
 #if !defined(CONFIG_LOG_BUF_SHIFT) ||
(CONFIG_LOG_BUF_SHIFT == 0)
#if defined(CONFIG_MULTIQUAD) || defined(CONFIG_IA64)
#define LOG_BUF_LEN     (65536)
#elif defined(CONFIG_ARCH_S390)
#define LOG_BUF_LEN     (131072)
#elif defined(CONFIG_SMP)
#define LOG_BUF_LEN     (32768)
#else
#define LOG_BUF_LEN     (32768)                 /*
This must be a power of two */
#endif
#else /* CONFIG_LOG_BUF_SHIFT */
#define LOG_BUF_LEN (1 << CONFIG_LOG_BUF_SHIFT)
#endif


 But still i am not getting 32kb output instead i am
getting 16kb. I have recompiled properly and boot new
image.

regards,
cranium
--- anil dahiya <ak_ait@xxxxxxxxx> wrote:

> > > Hello anil,
> > >             But what should be the max val i can
> > > assign to LOG_BUF_LEN? I am using RH9 on Pentium
> 4
> > > machine.
> > 
> > Whatever. You will get at most LOG_BUF_LEN bytes
> out
> > of dmesg, so it
> > must be larege enough that the messages you are
> > interested in fit in. It
> > is a static buffer that eats up your memory, so it
> > should be reasonably
> > small not to eat up too much of it.
> 
> size can be anything but it shld be in power of 2 
> but
> keep the things in mind as explained by Mr. Jan
> Hudec
> ---Anil
> 
> > Note: distro and cpu are irrelevant here -- memory
> > and kernel version
> > are relevant (kernel from RH package is different
> > than kernel from
> > kernel.org).
> > 
> >
>
-------------------------------------------------------------------------------
> > 						 Jan 'Bulb' Hudec <bulb@xxxxxx>
> > 
> 
> > ATTACHMENT part 2 application/pgp-signature
> name=signature.asc
> 
> 
> 
> 
> 		
> __________________________________ 
> Do you Yahoo!? 
> Yahoo! Mail - Easier than ever with enhanced search.
> Learn more.
> http://info.mail.yahoo.com/mail_250
> 



		
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - 250MB free storage. Do more. Manage less. 
http://info.mail.yahoo.com/mail_250

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux