🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #47177

Re: Still having history problems

#47177
From: Ronald Hello
Date: Thu, 29 Jun 2000 00:00
38 lines
2615 bytes
In article <ylwvj8hmv0.fsf@windlord.stanford.edu>,
	Russ Allbery <rra@stanford.edu> writes:
> Ronald Hello <hello@cs.utwente.nl> writes:
> 
>> What's the quality of the cache expiration mechanism?
> 
> It's basically just a straight hash table, where any collision kicks the
> previous entry out.  So it pulls the first X bytes off the front of the
> message ID hash, where X is sufficient to address the entire history
> cache, and stores the message ID hash in that location in the cache.  The
> entire cache is flushed every night when the history file is reloaded
> after expire (or at least that's what it looks like to me).

So you'd expect cache misses to be high in the first few hours after
expire and to drop during the day ... Feeds with backlogs or with
problems keeping up (both offering you articles far too late)
seriously damage cache performance. And the cache has no need for
more entries then some 1.25 to 1.5 times a daily feed (just guessing,
but hash distributions based on this mechanism can't be all bad).
Right?

Apart from some memory consumption, no negative effect are to be
expected from a oversized cahce-size. Do I understand that right?

> (The above addressing is why you want the history cache size to be a power
> of two.)

At last a reason for that ;-)

Ronald.

-- 
// Ronald Hello  (newsadmin@cs.utwente.nl)
// University of Twente
// Department of Computer Science
// The Netherlands

Technical Details
Message-ID: <8jf57k$882$2@ares.cs.utwente.nl>
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: <8jcp64$96q$1@ares.cs.utwente.nl> <yl66qts4s9.fsf@windlord.stanford.edu> <8jer9a$4b6$1@ares.cs.utwente.nl> <ylem5hj7jj.fsf@windlord.stanford.edu> <8jeu9g$65v$1@ares.cs.utwente.nl> <ylr99hhqyq.fsf@windlord.stanford.edu> <8jf08h$71p$1@ares.cs.utwente.nl> <yl8zvoj29m.fsf@windlord.stanford.edu> <8jf3g2$882$1@ares.cs.utwente.nl> <ylwvj8hmv0.fsf@windlord.stanford.edu>

Show Full Headers
Complete Article Headers
Message-ID: <8jf57k$882$2@ares.cs.utwente.nl>
Subject: Re: Still having history problems
Date: Thu, 29 Jun 2000 00:00:00 +0000
From: hello@cs.utwente.nl (Ronald Hello)
References: <8jcp64$96q$1@ares.cs.utwente.nl> <yl66qts4s9.fsf@windlord.stanford.edu> <8jer9a$4b6$1@ares.cs.utwente.nl> <ylem5hj7jj.fsf@windlord.stanford.edu> <8jeu9g$65v$1@ares.cs.utwente.nl> <ylr99hhqyq.fsf@windlord.stanford.edu> <8jf08h$71p$1@ares.cs.utwente.nl> <yl8zvoj29m.fsf@windlord.stanford.edu> <8jf3g2$882$1@ares.cs.utwente.nl> <ylwvj8hmv0.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: 640331765
Distribution: world
Content-Type: text/plain; charset=us-ascii
X-Complaints-To: abuse@cs.utwente.nl
X-Trace: ares.cs.utwente.nl 962271284 8450 130.89.10.135 (29 Jun 2000 09:34:44 GMT)
Organization: University of Twente, Dept. of Computer Science
Mime-Version: 1.0
NNTP-Posting-Date: 29 Jun 2000 09:34:44 GMT
Newsgroups: news.software.nntp