From: furio ercolessi <furio@spin.it>
To: axp-list@redhat.com
Subject: Re: syslogd revisited
Date: Fri, 08 Jan 1999 2:04:56 MET [thread overview]
Message-ID: <199901080104.CAA19989@noc.spin.it> (raw)
In-Reply-To: <Pine.LNX.4.04.9901071819060.25067-100000@draal.physics.wisc.edu>; from "Bob McElrath" at Jan 7, 99 6:20 pm
> > However, I am rather unhappy with the amount of CPU which
> > syslogd seems to use under normal circumstances.
> > For instance, right now I observe a syslogd using about 60-70%
> > of a 533MHz LX to write about 13kB per minute on a file.
> > This is ridiculous. Heck, in this case the messages are generated
> > by sendmail, which does that while cruising along at 0.1% CPU.
> >
> > syslogd therefore appears as the principal bottleneck in
> > our systems' performance. Is anybody else observing that?
>
> 1) Turn off mail reporting (it generates high volume...)
No, we cannot do that, we need the logs (we are an ISP).
> 2) configure sendmail to NOT sync after a write. This may be where the CPU
> usage is coming from. Not from sendmail, but from the forced disk write
> (via sync).
This was an excellent suggestion! I just discovered that you could
do that by putting a "-" prefix in front of the filename in
syslog.conf, as explained in sysklogd(8). It really worked.
syslogd usage went down to nearly zero, and the funny thing is that
error messages seem to go out instantly to the disk file anyway.
Still, the cost of sync'ing a file cannot be that high.
I believe that this behavior suggests the presence of some other can
of worms somewhere, which somebody may like to open ;-)
Thanks again for this fantastic tip!
furio ercolessi
Spin - Trieste (Italy)
next prev parent reply other threads:[~1999-01-08 1:24 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-01-08 0:02 syslogd revisited furio ercolessi
1999-01-08 0:20 ` Bob McElrath
1999-01-08 1:04 ` furio ercolessi [this message]
1999-01-08 1:31 ` Bob McElrath
1999-01-08 1:51 ` furio ercolessi
1999-01-08 2:08 ` Larry Snyder
1999-03-19 17:46 ` furio ercolessi
1999-03-19 17:51 ` Reid van Melle
1999-03-22 15:06 ` wae
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox