On Sat, 20 May 2000, Mike Lewis wrote:

> 
> Can someone tell me what is going on with syslog and why it is taking so
> much CPU time ?  I see nothing unusal in /var/log/messages.  RH6.1 with all
> updates.
> 


Hey Mike,

        I'd take a look at the size of your log files.  By default syslogd
will do an fsync() on your logfile after every line is written.  This
guarantees that your data will acutally be on disk should your machine belly
up.  Unfortuanlty it can be an increasingly expensive task as your logfiles
grow. 

        Assuming this is indeed the case you might want to look at
increasing the frequency of your log rotations (/etc/logrotate.conf) or
prehaps just turning off the syncing feature.  If you prepend a "-" to the
logfile name in /etc/syslog.conf then the file will be treated like a normal
file and synced at the systems leasure.  Unless you really don't care about
your logs, or are at least doing remote logging off to a second host, I
would recomend against the latter.

M.


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.

Reply via email to