Article View: news.software.nntp
Article #19250Re: Most efficient directory structure for news?
From: Tobias.Hennerich
Date: Mon, 14 Jul 1997 00:00
Date: Mon, 14 Jul 1997 00:00
83 lines
4082 bytes
4082 bytes
Hi,
D. J. Bernstein wrote in <1997Jul1304.21.21.18009@koobera.math.uic.edu> on 1997-07-13 06:21:21 +0200:
> Mark Wedel <mark@stealth.eng.pyramid.com> wrote:
> > Basically, we generate a 32 bit hash code from the message id,
>
> Why not use expire time as the hash?
>
> Have one file for all the articles expiring this hour, one file for all
> the articles expiring next hour, and so on. Every hour, remove the
> appropriate file. (As I recall, Bill Russell proposed this years ago.)
Well, I'm not sure if I ever heard of Bill Russel... 8-)
> 30 days, one directory per day, 24 files per directory. Use the TAI day
> number as the directory name, and the TAI hour number as the filename.
> (Today is day 10055.) Articles outside the 30-day range are rare and can
> be handled separately.
The patches for inn1.5.1, I'm coding the last few weeks, produce
files like this:
bash# ls -l
total 123134
-rw-rw-r-- 1 news 21444 Jul 14 03:40 199707141401
-rw-rw-r-- 1 news 87658 Jul 14 04:10 199707141801
-rw-rw-r-- 1 news 126039 Jul 14 08:40 199707142201
-rw-rw-r-- 1 news 89247 Jul 14 12:10 199707150201
-rw-rw-r-- 1 news 121645 Jul 14 12:10 199707150601
-rw-rw-r-- 1 news 128160 Jul 14 11:23 199707151401
-rw-rw-r-- 1 news 15695 Jul 14 05:20 199707151801
-rw-rw-r-- 1 news 70585 Jul 13 22:00 199707172201
-rw-rw-r-- 1 news 5846 Jul 14 03:03 199707180201
[...]
-rw-rw-r-- 1 news 2503 Jul 13 04:09 199707270201
-rw-rw-r-- 1 news 20409793 Jul 14 11:30 199707272201
-rw-rw-r-- 1 news 9323452 Jul 14 12:17 199707280201
-rw-rw-r-- 1 news 22538099 Jul 14 11:42 199707280601
-rw-rw-r-- 1 news 23483383 Jul 14 12:28 199707281001
-rw-rw-r-- 1 news 10478460 Jul 14 12:23 199707281401
-rw-rw-r-- 1 news 15296832 Jul 14 06:00 199707281801
-rw-rw-r-- 1 news 14189184 Jul 14 09:12 199707282201
-rw-rw-r-- 1 news 3963084 Jul 14 06:51 199707290201
> Store a newsgroup as a single file with basic information followed by a
> series of 16-byte pointers, one pointer per article, showing day number,
> hour number, article position within the article file, article length in
> bytes, article number in the newsgroup, etc. Or use longer pointers and
> store NOV information.
Up to now I'm using the overview-database of inn. Because overchan was
pretty slow, I'm buffering now up to 5000 lines of overview-data in memory
before writing them out to disk.
Performance on a P133 with 4Gig SCSI-disk, unbatching gziped rnews-batches:
localhost connected 50
localhost:50 checkpoint seconds 2 accepted 200 refused 0 rejected 0
localhost:50 checkpoint seconds 3 accepted 400 refused 1 rejected 0
localhost:50 closed seconds 4 accepted 454 refused 7 rejected 0
even better: batching articles to /dev/null (so you can see the speed of
reading articles):
batcher test times user 1.470 system 5.020 elapsed 17.860
batcher test stats batches 513 articles 15139 bytes 33005516
expire needs most of the time for rebuilding the overview-database.
The official announcement for my patches will be in round about
4 weeks, August 8 1997. If you have any questions, please send me
an email.
Tobi
--
MM
<' \__/|
\_ _/
___][___ Tobias.Hennerich@swabsib.s.bawue.de Alles wird gut!
Technical Details
Message-ID:
<5qd1rf$k5k$1@erwars.s.bawue.de>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> <5pq0fa$rpv@stealth.eng.pyramid.com> <1997Jul1304.21.21.18009@koobera.math.uic.edu>Show Full Headers
Complete Article Headers
Message-ID: <5qd1rf$k5k$1@erwars.s.bawue.de> Subject: Re: Most efficient directory structure for news? Date: Mon, 14 Jul 1997 00:00:00 +0000 From: Tobias.Hennerich@swabsib.s.bawue.de References: <5pn3ck$137s$1@node17.cwnet.frontiernet.net> <5pq0fa$rpv@stealth.eng.pyramid.com> <1997Jul1304.21.21.18009@koobera.math.uic.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: 256817318 Organization: T+T Hennerich Entwicklungsinstallation Xcanpos: shelf.02/199707291401!0020771030 Newsgroups: news.software.nntp