🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
8 messages
8 total messages Started by Simon Rainey Thu, 01 May 1997 00:00
news spool keeps growing
#17423
Author: Simon Rainey
Date: Thu, 01 May 1997 00:00
56 lines
2404 bytes
I've got an annoying problem running innd 1.5.1 under Linux 1.3.57.

Starting with a clean system (empty news spool) everything runs like a
dream for several weeks. The default expire is set at 4 days and the
news spool grows until the fifth day when it levels off. However,
after a few weeks the size of the news spool begins to creep up over
several days and eventually the filesystem fills up. Once the process
begins, reducing the default expire to 3 days doesn't make an
appreciable difference. I keep some groups for 28 days (see the
extract from expire.ctl below), but if I search the news spool for
files more than 28 days old I find quite a few, which doesn't seem
right.

The news spool is split across four filesystems and I've performed all
the necessary tweaks to the innd software to allow it to cope with
soft links.

I tried rebuilding the history database in case it had become corrupt,
but after a day and a half the server hung :-(

Has anyone seen this problem? Is there a fix? Also, does anyone know
if expire deletes all articles which are older than the expire limit,
or only those articles which have just expired? I ask this because I
configured a test server to expire all groups after 8 days. Once the
system has settled down (i.e. after 10 days or so)  I halved the
expire to 4 days, but the news spool didn't shrink by anywhere near
50% .... lots of 8+ day old articles remained.

The system spec is Pentium 200, Intel Endeavor mainboard, 128MB RAM, 3
x 2GB SCSI HDDs, 2 x 4GB HDDs, DPT 2024 PCI SCSI controller, 3Com
3c590 PCI ethernet.

The relevant section of expire.ctl is

/remember/:35

*:A:1:4:4

junk:A:0:0:0
test:A:1:1:1
alt.*:A:1:10:10
comp.*:A:7:18:18
rec.*:A:7:8:8
uk.*:A:7:14:14
alt.test.*:A:1:1:1
alt.binaries.*:A:1:5:5
uk.education.*:A:14:28:28
uk.test:A:1:1:1

Thanks in advance.
SR



Re: news spool keeps growing
#17433
Author: Simon Rainey
Date: Thu, 01 May 1997 00:00
87 lines
3625 bytes
Mike Horwath <drechsau@nospam.visi.com> wrote:

>Simon Rainey <srainey@rmplc.net> wrote:
>: I've got an annoying problem running innd 1.5.1 under Linux 1.3.57.

>[snipper]

>: The system spec is Pentium 200, Intel Endeavor mainboard, 128MB RAM, 3
>: x 2GB SCSI HDDs, 2 x 4GB HDDs, DPT 2024 PCI SCSI controller, 3Com
>: 3c590 PCI ethernet.

>If you are carrying a full feed on 14GB, you aren't going to keep
>alt.* for 10 days and alt.binaries.* for 5 days, no way in hell.

I should have mentioned that we only take a limited feed of about 9000
groups. We're an ISP to education so we don't carry any of the
alt.binaries.pictures.erotica groups and other less than wholesome
stuff like that, and we don't carry the warez groups either. The split
is

alt		4GB filesystem
comp		2GB filesystem
rec		2GB filesystem
the rest		4GB filesystem
/usr/lib/news	1.7GB filesystem

With the expires we're using right now and when the system is healthy,
the filesystems run between 60% and 80% of capacity. Even when things
go awry it's only "the rest" that gets screwed up. I checked the
out.going directory in case outgoing news was backing up, but this
looked healthy enough. I'll go and check the .overview files as
suggested.

>Your spool is filling because your expires are wrong.

>I will put my suggested changes below, tabbed over so you can see them
>side by side.

>: The relevant section of expire.ctl is

>: /remember/:35				/remember/:14

>: *:A:1:4:4				*:A:1:4:4

>: junk:A:0:0:0				junk:A:0:0:0
>: test:A:1:1:1				test:A:1:1:1
>: alt.*:A:1:10:10			alt.*:A:1:3:3
>: comp.*:A:7:18:18			comp.*:A:8:10:10
>: rec.*:A:7:8:8				rec.*:A:8:10:10
>: uk.*:A:7:14:14			uk.*:A:7:14:14
>: alt.test.*:A:1:1:1			alt.test.*:A:1:1:1
>: alt.binaries.*:A:1:5:5		alt.binaries.*:A:1:2:2
>: uk.education.*:A:14:28:28		uk.education.*:A:14:28:28
>: uk.test:A:1:1:1			uk.test:A:1:1:1

>Now, why?

>alt.* contributes more than 70% of my space on my disk subsystem, I am
>pretty sure this matches most people as well, you can't keep alt.*
>near as long without a buttload more space.

>History retention at 35 days will cause your innd to suck up all
>available memory, use a reasonable time of 14 days.

History retention was originally 14 days but I put it up in a fit of
paranoia. I wasn't certain of the relationship between history
retention and expire times, and as you see, we are keeping some groups
for 28 days. I've learned a lot since then and will reduce it at your
suggestion.

>If you want to use the expire times you listed above, I would suggest
>you add another 32GB of disk space to your system.  You might come
>close to what you *need* to support the configuration you list above.

We may end up with a larger system anyway because our Pentium 200 is
straining under the load. I was hoping to move to wide SCSI and larger
disks if I can.

>Oh, and like someone else said, check your .overview files, make sure
>they are expiring.

Cheers,
SR.


Re: news spool keeps growing
#17439
Author: Brandon Hume
Date: Thu, 01 May 1997 00:00
22 lines
1483 bytes
In news.software.nntp Simon Rainey <srainey@rmplc.net> wrote:
: several days and eventually the filesystem fills up. Once the process
: begins, reducing the default expire to 3 days doesn't make an

The one case where I had a spool that would grow like the Creature From 
the Creepy Lagoon, it was actually the overview databases that were 
responsible.  For some reason or another, news.daily wasn't expiring them 
(rather diconcerting to find 3 gigs worth of overview on a four gig spool).

If you're finding articles older than 28 days appearing on your spool, 
your solution might be as easy as find /var/spool/news -ctime +28 -exec 
rm {} \;.  Then again, you might want to check your error logs and the 
expire.rm files, to see what fastrm might be doing with these files it's 
supposed to be deleting.


-- 
Brandon Hume  -  hume@isisnet.com
- Finger for Geek codes, PGP, /dev/zero, yadda yadda.

Re: news spool keeps growing
#17469
Author: Todd D. Taft
Date: Fri, 02 May 1997 00:00
16 lines
1548 bytes
One possible problem, in addition to the ones already mentioned, is
that you might have articles in your news spool for which there is no
corresponding entry in your history files.  This can happen if your
server crashes or reboots while expire is running.  Since expire bases
the list of files to remove on what it finds in the history
database, these articles will never be removed.  I'd suggest that you
use findmissing.pl, available from Dave Barr's INN page, to identify
any such articles.

-- 
Todd D. Taft                              taft@cs.unc.edu
WWW: http://www.cs.unc.edu/~taft/         todd_taft@unc.edu
U.N.C. Department of Computer Science Facilities Staff

Re: news spool keeps growing
#17487
Author: Todd D. Taft
Date: Fri, 02 May 1997 00:00
16 lines
1252 bytes
One possible problem, in addition to the ones already mentioned, is
that you might have articles in your news spool for which there is no
corresponding entry in your history files.  This can happen if your
server crashes or reboots while expire is running.  Since expire bases
the list of files to remove on what it finds in the history
database, these articles will never be removed.  I'd suggest that you
use findmissing.pl, available from Dave Barr's INN page, to identify
any such articles.

-- 
Todd D. Taft                              taft@cs.unc.edu
WWW: http://www.cs.unc.edu/~taft/         todd_taft@unc.edu
U.N.C. Department of Computer Science Facilities Staff

Re: news spool keeps growing
#17613
Author: Chuck Powers
Date: Wed, 07 May 1997 00:00
28 lines
1590 bytes
In article <R5kc3bu$sit@capefear.cs.unc.edu>, taft@cs.unc.edu (Todd D.
Taft) wrote:

Hi,

I took a look at findmissing.pl and it works great.  Only thing I haven't
figured out is how to pipe it to fastrm.  Has anyone a nifty shell script
that does this?

thanks,
chuck

> One possible problem, in addition to the ones already mentioned, is
> that you might have articles in your news spool for which there is no
> corresponding entry in your history files.  This can happen if your
> server crashes or reboots while expire is running.  Since expire bases
> the list of files to remove on what it finds in the history
> database, these articles will never be removed.  I'd suggest that you
> use findmissing.pl, available from Dave Barr's INN page, to identify
> any such articles.
> 
> -- 
> Todd D. Taft                              taft@cs.unc.edu
> WWW: http://www.cs.unc.edu/~taft/         todd_taft@unc.edu
> U.N.C. Department of Computer Science Facilities Staff

Re: news spool keeps growing
#17750
Author: Todd D. Taft
Date: Tue, 13 May 1997 00:00
70 lines
2942 bytes
(Posted & mailed)
In article <powers-0705972004560001@pc13.nwpacifica.net>,
Chuck Powers <powers@nwpacifica.net> wrote:
>In article <R5kc3bu$sit@capefear.cs.unc.edu>, taft@cs.unc.edu (Todd D.
>Taft) wrote:
>I took a look at findmissing.pl and it works great.  Only thing I haven't
>figured out is how to pipe it to fastrm.  Has anyone a nifty shell script
>that does this?

I won't call it nifty, but here's the hack that I threw together one
night.  I use tmp files, rather than straight pipes, so I can look at
what it tried to do later on, if I need to.  I also have hooks in to
mail me if there was a problem.  They probably wouldn't be needed,
except we have a wonderful policy of piping all output from cron
commands to /dev/null....

#!/bin/sh

#Script by Todd D. Taft
#A semi-informative way to purge files from the news spool that don't exist
#in the history file
#Designed to be run from cron, so we mail our errors to the news admin

#06/06/96

NewsAdminMail='news@cs.unc.edu'

PATH=/newslib/bin/unc:/newslib/bin:/usr/ucb:/bin:/usr/local/bin

findmissing.pl 1> /tmp/spoolclean-nohistory.$$ 2> /tmp/spoolclean-findmissing-err.$$

if ( test -s /tmp/spoolclean-findmissing-err.$$ ); then
	mail -s "Errors checking news spool" $NewsAdminMail <<EOT
The spoolclean script had problems determining which articles appeared in
the news spool, but did not have corresponding entries in the news history
file.  The errors reported were:

`cat /tmp/spoolclean-findmissing-err.$$`

Before stopping because of errors, the spoolclean program had identified the
following files to be deleted:

`cat /tmp/spoolclean-nohistory.$$`
EOT
    exit 1
fi

fastrm /news </tmp/spoolclean-nohistory.$$ 1> /tmp/spoolclean-fastrm-err.$$ 2>&1

if ( test -s /tmp/spoolclean-fastrm-err.$$ ); then
	mail -s "Errors cleaning news spool" $NewsAdminMail <<EOT
The spoolclean script had problems removing some files that appeared in
the news spool, but were not contained within the history file.  Please
investigate these problems:

`cat /tmp/spoolclean-fastrm-err.$$`
EOT
fi





-- 
Todd D. Taft                              taft@cs.unc.edu
WWW: http://www.cs.unc.edu/~taft/         todd_taft@unc.edu
U.N.C. Department of Computer Science Facilities Staff

Re: news spool keeps growing
#17819
Author: Alan Brown
Date: Fri, 16 May 1997 00:00
23 lines
1547 bytes
In article <5lags4$quj@jobe.cs.unc.edu>, Todd D. Taft <taft@cs.unc.edu> wrote:

>I won't call it nifty, but here's the hack that I threw together one
>night.  I use tmp files, rather than straight pipes, so I can look at
>what it tried to do later on, if I need to.  I also have hooks in to
>mail me if there was a problem.  They probably wouldn't be needed,
>except we have a wonderful policy of piping all output from cron
>commands to /dev/null....

If you don't pipe cron output to /dev/null, all that's needed is this:

~/news/bin/findmissing.pl | ~/news/bin/fastrm -us /var/spool/news

I just add it as a command after the expire run crontab, one night a week.

AB

-- 
o Stamp out unauthorised relay-hosting. This SMTP "feature" shouldn't default 
  "on" - See http://spam.abuse.net/spam/ http://www.sendmail.org/antispam.html

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads