🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #41281

Re: NoCeM & INN2.3

#41281
From: bostic
Date: Thu, 04 Nov 1999 00:00
46 lines
2526 bytes
In article <yld7tq6hvh.fsf@windlord.stanford.edu>,
  Russ Allbery <rra@stanford.edu> wrote:
>
> Currently, the hash keys are the first six bytes of an MD5 hash of the
> message ID, so for different articles the result is pretty much evenly
> distributed.

Of course, that destroys the locality of reference that you
would normally see from the key.

> Of course, one could take a step back and use a different
> hash, but the hash probably has to be cryptographically strong unless
we
> store the entire message ID.

How big is the message ID?

> As previously mentioned, INN
> already puts its own cache in front of the underlying database; if db
sits
> in that space, what it'll see is roughly 40% or so of the queries are
for
> articles not in the history file at all, and the remaining 60% won't
have
> much locality at all.

It would be worthwhile considering that you might not need the
cache in front of the database, if the database works well.

> If you want to take the cache part as well, then the mix is different;
> basically, I get the same message IDs offered to me from about 20 to
30
> peers within five to ten seconds of each other.

But this is right for a Btree -- the first connection will fault
in the pages if they're not already resident, and the rest of the
connections will find them already in memory.  That's exactly what
you want, and offers you almost perfect locality.

--keith


Sent via Deja.com http://www.deja.com/
Before you buy.

Technical Details
Message-ID: <7vs3rh$oca$1@nnrp1.deja.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: <3819A774.9C57FDCA@boerde.de> <7vnkfo$cpt@bigred.inka.de> <ylg0yomrmj.fsf@windlord.stanford.edu> <7vpog2$2qm$1@nnrp1.deja.com> <7vq0aa$93v$1@newssvr02.news.prodigy.com> <7vq7rc$ed2$1@nnrp1.deja.com> <yln1sv8a4c.fsf@windlord.stanford.edu> <7vqu45$uq3$1@nnrp1.deja.com> <yld7tq6hvh.fsf@windlord.stanford.edu>

Show Full Headers
Complete Article Headers
Message-ID: <7vs3rh$oca$1@nnrp1.deja.com>
Subject: Re: NoCeM & INN2.3
Date: Thu, 04 Nov 1999 00:00:00 +0000
From: bostic@bostic.com
References: <3819A774.9C57FDCA@boerde.de> <7vnkfo$cpt@bigred.inka.de> <ylg0yomrmj.fsf@windlord.stanford.edu> <7vpog2$2qm$1@nnrp1.deja.com> <7vq0aa$93v$1@newssvr02.news.prodigy.com> <7vq7rc$ed2$1@nnrp1.deja.com> <yln1sv8a4c.fsf@windlord.stanford.edu> <7vqu45$uq3$1@nnrp1.deja.com> <yld7tq6hvh.fsf@windlord.stanford.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: 544353593
X-Http-Proxy: 1.0 x34.deja.com:80 (Squid/1.1.22) for client 199.103.241.218
Organization: Deja.com - Before you buy.
X-Article-Creation-Date: Thu Nov 04 14:05:40 1999 GMT
X-MyDeja-Info: XMYDJUIDbostic
Newsgroups: news.software.nntp
X-Http-User-Agent: Mozilla/4.04 [en] (X11; I; BSD/OS 4.0 i386)