🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #17431

Re: Inn Performance Questions...

#17431
From: Jerry Aguirre
Date: Thu, 01 May 1997 00:00
42 lines
2706 bytes
In article <5kadtn$e6b$1@news.theriver.com>,
Marcus Needham <marcus@theriver.com> wrote:
>In article <5kabnj$hn8@smash.gatech.edu>, ManChul Park <mpark@hurl.ns.gatech.edu> wrote:
>>I was wondering if there is any way to improve on the history lookup time.
>>Since, it is being invoked so many times, if I improve on it a little
>>it will make a significant difference.
>
>I have observed that reducing the /remember/ value in expire to keep
>the history database smaller helps, but I am not sure how low one can
>take this down (on a shared feeder/reader machine).  man expire.ctl
>indicates that history entries are not expired while the article itself
>remains on the spool, but from a practical standpoint this is not
>helpful.

The /remember/ value is related to the "cutoff" value.  Make the cutoff
too small and slowly propigated articles will be dropped as too old.

Make the /remember/ value too large and your history file gets bigger
using disk space and reducing performance.  As the history file crosses each
power of 2 in size the performance takes a hit.

Make the /remember/ value less than the cutoff value and you introduce
the risk of geting duplicates.  If an article is expired, removed from
the history file, and then you get a duplicate copy from a slow (or
misconfigured) feed then your system will gladly accept it.

If the cutoff value is >= to the /remember/ value then articles that
have been removed from the history file will be "too old".  Thus no
window for duplicates.  If you don't think that late duplicates can
happen then would you be interested in buying a bridge? :-)

It also helps to occasionally rebuild your DBZ.  Not the entire history!
Just the history.pag file.  Expire does not recalculate the appropriate
tag size but makehistory will.  The man page for makehistory has the
proceedure for rebuilding the DBZ.  It typically takes 10 minutes or so.
I have it done in rc.news on every news restart.  Without the correct
tag size there are extra reads of the history.txt file.

Having enough RAM to hold the history file will also help.

Technical Details
Message-ID: <5kapv3$a69$1@fes.whowhere.com>
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: <5kabnj$hn8@smash.gatech.edu> <5kadtn$e6b$1@news.theriver.com>

Show Full Headers
Complete Article Headers
Message-ID: <5kapv3$a69$1@fes.whowhere.com>
Subject: Re: Inn Performance Questions...
Date: Thu, 01 May 1997 00:00:00 +0000
From: jerry@rigel.whowhere.com (Jerry Aguirre)
References: <5kabnj$hn8@smash.gatech.edu> <5kadtn$e6b$1@news.theriver.com>
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: 238715929
Organization: WhoWhere?; Mt. View, CA USA
Newsgroups: news.software.nntp