🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
2 messages
2 total messages Started by Erland Sommarskog Sat, 12 Oct 1996 00:00
Too many cancel messages is not healthy
#11605
Author: Erland Sommarskog
Date: Sat, 12 Oct 1996 00:00
66 lines
3843 bytes

This is a war story, that I like to share in case I might save
someone else from the same experience. The short summary is:
don't have 300.000 cancel messages on your machine.

We 're running dexpire to expire old articles here, and nothing
wrong with dexpire, but there is a bug in the version we have.
Our dexplist used to look like this:

   algonet                                 x       300     90
   swnet                                   x       200     30
   alt.binaries                            x       50
   alt.sources                             x       150
   news.announce.newusers                  x       0
   comp.binaries                           x       50
   bionet.molbio.genbank.updates           x       50
   control                                 x       10
   junk                                    x       50
   alt,rec,soc                             x       50
   talk                                    x       25
   all                                     x       100

The idea, is the higher the number, the longer articles are kept.
And this works down to a weight of 50. We used to have alt.binaries
on 25, but nothing was ever expired there. Imagine 23 GB spool
with two months worth old of alt.binaries! When rec.* groups were
only kept for five days, we took the easy way out and upped
alt.binaries to 50.

Control.* with a weight of 10 was kept for around 35 days, but they
don't take up much disk space...but they do contain one hell lot
of files! Particulary with all of these spam cancells going on.
Last Friday I found two dexpire processes hogging the CPU. My
immediate guess was that they were trying to clean up control.cancel,
and mailed the staf here and suggested that "rm -f" was necessary.
While looking at the directory I noticed that it was said to have
7.4 million links, a little more than the 300.000 files actucally
hiding there. I didn't pay any attention to this though.

Maybe I should, because on Sunday the machine crashed, and was not
easy to revive. It started, and INN renumbered, but then machine
died again. Apparently this happened when it tried to access the 
cancel directory, which was about empty by now, as the rm operation 
had completed the day before. An fsck revealed no errors, but still
the machine panicked, and eventually the decision was made to
rebuild the file system, and this throw away some 20MB of articles.

The particular hardware is SS20 with Solaris 2.5 and RAID of which
I don't remember the exact details. That is secondary anyway, as
it should be apparent to anyone that keeping 300.000 files in one
directory is not a very good idea.

But who would be so stupid to do it beside us? Well, I have had
use of them. You know, discovering a that someone has been forging
cancel, that's a good resource to dig from. But, OK, they are
dispensable. But somehow, this opens the discussion that have been
here in news.software.nntp about storing news in a different way.
For instance, using an RDBMS, it doesn't really matter if you
have 3 or 300.000 articles in a group. And the same is true for
several of the other alterntaives that have been proposed.

-- 
Erland Sommarskog, Stockholm, sommar@algonet.se

Re: Too many cancel messages is not healthy
#11611
Author: Erland Sommarskog
Date: Sat, 12 Oct 1996 00:00
12 lines
1126 bytes
Sorry to deluge the newsgroup, but I have to apologize for posting
two almost identical copies of my article. Shortly after my posting
I reliazed that were was an error in it, and decided to correct
and cancel. However, I had forgotten that cancels don't work from
my copy of trn, because inews is no longer where it used to be,
and I'm too lazy to rebuild. (I'm not using trn extensively, as I
mainly use News Xpress for reading news.)
-- 
Erland Sommarskog, Stockholm, sommar@algonet.se

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