🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #23450

Re: Expire problems...

#23450
From: Requests for Further Spamming
Date: Thu, 20 Nov 1997 00:00
80 lines
4635 bytes
On Wed, 19 Nov 1997, Anthony Kueh wrote:

> I seem to have the same problem..  but it doesn't take as long.. usually
> around 10-11 hours. However, I know this is not suppose to take this long.
> Most of the time is spent in "expire", and not "expireover" or "fastrm".

    Well, excellent.  One problem is that people say that expire takes too
long, without giving more details.  Fortunately, you're pointing to expire
itself as taking far longer than it should, so we won't offer you
suggestions how to make fastrm go faster.


> Anyone got any suggestions?

    What you are saying is that it is taking far too long for expire to go
through your history file and copy the entries it wants to keep to
history.n.  When expire finishes this, it takes a few seconds (or more) to
make a new .pag database file, then it quickly shuffles the history.n*
files into place.  You probably see that after a few hours, you have a
history.n file that's still far smaller than your history file, and is
only slowly growing in size.

    I've just completed a gruesome study of the effect of various things
on expire and other performance.  In fact, I've reached the point where my
history file has grown large enough that rather than taking ten to twenty
minutes to chew through the file, it may take hours, until I have mercy
and terminate the futile process.

    The crucial factors are the size of the database file (the .pag file)
and the amount of memory you have.  The database file size will be
somewhat proportional to the size of the history text file, with a few
days of smoothing.  This is also proportional to the length of time you
remember history entries.

    With 32M of RAM, I was able to keep a history file with the .pag size
of less than 10M without problems.  However, recently, it's grown to about
12M, and expire has taken hours to go through a dozen megs of a 100+M text
file.  That's quite a big performance hit.  It also seems to depend
somewhat on the OS and what else the machine may be doing.

    I ran into this problem earlier, with a smaller text file (obtained by
only taking a partial feed and remembering entries for only a few days)
with my machine's initial configuration of a whopping 16M of RAM, carrying
a Big 8 feed.  I knew there was a problem when it took six hours to
expire.  Adding more RAM made a huge difference, and I didn't have any
crippling problems until just recently, when the number of entries I was
saving had roughly doubled.

    Your big problem is RAM.  I got lucky one day and was able to run the
same files that were taking a long time, with twice the memory, and it
took only four minutes to get through the files and rebuild the database.
But back at 32M, the machine crawled.

    So what can you do?  Add more memory.  You'll see a big performance
boost as your machine needs to hit the disk less (part of the memory will
be used to cache the history text file), but most importantly, you'll be
able to keep the database file in memory which is far more efficient than
consulting the text file for each entry.  Someone else can explain this
better than I can.

    If you can't add more RAM, it sounds like you've hit the point where
your history files are a bit too big, and the only way to regain your
performace will be to reduce the size of these files, which can be done by
reducing the time you keep entries in the history file, although it will
take ten days for your changes to make a real difference, unless you
rebuild the .pag file directly from the smaller text file.  See
makehistory for this.

    It seems like it's common advice to add more RAM.  And it works.  I've
seen a drastic leap from tolerable performance to intolerable performance
brought about by a small increase in the size of the files, and that's
very probably what you're seeing as well.


Barry Bouwsma
Feh, I still want to run a full feed with only 16M of RAM


Technical Details
Message-ID: <Pine.BSF.3.96.971120004132.23536A-100000@coredump.int.tele.dk>
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: <64um85$ee7$1@maya.ece.ufl.edu> <64vgvu$3e2$1@vixen.cso.uiuc.edu>

Show Full Headers
Complete Article Headers
Message-ID: <Pine.BSF.3.96.971120004132.23536A-100000@coredump.int.tele.dk>
Subject: Re: Expire problems...
Date: Thu, 20 Nov 1997 00:00:00 +0000
From: Requests for Further Spamming <abuse@coredump.int.tele.dk>
References: <64um85$ee7$1@maya.ece.ufl.edu> <64vgvu$3e2$1@vixen.cso.uiuc.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
X-Deja-AN: 290848497
Organization: Verbal Abuse Department
Reply-To: ag786@yfn.ysu.edu
Newsgroups: news.software.nntp