From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 25001 invoked from network); 8 Jan 1999 01:24:45 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 8 Jan 1999 01:24:45 -0000 Received: from despam.spin.it (down.spin.it [147.123.1.23]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id UAA03177 for ; Thu, 7 Jan 1999 20:04:59 -0500 Received: from noc.spin.it (up.spin.it [147.123.1.22]) by despam.spin.it (8.8.8/8.8.8/Spin-ext-980226) with ESMTP id CAA06518 for ; Fri, 8 Jan 1999 02:04:57 +0100 (MET) Received: (from furio@localhost) by noc.spin.it (8.8.8/8.8.8/Spin-noc-nov1998) id CAA19989 for axp-list@redhat.com; Fri, 8 Jan 1999 02:04:56 +0100 (MET) From: furio ercolessi Message-Id: <199901080104.CAA19989@noc.spin.it> Subject: Re: syslogd revisited To: axp-list@redhat.com Date: Fri, 08 Jan 1999 2:04:56 MET In-Reply-To: ; from "Bob McElrath" at Jan 7, 99 6:20 pm X-Mailer: Elm [revision: 109.19] > > 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)