🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #19421

Re: Summarizing Perl filtering information

#19421
From: John Milburn
Date: Sun, 20 Jul 1997 00:00
29 lines
1642 bytes
[Posted and mailed. -jem]

sysuh@kigam.re.kr writes:
>Btw, I noticed that syslogd is very busy writing too many
>"rejecting[perl] ..." lines on news.notice.  Therefore, I would

There are two problems here. One is that the perl filter creates so many
rejects (due to the incredible amount of spam being generated these days),
which leads to so many log entries.

The second problem is with syslog, which syncs a file after every write
to that file. If the logs are on a busy file system, syslogd will block
during the sync, and eat up cycles and I/O bandwidth doing unnecessary
stat'ing.

On some systems, you can add a flag to certain syslog entries, turning
off the file syncing after each write.

One recent Linux versions, you add a '-' just before the filename. I
use the following in the definition for news.notice:

news.notice                                     -/var/log/news/news.notice

You might want to do the same with any other busy log file.

-jem

Technical Details
Message-ID: <5qs9f8$hdp$1@rtr.xpat.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: <5qn9le$b06@news.kigam.re.kr>

Show Full Headers
Complete Article Headers
Message-ID: <5qs9f8$hdp$1@rtr.xpat.com>
Subject: Re: Summarizing Perl filtering information
Date: Sun, 20 Jul 1997 00:00:00 +0000
From: jem@xpat.com (John Milburn)
References: <5qn9le$b06@news.kigam.re.kr>
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: 257806561
Followup-To: news.software.nntp
Organization: Xpat, Seoul, Korea
Reply-To: jem@xpat.com (John Milburn)
Newsgroups: news.software.nntp
Originator: jem@xpat.com (John Milburn)