Article View: news.software.nntp
Article #23817Re: syslog cpu hogging
From: Ray Rocker
Date: Mon, 01 Dec 1997 00:00
Date: Mon, 01 Dec 1997 00:00
31 lines
1724 bytes
1724 bytes
In article <Pine.LNX.3.96.971201215535.29021A-100000@mercury.shreve.net>, Brian <signal@shreve.net> wrote: > >On our news server I notice that syslogd generally takes up about 10-15% >of cputime. This is quite a bit. Are you running ncmspool by any chance? After installing ncmspool I found that it became hopelessly backlogged in a matter of hours, and system load seemed awfully high. I saw that syslogd was the culprit. Then I noticed that /var/adm/messages had become immense with stuff like innd: c:<966942555339.9513600166@whatever.com> This is INN logging raw control commands, and ncmspool does a LOT of that! My quick fix was to set syslog.conf to log news.info (which is what I have L_CC_CMD set to) to /dev/null. syslogd now eats 1-2% of the CPU. The ncmspool README says to be sure to set LOG_CANCEL_COMMANDS to DONT, which you certainly want to do, but it doesn't solve this problem. The offending syslog in cc.c:CCreader() is not inside any #ifdefs. Also, c-nocem doesn't have this problem since it manipulates the history file itself instead of sending control cancel commands. -- Ray Rocker rocker@datasync.com
Technical Details
Message-ID:
<6605ja$s7r@osh1.datasync.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-mailReferences:
<Pine.LNX.3.96.971201215535.29021A-100000@mercury.shreve.net>Show Full Headers
Complete Article Headers
Message-ID: <6605ja$s7r@osh1.datasync.com> Subject: Re: syslog cpu hogging Date: Mon, 01 Dec 1997 00:00:00 +0000 From: rocker@datasync.com (Ray Rocker) 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: 294408674 Organization: Datasync Internet Newsgroups: news.software.nntp