Article View: news.software.nntp
Article #47189Re: Still having history problems
From: Russ Allbery
Date: Thu, 29 Jun 2000 00:00
Date: Thu, 29 Jun 2000 00:00
24 lines
1930 bytes
1930 bytes
Ronald Hello <hello@cs.utwente.nl> writes: > Russ Allbery <rra@stanford.edu> writes: >> The cache holds the hash of the message ID (16 bytes) and a boolean, >> which is probably padded by your OS to 4 bytes. So figure 20 bytes per >> message ID, so 20,000,000 bytes for 1,000,000 message IDs, or about >> 20MB. > 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). (The above addressing is why you want the history cache size to be a power of two.) -- Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Technical Details
Message-ID:
<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-mailReferences:
<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>Show Full Headers
Complete Article Headers
Message-ID: <ylwvj8hmv0.fsf@windlord.stanford.edu> Subject: Re: Still having history problems Date: Thu, 29 Jun 2000 00:00:00 +0000 From: Russ Allbery <rra@stanford.edu> 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> 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: 640328436 Content-Type: text/plain; charset=us-ascii Organization: The Eyrie Mime-Version: 1.0 User-Agent: Gnus/5.0802 (Gnus v5.8.2) XEmacs/21.1 (Biscayne) Newsgroups: news.software.nntp