🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #23861

Re: syslog cpu hogging

#23861
From: Marc Slemko
Date: Tue, 02 Dec 1997 00:00
38 lines
2075 bytes
In <Pine.LNX.3.96.971201215535.29021A-100000@mercury.shreve.net> Brian  <signal@shreve.net> writes:


>On our news server I notice that syslogd generally takes up about 10-15%
>of cputime.  This is quite a bit.

What platform?  Do a ktrace/ptrace/strace/truss/etc. to trace the 
system calls and see if it is doing something stupid.

>I have symlinked "/var/log/news/news","/var/log/news/gfilter.log", and
>"/var/log/messages" to /dev/null to try and not only eliminate file
>maintenance on these directories, but reduce syslog writing to disk.

If you don't want something syslog logs to (ie. stuff like /var/log/messages)
then remove it from syslog instead of logging it and discarding it.

Be sure you aren't logging things multiple times, etc.  Go over your 
syslog.conf.

On some systems, syslog does horrible nasty things but the 
ktrace or equiv. for your platform should show you if it is
doing that.

Example from my (FreeBSD 2.x) box:

root        97  0.0  0.3   216  240  ??  Ss   Mon11PM   22:11.56 syslogd
news      2948 11.8 21.3 35588 20504  ??  Ss   Thu08PM  1346:32.91 /usr/local/news/cnfs/bin/innd -p4 -i0

syslogd has been running for a week and used 22 minutes.  innd has 
been running for 4 days and used 1436 minutes.  syslogd never
uses any significant CPU; disk bandwidth is a different matter, but
it is always harder to measure.

That's what I want for xmas.  A version of top that will rank 
processes in terms of disk IO by disk.

Technical Details
Message-ID: <6609do$4v9$1@scanner.worldgate.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <Pine.LNX.3.96.971201215535.29021A-100000@mercury.shreve.net>

Show Full Headers
Complete Article Headers
Message-ID: <6609do$4v9$1@scanner.worldgate.com>
Subject: Re: syslog cpu hogging
Date: Tue, 02 Dec 1997 00:00:00 +0000
From: Marc Slemko <marcs@znep.com>
References: <Pine.LNX.3.96.971201215535.29021A-100000@mercury.shreve.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 294423847
Organization: WorldGate Inc. http://www.worldgate.com/
Newsgroups: news.software.nntp