Article View: news.software.readers
Article #1010Re: Problem with Cnews relaynews and bad batches
From: Roger Abrahams
Date: Fri, 10 Jan 1992 02:01
Date: Fri, 10 Jan 1992 02:01
59 lines
3984 bytes
3984 bytes
In article <1992Jan9.100907.13305@cs.tu-berlin.de> net@cs.tu-berlin.de (Oliver Laumann) writes: >I'm running Cnews (with all patches until 22-Dec-1991 applied) and >NNTP 1.5.11 on a Sun-3/260 with SunOS 4.1.1. NNTP is compiled with >CNEWS, DBZ, and BACTHED_INPUT. > >Every night relaynews leaves a few batches in $NEWSARTS/in.coming/bad. >Visual inspection of the batches doesn't reveal any obvious damages, >and I can't find any error messages in $NEWSCTL/log, except for the >usual ancient/future date and bad header warnings. $NEWSCTL/errlog is >empty. What is relaynews supposed to log when it encounters a bad >batch and where? > >The strange thing is that when I put the bad batches back into >in.coming, the next newsrun that is fired up by an nntpd processes the >batches fine, i.e. it doesn't put them into in.coming/bad again. > >Where should I start looking for the source of the problem, and what >exactly makes relaynews regard a batch as `bad'? > >Thanks, >-- >Oliver Laumann net@tub.cs.tu-berlin.de net@tub.UUCP net@tub.BITNET Now I have exactly the same problem, however, I know my cause. You might consider checking cronlog files if you run newsrun out of cron, the error might show up there. In my case, I have a smallish AT&T 3b1 Unix-PC box with only 2.5 megs of active memory and 5 megs of swap. The kernel configuration is somewhat on the small size by modern standards also. Now the real problem for me is not in c-news but rather in the recently posted trn 2.2. It seems that the mthreads program is a real hog of memory and system resources. In fact it will grab all the memory it can get (2.5 megs, a built in hardware limitation as the machine can only physically address 4 megs, so 2.5 is practical with the kernel, shared memory and basic stuff running). When mthreads runs as a daemon, it will eventually abort as it is unable to process all the groups completely. It no longer can malloc the memory necessary. This is on a machine that receives a moderate sized feed, but nowhere near a full feed. Even if it runs after a recent expire, and somehow manages to compete and go to sleep, it is still grabbing a full meg of memory. Now, since I can not run this as a daemon (I simply can't spare the memory), I run it out of cron. If it happens that relaynews starts up, and there is a sufficent load of news (I have it set up for immediate processing), relaynews will still be running when cron starts mthreads. Now mthreads seems to hold onto what ever memory it gets, and relaynews gives it back (apparently) between batches, so if mthreads is pretty well along and the relaynews program starts to unpack a batch, then the system kills the relaynews program, and the batch is placed in the bad directory, silently, unless I run it manually, in which case I can see the "killed" error on the system console. Other wise, there is NO logging to errlog at all. This reduces the functionality of trn quite a bit, but I have a problem seeing this as a flaw in trn, given the current state of machines it would probably run on. It's just that this box is getting too small, a problem I hope to deal with soon, a larger, more modern machine is the real fix is here. - roger@booth.uucp
Technical Details
Message-ID:
<1992Jan10.020103.3837@booth.uucp>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!sparky!uunet!spool.mu.edu!introl.introl.com!booth!rogerReferences:
<1992Jan9.100907.13305@cs.tu-berlin.de>Show Full Headers
Complete Article Headers
Message-ID: <1992Jan10.020103.3837@booth.uucp> Subject: Re: Problem with Cnews relaynews and bad batches Date: Fri, 10 Jan 1992 02:01:03 +0000 From: roger@booth.uucp (Roger Abrahams) References: <1992Jan9.100907.13305@cs.tu-berlin.de> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!sparky!uunet!spool.mu.edu!introl.introl.com!booth!roger Newsgroups: news.software.b,news.software.readers Article-I.D.: booth.1992Jan10.020103.3837 Organization: Private System Lines: 59