lkml.org 
[lkml]   [2001]   [Nov]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
Subjectprintk 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?

my understanding of printk is that each time it
is encountered it is written to disk by syslogd
as i have been told by Erik .so for a lot of
packets there will be alot of writes,therefore
slowing the system and producing false results.

so lets cut out syslogd and just use the -f
option on klogd.
does this decrease the huge slow down of
writting printk's?

basically 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?
do i edit the printk.c file and change the
line:

static char buf[1024];
and increase the size of the array?

or do i edit the klogd.c program and change
something in there?

i'm still at a loose end!

many thanks in advance,
will.





Beer Mail, brought to you by your friends at beer.com.
-
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.052 / U:0.632 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site