Article View: news.software.nntp
Article #2035slow processing of backlogged news
From: Ralph Waters
Date: Fri, 09 Jul 1993 17:26
Date: Fri, 09 Jul 1993 17:26
43 lines
3029 bytes
3029 bytes
I keep having problems with my news server falling behind. Whenever the incoming news feeds go down for any length of time (either due to the news server being down or the network connection being down), the server starts falling farther and farther behind. If the incoming feeds are cut off for too long, the server does not catch up without human intervention. I have the Performance release of C news, nntp 1.5.11 with the msgidd patch, and three nntp feeds. Its running on a Sparc II with SunOS 4.1.3, 64MB RAM, and plenty of swap space. Currently there is about 600MB for the news spool, with /usr/lib/news on a separate partition. Neither partition is full. I have looked into the problem, and determined that the cause of the slow processing of incoming news is the /usr/lib/newsbin/input/newsrun script. What that script does that causes problems is an 'ls' of the /usr/spool/news/in.coming directory. When the server comes up after having been down for a couple of hours, my news feeds start sending me all of the back-logged news. This fills up the in.coming directory much faster than the server can process it. After a while, the 'ls' starts taking a lot of time (with ~1000 articles, it takes 5-10 seconds). This causes the newsrun script to take more time finding out which articles to process than the actual processing, and much more time than the nntp receipt of the articles. I have changed several things in the newsrun script to try to make it run faster. The default processing of 50 articles then wait 45 seconds seemed like a good place to start. I have increased the number of articles processed each loop iteration. I have decreased the time newsrun sleeps between batches. And, I replaced the 'ls | sort' with a 'ls -f | sort' so the list of files doesn't get sorted twice. All of these help, but don't eliminate the problem. Does anyone else have this kind of problem? How is it handled? Thanks, -Ralph- -- Ralph Waters | Internet: rwaters@jabba.ess.harris.com Harris Corp, ISD | "The sooner you fall behind, Melbourne, Florida | the longer you have to catch up"
Technical Details
Message-ID:
<C9wr4C.EvJ@jabba.ess.harris.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.admin.misc.mbox.zip!gmd.de!xlink.net!howland.reston.ans.net!sol.ctr.columbia.edu!jabba.ess.harris.com!jabba!rwatersShow Full Headers
Complete Article Headers
Message-ID: <C9wr4C.EvJ@jabba.ess.harris.com> Subject: slow processing of backlogged news Date: Fri, 9 Jul 1993 17:26:35 GMT From: rwaters@jabba.ess.harris.com (Ralph Waters) Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.admin.misc.mbox.zip!gmd.de!xlink.net!howland.reston.ans.net!sol.ctr.columbia.edu!jabba.ess.harris.com!jabba!rwaters Newsgroups: news.software.b,news.software.nntp,news.admin.misc Followup-To: news.software.b Keywords: C News, nntp, performance Sender: usenet@jabba.ess.harris.com (Usenet News Feed) Nntp-Posting-Host: jabba Reply-To: rwaters@jabba.ess.harris.com Organization: Harris Corporation - ISD Lines: 42