🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #25574

Re: dbz v3.3.2 in INN 1.7.2.insync-1.1d fails for large history files

#25574
From: Michael Hucka
Date: Sun, 25 Jan 1998 00:00
68 lines
4265 bytes
>>>>> On 22 Jan 1998, Nate Shockey <underdog@flash.net> wrote:

  >> Michael Hucka (hucka@eecs.umich.edu) wrote:
  >> Sorry; I forgot to mention we use a /remember/ (and -c) of 9 days.

  underdog> Really?  Your history file is _that_ big with a 9 day remember
  underdog> time?  I have mine set at 7 days.  I run Solaris 2.5.1 and have
  underdog> 44 GB of spool.  My history file is always less than 400MB.  I
  underdog> think your problem may be elsewhere.  Unless, of course, those
  underdog> two extra days add up to over 600MB worth of history.  Anyone
  underdog> care to comment?

I think Barry answered this to some extent; there is bound to be some
variability in the sizes of history files owing to expiration policies.
Our default expire time for newsgroups is 21 days, but for example we keep
the Big 8 for 50 days (with some super-high volume subhierarchies on shorter
leashes to avoid getting directories with tens of thousands of files) and a
few hierarchies as long as 98 days.  We carry about 30,000 groups, though not
all are active (but I try to prune out junk hierarchies as time permits).

However, you *did* prompt me to think about this some more, and I now realize
you're right -- our history files is indeed bloated for the wrong reasons,
and earlier this week I figured out the real problem.

Something I didn't mention before is that we're using one of the cancel
filing patches (the one by Joe Greco), that makes innd write cancel messages
in a directory structure subdivided into 100 x 100 directories.  That works
fine, but for some time I've noticed that expire complains about 

    Group not matched (removed?) control.cancel.c75.c42 -- Using default expiration
    Group not matched (removed?) control.cancel.c75.c43 -- Using default expiration
    ...

This was curious, because in expire.ctl I have 

    control.cancel*:A:0:0.5:0.5
    control.cancel.*:A:0:0.5:0.5

I puzzled over this, but not having time to track it down more properly, I
simply deleted the cancel msgs by hand ("find .-type f -mtime +1 | xargs rm").

But what I didn't realize until now is that the history entries for those
cancel messages were not getting expired at the desired interval; instead,
they were getting the default expiration (21 days) -- just like the log
messages said, of course.  So our history file now has probably millions of
unnecessary entries for cancel messages!

The problem lies with expire.c itself: in order to expire a particular group,
it wants to look up the group in the active file.  But the change to the
cancel filing approach (in Joe Greco's patch, and I suspect in other similar
patches too) creates 10,000 groups for cancel messages, and there's just no
way I'm going to add that many groups for the cancels.  Because the
control.cancel.X.Y groups are not in the active file, expire just uses the
default expiration for them.

To fix this requires either setting a very short default expiration, or else
modifying expire to have a special case for the cancels.  I'm working on the
latter approach and will post a patch when ready.

So in summary, I think we should not have a 1 GB history file after all.

--
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

Technical Details
Message-ID: <82k9bo9lyp.fsf@robin.eecs.umich.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <821zy2jqrh.fsf@robin.eecs.umich.edu> <wklnwaj9ww.fsf@ibm.net> <6a4uug$e56$1@lyra.csx.cam.ac.uk> <82d8hlol5p.fsf@eagle.eecs.umich.edu> <34C71295.A647DB23@flash.net>

Show Full Headers
Complete Article Headers
Message-ID: <82k9bo9lyp.fsf@robin.eecs.umich.edu>
Subject: Re: dbz v3.3.2 in INN 1.7.2.insync-1.1d fails for large history files
Date: Sun, 25 Jan 1998 00:00:00 +0000
From: Michael Hucka <hucka@eecs.umich.edu>
References: <821zy2jqrh.fsf@robin.eecs.umich.edu> <wklnwaj9ww.fsf@ibm.net> <6a4uug$e56$1@lyra.csx.cam.ac.uk> <82d8hlol5p.fsf@eagle.eecs.umich.edu> <34C71295.A647DB23@flash.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 319222076
To: Nate Shockey <underdog@flash.net>, barryb@tuke.sk
Organization: University of Michigan EECS, Ann Arbor, Mich., USA
Newsgroups: news.software.nntp