Article View: news.software.nntp
Article #19124Re: Most efficient directory structure for news?
From: Mark Wedel
Date: Thu, 10 Jul 1997 00:00
Date: Thu, 10 Jul 1997 00:00
33 lines
1861 bytes
1861 bytes
In article <5pucvk$f8f$1@flea.best.net>, Matt Dillon <dillon@flea.best.net> wrote: > > It's not quite that bad, since a news system only retains the last 16 > days worth of message-id's, but 32 bits is definitely not enough. > > So, given (16 days x 1,000,000 message-id's/day) = 16M message-id's > and 2^32 slots (hash codes) to fit them in, how many collisions will > there be ? > As a followup, since I caused this general discussion. Currently, in addition to storing with the hash code, I also tack on the newsgroup and article number in that group to the file name. So the file might really be a0/12/45ff.news.software.nntp.35123 So for me this avoids the problem of possible collisions. It also made it a bit easier on debugging and determining usage on the the spool (I wrote a script that would wander through, find space the file is using, and it can determine what group it belongs to from file name, so I can then get a summary of what groups/heiarchies are using what amount of space.) But this increases filename length, which obviously hurts performance some. -- -- Mark Wedel mark@pyramid.com
Technical Details
Message-ID:
<5q28if$gvp@stealth.eng.pyramid.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:
<5pn3ck$137s$1@node17.cwnet.frontiernet.net> <5pt6cs$l6l$1@news1.epix.net> <000033C29F8E.NO_UCE@mauve.demon.co.uk> <5pucvk$f8f$1@flea.best.net>Show Full Headers
Complete Article Headers
Message-ID: <5q28if$gvp@stealth.eng.pyramid.com> Subject: Re: Most efficient directory structure for news? Date: Thu, 10 Jul 1997 00:00:00 +0000 From: mark@stealth.eng.pyramid.com (Mark Wedel) References: <5pn3ck$137s$1@node17.cwnet.frontiernet.net> <5pt6cs$l6l$1@news1.epix.net> <000033C29F8E.NO_UCE@mauve.demon.co.uk> <5pucvk$f8f$1@flea.best.net> 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: 255921753 Organization: Pyramid Technology Corporation Newsgroups: news.software.nntp