Skip to contentSkip to conversation

Faster logging?

DISCUSSION Neal D. Becker 2 participants 2 messages Apr 25, 2002

lore
Share & tools
lore
#0 lore raw

Trying to debug using printk, we are getting buffer overun. I think that setting klogd to flush faster would fix this. Man klogd doesn't show any option to control the time that klogd sleeps. Seems to me that's a simple option to add.

#1 lore raw
Quoted 4 lines · Neal D. Becker

Trying to debug using printk, we are getting buffer overun. I think that setting klogd to flush faster would fix this. Man klogd doesn't show any option to control the time that klogd sleeps. Seems to me that's a simple option to add.

Try this:

1.- /etc/rc.d/init.d/syslogd stop
2.- klogd -c 1
3.- killall -9 klogd
4.- nice -n -20 cat /proc/kmsg > your_file

You should also increase the buffer size up to 1 MB (see kernel/prink.c).

Best regards.

Juan.