printk performance logging without syslogd for router

printk performance logging without syslogd for router

Post by william fitzgeral » Wed, 14 Nov 2001 21:30:17



---- Begin Original Message ----

Sent: Tue, 13 Nov 2001 13:15:45 +0100
To: william fitzgerald


Subject: Re: printk performance logging without
syslogd for router


> hi all,

> (perforamnce logging of network stack through a
> linux router)

> the main question:

> is there a way i can buffer or record  the
printk
> statements and print them to disk  after my
> packets have gone through the router?

there is an option in syslogd to prevent
immediatly
writing to the logfile:

prefix the log with a dash:

kern.*  -/var/log/kernelmessages

---- End Original Message ----

what does klogd do?

i thought klogd writes to disk if you turn off
syslogd.that way you only have one over head.

Beer Mail, brought to you by your friends at beer.com.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

1. printk kernel logging for router

You might be interested in the kernelnewbies.org website, mailinglist,
and IRC channel.

Don't be surprised if all that printing will degrade the performance of
your router.

Printk doesn't write to disk, syslogd does.

Change /etc/syslogd.conf. Put all kernel messages into a separate
logging file and put a '-' before the log file name so syslogd will not
sync the file after each write. See man syslogd, klogd, syslog.conf

Erik

--
J.A.K. (Erik) Mouw, Information and Communication Theory Group, Faculty
of Information Technology and Systems, Delft University of Technology,
PO BOX 5031, 2600 GA Delft, The Netherlands  Phone: +31-15-2783635

WWW: http://www-ict.its.tudelft.nl/~erik/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

2. Does the 14Gb Exabyte drive work with SunOS 4.1.3 ?

3. 4.7, syslogd and remote router logging

4. Best hardware for linux machine <= $8K?

5. syslogd got me stumped (trying to log Cisco router messages)

6. Netatalk - HELP

7. syslogd logging data from router

8. [ATM] suni_init shouldnt be __init and remove mod inc/dec

9. syslogd not logging from router

10. Q: syslogd and printk

11. printk vs syslogd ??

12. syslogd does not log ip-packet-logs any more

13. alternative to printk, printing without buffering