mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Re: Re: printk performance logging without syslogd for router
@ 2001-11-13 12:33 william fitzgerald
  2001-11-13 12:35 ` Peter Wächtler
  0 siblings, 1 reply; 2+ messages in thread
From: william fitzgerald @ 2001-11-13 12:33 UTC (permalink / raw)
  To: pwaechtler, william fitzgerald; +Cc: linux-kernel


---- 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.




Beer Mail, brought to you by your friends at beer.com.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: printk performance logging without syslogd for router
  2001-11-13 12:33 Re: printk performance logging without syslogd for router william fitzgerald
@ 2001-11-13 12:35 ` Peter Wächtler
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Wächtler @ 2001-11-13 12:35 UTC (permalink / raw)
  To: william fitzgerald; +Cc: linux-kernel

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 :-)

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-11-13 12:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-13 12:33 Re: printk performance logging without syslogd for router william fitzgerald
2001-11-13 12:35 ` Peter Wächtler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®