Thread View: news.software.nntp
8 messages
8 total messages
Started by Ken Leland
Tue, 24 Jun 1997 00:00
Control Group - Update
Author: Ken Leland
Date: Tue, 24 Jun 1997 00:00
Date: Tue, 24 Jun 1997 00:00
21 lines
1394 bytes
1394 bytes
Several days ago I started murdering my control group directory hourly. The past two nights I have seen my expiration (fastrm actually) interval cut down from 6 hours to 3 hours. Every factor of two helps, when it comes to expiration times. I don't get the factor of 2 on maximum article write rates reported earlier by someone else. I only get a 40 percent increase. But this is still nice. I may just have to hold off on perfect cancellation propagation until we can fire up a second machine (perhaps Diablo style) just for newspeering. We don't have a large box, and are happy just to get around 400K articles articles written to the spool each day, while serving 100 nntp sessions. I'm also trying to build in a little growth room for obvious reasons (Might even have to put in a second narrow scsi controller). Ken Leland Monmouth Internet
Re: Control Group - Update
Author: Timothy J. Miller
Date: Tue, 24 Jun 1997 00:00
Date: Tue, 24 Jun 1997 00:00
31 lines
1784 bytes
1784 bytes
kwl@shell.monmouth.com (Ken Leland) writes:
> Several days ago I started murdering my control group directory hourly.
> The past two nights I have seen my expiration (fastrm actually) interval
> cut down from 6 hours to 3 hours. Every factor of two helps,
> when it comes to expiration times.
I murder mine every two hours (my major feeds aren't
backlogged) and so far have seen almost 600,000 articles in the last 15
hours for a total of over 5Gb volume. This compared to <300,000 articles
and <1Gb total volume *per day* over the last week.
Last night's fastrm took an hour and 15 minutes. Previous
average was over 20 hours.
Of course, control.cancel had over 600,000 articles in it. Most
of them were lost articles for one reason or another.
> I don't get the factor of 2 on maximum article write rates reported earlier
> by someone else. I only get a 40 percent increase. But this is still nice.
Heh. I get a factor of 5; went from ~2 articles/second average
over all feeds to over 10 (and still climbing).
--
Cerebus <tmiller@ims.advantis.com>
PGP Fingerprint:
BC AB 28 19 A6 A4 FF 5B CA 4D B4 03 3A A7 F4 5C
Re: Control Group - Update
Author: Michael Hucka
Date: Tue, 24 Jun 1997 00:00
Date: Tue, 24 Jun 1997 00:00
69 lines
3975 bytes
3975 bytes
>>>>> On 24 Jun 1997, dillon@flea.best.net (Matt Dillon) wrote:
dillon> I wrote a program called 'newsprune' a while back.. it's on my site
dillon> ( http://www.backplane.com/ ), in the INN/NEWS section which runs
dillon> through the spool and removes article files that do not exist in
dillon> the history file. I run it once a day to clean up after INN. It's
dillon> very fast.... it scans the history file and constructs range lists
dillon> for each group, then scans the spool directory removing any article
dillon> that does not match the range lilst for that group.
Let me endorse "newsprune" as a great utility -- thanks for writing it and
making it available!
dillon> I've also started doing the equivalent of an rm -rf on the
dillon> control/cancel directory once an hour now. The spamming and
dillon> followup cancels have gotten a lot worse in the last four weeks.
I've been trying to come up with an alternative to rm'ing the control/cancel
directory that will trim its size, but still keep cancels around so that they
will have a chance of being propagated. Here's what I have so far; I haven't
had time to work on something better.
1) I run the following `cleancancels' script every 3 hours. Its purpose is
to recreate the control/cancel directory and copy back into it those
cancel messages that are younger than 24 hours. At least on my system
(Solaris 2.5.1), it's important to create a *new* directory, not just
delete articles, in order to get a performance improvement. (Thus, some
of the solutions proposed by others in this discussion thread don't
actually make a difference on my system, because they only delete the
cancel articles and don't recreate the directory. This includes the
approach of running expire multiple times per day.) The use of the
1-day-old criterion is a compromise between nuking everything and keeping
cancel messages long enough to let most sites get them.
2) Rather than having this script do an rm -rf on the directory, I have a
separate process out of cron do it once a night, for all the cancel.ZZZZZ
directories created by the script. The reason is that doing the rm -rf
beats on the disk significantly (offsetting some of the performance
improvements sought in the first place), so I think it's better to lump
the deletions into one event.
Also, make sure that your expire.ctl has an expiration for control.cancel
that is longer than 1 day.
#!/bin/sh -x
#
# Description : Clean up the cancel directory.
# Author(s) : Michael Hucka <hucka@eecs.umich.edu>
# Organization: University of Michigan EECS DCO
# Created : 1997-06-24
#
# IMPORTANT: This script relies on a second process, presumably run from
# cron, to delete the cancel.ZZZZZ directories that it creates.
PATH=${PATH}:/news/bin:/usr/gnu/bin
export PATH
cd /news/spool/control/
mv cancel cancel.$$
mkdir cancel
find cancel.$$ -type f -mtime -1 -print | xargs -i /bin/mv "{}" cancel
--
Mike Hucka hucka@umich.edu http://www.eecs.umich.edu/~hucka University
PhD to be, computational models of human visual processing (AI Lab) of
UNIX systems administrator & programmer/analyst (EECS DCO) Michigan
Re: Control Group - Update
Author: Ken Leland
Date: Tue, 24 Jun 1997 00:00
Date: Tue, 24 Jun 1997 00:00
12 lines
838 bytes
838 bytes
> Heh. I get a factor of 5; went from ~2 articles/second average >over all feeds to over 10 (and still climbing). > that was one constipated news box - sounds somewhat better now. Ken Leland Monmouth Internet
Re: Control Group - Update
Author: Fred Condo
Date: Tue, 24 Jun 1997 00:00
Date: Tue, 24 Jun 1997 00:00
31 lines
2002 bytes
2002 bytes
In article <5opbjq$n8c$1@flea.best.net>, dillon@flea.best.net (Matt Dillon) wrote: > > I wrote a program called 'newsprune' a while back.. it's on my site > ( http://www.backplane.com/ ), in the INN/NEWS section which runs through > the spool and removes article files that do not exist in the history > file. I run it once a day to clean up after INN. It's very fast.... > it scans the history file and constructs range lists for each group, > then scans the spool directory removing any article that does not match > the range lilst for that group. > > I've also started doing the equivalent of an rm -rf on the control/cancel > directory once an hour now. The spamming and followup cancels have gotten > a lot worse in the last four weeks. > > -Matt I've seen numerous references to control/cancel in this and similar threads. I'm running INN 1.5.1, but my control directory is flat (and huge). Is there a patch to INN to subdivide the control directory, or am I just missing a configuration option? -- http://www.lightside.net/~fred/ + net access + http://www.lightside.net/ "Attempts to control the use of encryption technology are wrong in principle, unworkable in practice, and damaging to the long term economic value of the information networks." - UK Labour Party
Re: Control Group - Update
Author: Matt Dillon
Date: Tue, 24 Jun 1997 00:00
Date: Tue, 24 Jun 1997 00:00
48 lines
2679 bytes
2679 bytes
:In article <87radsm02x.fsf@tmill06.sch.advantis.com>,
:Timothy J. Miller <tmiller@ims.advantis.com> wrote:
:>kwl@shell.monmouth.com (Ken Leland) writes:
:>
:>> Several days ago I started murdering my control group directory hourly.
:>> The past two nights I have seen my expiration (fastrm actually) interval
:>> cut down from 6 hours to 3 hours. Every factor of two helps,
:>> when it comes to expiration times.
:>
:> I murder mine every two hours (my major feeds aren't
:>backlogged) and so far have seen almost 600,000 articles in the last 15
:>hours for a total of over 5Gb volume. This compared to <300,000 articles
:>and <1Gb total volume *per day* over the last week.
:>
:> Last night's fastrm took an hour and 15 minutes. Previous
:>average was over 20 hours.
:>
:> Of course, control.cancel had over 600,000 articles in it. Most
:>of them were lost articles for one reason or another.
:>
:>> I don't get the factor of 2 on maximum article write rates reported earlier
:>> by someone else. I only get a 40 percent increase. But this is still nice.
:>
:> Heh. I get a factor of 5; went from ~2 articles/second average
:>over all feeds to over 10 (and still climbing).
:>
:>--
:>Cerebus <tmiller@ims.advantis.com>
:>PGP Fingerprint:
:> BC AB 28 19 A6 A4 FF 5B CA 4D B4 03 3A A7 F4 5C
I wrote a program called 'newsprune' a while back.. it's on my site
( http://www.backplane.com/ ), in the INN/NEWS section which runs through
the spool and removes article files that do not exist in the history
file. I run it once a day to clean up after INN. It's very fast....
it scans the history file and constructs range lists for each group,
then scans the spool directory removing any article that does not match
the range lilst for that group.
I've also started doing the equivalent of an rm -rf on the control/cancel
directory once an hour now. The spamming and followup cancels have gotten
a lot worse in the last four weeks.
-Matt
Re: Control Group - Update
Author: Andrew Gierth
Date: Wed, 25 Jun 1997 00:00
Date: Wed, 25 Jun 1997 00:00
20 lines
1460 bytes
1460 bytes
>>>>> "Fred" == Fred Condo <fred@lightside.net> writes: Fred> I've seen numerous references to control/cancel in this and Fred> similar threads. I'm running INN 1.5.1, but my control Fred> directory is flat (and huge). Is there a patch to INN to Fred> subdivide the control directory, or am I just missing a Fred> configuration option? Just create a control.cancel newsgroup and INN will file cancels there instead of in control. Do the same for control.newgroup, control.rmgroup, control.checkgroups etc. if you want. Might be a good idea to zap your current control directory first if it's too bloated. -- Andrew.
Re: Control Group - Update
Author: Michael Hucka
Date: Thu, 26 Jun 1997 00:00
Date: Thu, 26 Jun 1997 00:00
40 lines
1983 bytes
1983 bytes
Yes, yet another article in this thread.
I found that the previous script I posted still beat up the disk too much, so
here's a new attempt at a hopefully more efficient version, this time in
Perl. The code is hackacious but runs a bit faster on my system, though it's
still more expensive than I wish -- improvements are very welcome.
The rest of the procedure is still as I described it in the previous message.
E.g., you need to have something go clean up the cancel.$$ dirs periodically.
#!/usr/bin/perl
#
# USAGE: cleancancels SECONDS CANCELDIR
#
# First arg SECONDS is the maximum age of cancel messages; second arg
# CANCELDIR is absolute pathname to cancel directory.
$maxage = $ARGV[0]/86400;
$canceldir = $ARGV[1];
$olddir = "$canceldir.$$";
rename $canceldir, $olddir;
mkdir $canceldir, 0755;
chdir $olddir or die "chdir $olddir: $!\n";
opendir DIR, $olddir;
foreach (grep(-f && !/^\.\.?$/, readdir DIR)) {
rename($_, "$canceldir/$_") if (-M $_ < $maxage);
}
closedir DIR;
--
Mike Hucka hucka@umich.edu http://www.eecs.umich.edu/~hucka University
PhD to be, computational models of human visual processing (AI Lab) of
UNIX systems administrator & programmer/analyst (EECS DCO) Michigan
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