🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #48574

Re: INN => INN (Linux) feed probs

#48574
From: Anonymous Meower
Date: Thu, 28 Sep 2000 00:00
72 lines
4695 bytes
On Thu, 28 Sep 19100, bill davidsen wrote:

>   And what has happened to "history write" times in the new version? On
> 
> INND timer:
> Code region                   Time    Pct    Invoked  Min(ms)  Avg(ms) Max(ms)
> history grep          00:05:46.105   0.4%      46319    0.608    7.472  13.697
> history lookup        01:11:45.967   5.0%    3093168    0.898    1.392   5.442
> history sync          00:00:50.672   0.1%     100317    0.147    0.505  18.123
> history write         00:04:42.345   0.3%    1001451    0.211    0.282   0.484
> 
> history grep     00:07:14.383   0.5%      44850     2.775      9.685    27.914
> history lookup   00:09:19.290   0.7%    3339426     0.003      0.167     2.057
> history sync     00:00:10.530   0.0%     105689     0.025      0.100     1.284
> history write    05:00:45.553  21.5%    1055111    11.894     17.103    33.205

Yeah, but...

>   The only thing I do note, the old system, because it has minimal
> memory, is running tagged hash. I assumed that was slower than full size
> hash, but was I wrong?

Tagged hash (or as some of us who don't follow the latest buzzwords
know it as dbz v3) is slower for lookups, but it also has a smaller
filespace footprint for the database file.  Now you see that your
lookups above for the top (older) machine are a bit slower, but you
only have two incoming feeds (note that if you had a single incoming
feed, each successful history write would result in two lookups --
one at IHAVE/CHECK stage, and the second just before committing the
article to storage to make sure duplicates don't slip through).

If this were a world-facing transit box, you'd see a significant
difference, as each apparent hit would require a check of the history
text file to verify that is a real hit (as would false hits), but for
as few feeds (two full) as you have, it's not much of a difference.
And you probably have a cache too of recent hits to avoid most of the
text file accesses.

I agree, something is wrong with the 2.x family history times.  That
is why I'm still running my 1.5 k0debase that I update periodically,
since I simply haven't been able to come near the history performance
out-of-the-box on identical hardware with 2.x, although there seem to
be some improvements to the spool writing that I should figure out
and merge in.

I took a quick sourcek0deZ look and didn't see a difference either.
What I found strange was that `iostat' was showing a constant stream
of reads, not writes, from the history disk, in spite of what the higher
write times would lead me to expect to see, and the disk activity light
seemed to be flashing for every single incoming article.

And for 1.5, I'm doing nothing at all special -- the history files
share a single slow drive with the OS, the rest of /news, and half
of the news spool, and the activity there is minimal.

What are the date timestamps on the text, index, and hash files on
your new machine?  Actually, an `ls -l' along with a `cat history.dir'
would be helpful to see any possible problems.

Note that I haven't made any tests of my wild guesses of what is
hitting my 2.x history with a constant stream of reads -- I've just
chosen to throw a lot more hardware at the 2.x machines and keep them
well-hidden until I get them up to speed with the history performance.

I also seem to notice some difference between a recent snapshot and
one of several months back, but I've not made any serious checks on
that.

As usual, YMMV, IANAL, IANMTU, HTH, HAND, M.


Technical Details
Message-ID: <Pine.BSF.4.21.0009281704310.61669-100000@vax.chrillesen.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: <8qt5ia$9kog$1@newssvr06-en0.news.prodigy.com> <Pine.BSF.4.21.0009271802220.4177-100000@vax.chrillesen.dk> <8qthsu$9kp4$1@newssvr06-en0.news.prodigy.com> <yl66nhidh2.fsf@windlord.stanford.edu> <8qvm3o$7bu4$1@newssvr06-en0.news.prodigy.com>

Show Full Headers
Complete Article Headers
Message-ID: <Pine.BSF.4.21.0009281704310.61669-100000@vax.chrillesen.dk>
Subject: Re: INN => INN (Linux) feed probs
Date: Thu, 28 Sep 2000 00:00:00 +0000
From: Anonymous Meower <meowbot@meow.meow.meow>
References: <8qt5ia$9kog$1@newssvr06-en0.news.prodigy.com> <Pine.BSF.4.21.0009271802220.4177-100000@vax.chrillesen.dk> <8qthsu$9kp4$1@newssvr06-en0.news.prodigy.com> <yl66nhidh2.fsf@windlord.stanford.edu> <8qvm3o$7bu4$1@newssvr06-en0.news.prodigy.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: 675153483
X-Sender: barry@vax.chrillesen.dk
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Complaints-To: Department of Written Abuse <abuse@news.inet.tele.dk>
X-Trace: news.inet.tele.dk 970154528 17489 193.88.12.35 (Thu 2585 September 1993 15:22:08 GMT)
Organization: Tele Danmark Internet Cyberspace Launchpad
Mime-Version: 1.0
NNTP-Posting-Date: Thu 2585 September 1993 15:22:08 GMT
Newsgroups: news.software.nntp