lkml.org 
[lkml]   [2001]   [Nov]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: printk performance logging without syslogd for router
william fitzgerald wrote:
>
> ---- Begin Original Message ----
> From: Peter Wächtler <pwaechtler@loewe-komp.de>
> Sent: Tue, 13 Nov 2001 13:15:45 +0100
> To: william fitzgerald
> <william.fitzgerald3@beer.com>
> CC: linux-kernel@vger.kernel.org
> Subject: Re: printk performance logging without
> syslogd for router
>
> william fitzgerald wrote:
> >
> > 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.
>

OK, normally klogd pushes the messages to syslog.
Then syslogd decides where and how to write to disk.

If you use "klogd -f /tmp/logfile" I don't know how
to prevent immediate write()s to disk. The source code
of klogd will tell you :-)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:13    [W:0.057 / U:0.176 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site