🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
1 messages
1 total messages Started by Charlie Toor Sat, 30 Dec 2000 19:55
History file overflows...
#49601
Author: Charlie Toor
Date: Sat, 30 Dec 2000 19:55
31 lines
2752 bytes
Howdy!  'Mornin'!  'Evenin'!  G'Day!  'Sup!  Werd!

I'm noticing history hash table overflows with INN's MD5 history
mechanism at message ID counts somewhat less than the tables were
built for.  It almost seems that they are happening earlier, as
one gets an increasing number of entries in the text file.

For example, I've built a database with an expected maximum size
of 15 million entries.  However, the hash files overflow at some
point closer to 14 million entries, which adds both a bit of a
time penalty for accesses as well as a disk space penalty.

Has anyone else looked into this?  I don't know if a better solution
would be to rewire the dbz k0de with a slightly larger multiplier,
so that instead of building for today's 15 million entries, I'd be
building a table of a size that today I'd build for, say, 16 million
entries, or if it would be better to tweak the threshhold as which
the dbz k0de gives up and overflows the existing table.

I'm also wondering if I should rewrite the expiry k0de so that if
the effective result would be to shrink the new hash files from
the size of the existing ones (when a full cycle is reached of
the history.dir ID count history, not based on the possibly
overflowed on-disk files), the hash tables remain the same size,
allowing one to pre-specify a larger ID count to prevent overflows
or to match expected growth over more than a week, without undoing
this supposedly wise size estimate.  Obviously, only suitable for
a site that keeps close watch on history counts and sizes.

Thoughts?  Comments?  Insults?  Cheers!
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads