Article View: news.software.nntp
Article #23859Re: syslog cpu hogging
From: Jeff Fisher
Date: Tue, 02 Dec 1997 00:00
Date: Tue, 02 Dec 1997 00:00
35 lines
1967 bytes
1967 bytes
On Mon, 1 Dec 1997 22:00:02 -0600, Brian
<signal@shreve.net> said:
>
> On our news server I notice that syslogd generally takes up about 10-15%
> of cputime. This is quite a bit.
>
> 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.
What you may want to do is to include news.none on the line for
/var/log/messages. For example:
*.notice;mail.none;news.none /var/log/messages
*.info;mail.non;news.none /dev/console
This should reduce the amount of cpu syslogd is taking up. You're
risking a bit much if you don't have /var/log/messages.
Setting LOG_CANCELS? to DONT should help some (but probably not much).
> Is there anything else that can be done to speedup syslog and reduce the
> amount of cputime it eats? Is there a way to tell INN not to write to
> /var/log/news/news?
The /var/log/news/news file is written directly by inn, and will not cause
syslogd cpu usage to increase. It shouldn't cause a big change in inn's
cpu usage either, since it's buffered.
--
Jeff Fisher | Nobody expects the Spanish
UNIX Sys Admin - IES Industries | Inquisition.
http://opus.ies-energy.com/jeff/ | - Cardinal Ximinez
Technical Details
Message-ID:
<slrn6877mq.5dq.rzxtlg@dogbert.ies-energy.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: <slrn6877mq.5dq.rzxtlg@dogbert.ies-energy.com> Subject: Re: syslog cpu hogging Date: Tue, 02 Dec 1997 00:00:00 +0000 From: rzxtlg@dogbert.ies-energy.com (Jeff Fisher) 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: 294415200 Reply-To: jeff@dogbert.ies-energy.com Organization: IES Newsgroups: news.software.nntp