Article View: news.software.nntp
Article #12766Re: History DB Performance
From: James Brister
Date: Thu, 28 Nov 1996 00:00
Date: Thu, 28 Nov 1996 00:00
28 lines
1981 bytes
1981 bytes
rgs@vigra.com (Rusty Sanders) writes: > Ummm... I hate to be disagreeable, but I don't believe innd does anything > with the history file other than to concatenate new entries to the end of > it. From what I understand of it all (please! anyone with a real clue(tm) > please chime in) 100% of the history information is present in the > history.pag file. The INND_DBZINCORE flag says to keep the history.pag > file in core, which means that all history lookups can be done without > disk accesses (other than swap). Ok. I'll chime in..... The history.pag file is a series of hash tables of indexes into the history text file. The indexes are looked up by hashing the message-id. Each index has some number of its upper bits reserved (the `tag' bits) for comparing against a portion of the hashed value. If the tags bits dont match the hash value, then the match failed and the next index in the same hash-table bucket can be checked. If the tags do match, then the entire message id in the history text file must be checked (because multiple message-ids can hash to the same value). If the history file gets big enough then there is no space left for tag bits and every lookup has to go to the text file to verify the message-id. James -- James Brister brister@vix.com Internet Software Consortium http://www.isc.org/isc inn@isc.org
Technical Details
Message-ID:
<yy3sp5ucy18.fsf@velo.pp.vix.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-mailReferences:
<56turt$5vb$1@newsfeed.dreamscape.com>Show Full Headers
Complete Article Headers
Message-ID: <yy3sp5ucy18.fsf@velo.pp.vix.com> Subject: Re: History DB Performance Date: Thu, 28 Nov 1996 00:00:00 +0000 From: James Brister <brister@vix.com> References: <56turt$5vb$1@newsfeed.dreamscape.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: 201217455 Organization: Internet Software Consortium Cc: rgs@vigra.com Newsgroups: news.software.nntp