🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
16 messages
16 total messages Started by Dan Foster Sat, 05 Jul 1997 00:00
Most efficient directory structure for news?
#19030
Author: Dan Foster
Date: Sat, 05 Jul 1997 00:00
26 lines
1548 bytes
If you had the chance to dump the one-article-per-file and 
one-group-per-directory structure, and could use any type of structure...
what would the most efficient one be?

Diablo has an interesting approach - it certainly looks reasonable.

Not to trample on any feelings here :) - I'm sure research has been done
in this area by folks like filesystem gurus and the like... are there any
other, better ones?

I still haven't had a chance to look at how CNFS does it, but will be doing
so very soon.

Just mulling things over because it seems that while a simple hash (like
../56/78 for <blah>/12345678 will help in the short term, I want to do it
right for a long term approach, and have a lot of flexibility as to how
I want to do it, exactly.

On another topic - what kind of locality of reference does caching news
history entries or path to articles have?

-Dan Foster
Internet: dsf@frontiernet.net

Re: Most efficient directory structure for news?
#19034
Author: Matt Dillon
Date: Sun, 06 Jul 1997 00:00
57 lines
3226 bytes
:In article <5pn3ck$137s$1@node17.cwnet.frontiernet.net>,
:Dan Foster <dsf@node6.frontiernet.net> wrote:
:>If you had the chance to dump the one-article-per-file and 
:>one-group-per-directory structure, and could use any type of structure...
:>what would the most efficient one be?
:>
:>Diablo has an interesting approach - it certainly looks reasonable.
:>
:>Not to trample on any feelings here :) - I'm sure research has been done
:>in this area by folks like filesystem gurus and the like... are there any
:>other, better ones?

    Basically there are two main methodologies:

    (a) multiple articles per file, then a time based expire

    (b) 'one big partition' which is written sequentially an then rolls
	over.

    There is a serious problem with (b) in that you actually have to read/write
    a cooked partition rather then simulate it with 'one big file'.  Otherwise
    you run afoul of internal filesytem serialization locks in the kernel.

    Diablo uses approach (a).  Basically Diablo creates one file per incoming
    connection and writes all articles that come over that connection to
    that one file.  There is very little kernel contention and no explicit
    locking required to allocate space because only one process is writing
    any given file.  The kernel still allocates space for the file
    internally from the filesystem bitmap, of course, but it usually isn't 
    a bottleneck.  As long as the software does not create too many files 
    (and Diablo doesn't), the namei cache will approach a 100% cache hit ratio.

    The outgoing dnewslink feeds cache open descriptors to avoid 'skipping
    around' queue files.  It seems to work quite well.

:>On another topic - what kind of locality of reference does caching news
:>history entries or path to articles have?
:>
:>-Dan Foster
:>Internet: dsf@frontiernet.net

    One generally gets pretty good locality of reference, but a lot of
    people make the mistake of trying to implement large software caches 
    that duplicate the caching already done by the kernel.  For example,
    if you lookup a history file entry with lseek()/read(), the difference
    between caching the result and doing another lookup of the *same*
    message-id with lseek()/read() will be minimal.  Still, a small
    message-id cache will reduce internal filesystem serialization locks
    in the kernel enough to make it worth it.  I don't bother in Diablo
    because I usually need a 'guarenteed correct' result from history
    file lookups to deal with multi-feed collisions.

					    -Matt


Re: Most efficient directory structure for news?
#19035
Author: Mark Wedel
Date: Sun, 06 Jul 1997 00:00
75 lines
4078 bytes
In article <5pn3ck$137s$1@node17.cwnet.frontiernet.net>,
Dan Foster <dsf@node6.frontiernet.net> wrote:
>If you had the chance to dump the one-article-per-file and 
>one-group-per-directory structure, and could use any type of structure...
>what would the most efficient one be?
>
>
>Just mulling things over because it seems that while a simple hash (like
>../56/78 for <blah>/12345678 will help in the short term, I want to do it
>right for a long term approach, and have a lot of flexibility as to how
>I want to do it, exactly.

 I actually put an overall hash scheme in for news storage.  Basically,
we generate a 32 bit hash code from the message id, and store it based
on that.  the 32 bit is actually overkill, so I am only use 16 of those
bits for the directorys (xx/xx/article) storage.  This gives 65536
directories for all the news.

 I based the number of directories on the number of articles I generally
store - on average, there should be less than 100 articles per directory.
And I certainly don't have the problem with control or misc.jobs having
a huge number of files in them.

 For storage, it works pretty good (I have 23 2 GB drives individual
mounted, and usage on all of them are about equal.)  traffic on all the 
drives is also pretty good.

 To actually run in this configuration also required some other changes
(expire also needs to spit out the hashed paths in addition to just the
normal articles for expireover).  nnrpd also needs to rely on the overview
data to find the actual article path.

 A side benefit of this storage method is no linking need to be done
for crosspost - the article is stored once, and since the article has
the same message id for all crossposted groups, it resolves properly.

 Now for the downside:

 Recovery of the files is much more difficult - since the articles are not
stored in any group basis, it is not possible to regen a history or overview
data from the article spool (history regen I don't consider a big thing,
since it would probably tape so long, it would be worth restoring it
from backup tape and just get duplicate news for a day or so.)

 renumber also doesn't work as expected.  I actually just renumber the
low values, and I get those from looking at the history file after an
expire.  That seems to work OK.  It would be possible in this configuration
for several articles to have the same message number - I am not sure how
that is handled, but that should also only be a problem in a system crash.

 If article doesn't make it into the overview database, it will not be
shown as available.  I have actually put debugging messages into nnrpd
when that happens, and it is pretty uncommon.

 The other disadvantage in that caching by the OS is pretty poor - since
articles are not going to be written to the same directories, that hurt
writes time (but if you are getting multiple unsorted feeds, you may
get the same result.)  But also when people read news, there is no
locality to specific directories - things would hop here and there.

 In terms of write performance, I am thinking of making some improvements -
have innd write the files into a standard directory (so the OS will always
have the directory info in memory) and write some helper process that then
moves the files out of that directory to where the belong (could probably
be done with some entry in the newsfeeds line..)


 
-- 

-- Mark Wedel
mark@pyramid.com

Re: Most efficient directory structure for news?
#19044
Author: James Youngman
Date: Mon, 07 Jul 1997 00:00
17 lines
1186 bytes
dsf@node6.frontiernet.net (Dan Foster) writes:

> 
> If you had the chance to dump the one-article-per-file and 
> one-group-per-directory structure, and could use any type of structure...
> what would the most efficient one be?
> 
> Diablo has an interesting approach - it certainly looks reasonable.
> 
> Not to trample on any feelings here :) - I'm sure research has been done
> in this area by folks like filesystem gurus and the like... are there any
> other, better ones?

Take a look at http://idiom.com/~beverly/reiserfs.html.

Re: Most efficient directory structure for news?
#19060
Author: Peter Preuss
Date: Mon, 07 Jul 1997 00:00
30 lines
1443 bytes


Mike Horwath <drechsau@yuck.net> wrote in article
<5poed1$o06$1@darla.visi.com>...
> Matt Dillon <dillon@flea.best.net> wrote:

> 
> :     (a) multiple articles per file, then a time based expire
> 
> :     (b) 'one big partition' which is written sequentially an then rolls
> : 	over.
> 
> Then there is CNFS, option:
> 
> 	(c) multiple 2GB files accross many different disks and you
> 	    decide where to put news for a FIFO effect.
> 
> 	(d) or you use an expire-like system on the same 2GB files.
> 
> CNFS is also getting reader support, so that sounds quite pleasing :)

Can you (or anybody else ;) provide some pointers and/or info regarding the
CNFS project? All I was able to pick up so far is that it seems to stand
for 
"cyclical news filesystem"...

Peter.

Re: Most efficient directory structure for news?
#19070
Author: Chrisy Luke
Date: Tue, 08 Jul 1997 00:00
24 lines
1637 bytes
On 7 Jul 1997 00:47:09 GMT, the Killer Plum Squad forced "Peter
Preuss" <peter@sirius.com> to write:

>> CNFS is also getting reader support, so that sounds quite pleasing :)

As is/has Diablo. :-) I've a working skeleton that makes extensive use
of mmap() and I know Matt's working on his own solution. I expect to
have unleashed my developments unto my user base within a week or two
(the rebels are screaming!) and will make the code available around
that time.

It certainly faster than old INN... I've run in to problems with large
numbers of open mmap()'s though. ;-)

Regards,
Chris.
-- 
== chrisy@easynet.net, chrisy@flirble.org, chrisy@etsiig.uniovi.es
== Newsmaster and Senior Systems Developer for Easynet Group Plc.
== I recently saw a Flirble, in the bushes on Regents Park. It
== frowned at me and said "If it were Wimbledon you wouldn't stare!"

Re: Most efficient directory structure for news?
#19077
Author: Forrest J. Cavalier III
Date: Tue, 08 Jul 1997 00:00
54 lines
2825 bytes
In article <5pq0fa$rpv@stealth.eng.pyramid.com>, mark@stealth.eng.pyramid.com 
wrote...
>
[snip]
> I actually put an overall hash scheme in for news storage.  Basically,
>we generate a 32 bit hash code from the message id, and store it based
>on that.  the 32 bit is actually overkill, so I am only use 16 of those
>bits for the directorys (xx/xx/article) storage.  This gives 65536
>directories for all the news.
>
> I based the number of directories on the number of articles I generally
>store - on average, there should be less than 100 articles per directory.
>And I certainly don't have the problem with control or misc.jobs having
>a huge number of files in them.
>
[snip]
> Now for the downside:
>
> Recovery of the files is much more difficult - since the articles are not
>stored in any group basis, it is not possible to regen a history or overview
>data from the article spool (history regen I don't consider a big thing,
>since it would probably tape so long, it would be worth restoring it
>from backup tape and just get duplicate news for a day or so.)
>
> renumber also doesn't work as expected.  I actually just renumber the
>low values, and I get those from looking at the history file after an
>expire.  That seems to work OK.  It would be possible in this configuration
>for several articles to have the same message number - I am not sure how
>that is handled, but that should also only be a problem in a system crash.
>

What about the Xref line in the articles?  Or aren't you using it?

Another question: what do your history lines look like?  You say you
can generate lomarks from history entries, implying there is an article
number somewhere there.  But the article itself is stored as a hashed
message ID.

The probability of collision is non-zero.  (1 in 2400 if you assume
32 bit hash, 600K articles x 3 day retention.) This could mean that a
message from alt.binaries.pictures.erotica happens to get stored
over top of something from, say, alt.kids-talk.  Or do you handle the
case by not writing over top of existing articles.

Forrest Cavalier, Mib Software, INN customization and consulting

>-- 
>
>-- Mark Wedel
>mark@pyramid.com


Re: Most efficient directory structure for news?
#19085
Author: Matt Dillon
Date: Tue, 08 Jul 1997 00:00
57 lines
2731 bytes
:In article <000033C29F8E.NO_UCE@mauve.demon.co.uk>,
:Ian Stirling  <000033C29F8E.NO_UCE@mauve.demon.co.uk> wrote:
:....
:>
:> ....
:>: The probability of collision is non-zero.  (1 in 2400 if you assume
:>: 32 bit hash, 600K articles x 3 day retention.) This could mean that a
:>600K*3=21 bits (I think)
:>It's not 1 in 2400, it's a dead cert, due to birthday paradox.
:>
:>Basically, in any group of size sqrt(x) selected from x possible
:>states, you have a probability of .5 that there will be two x's of
:>the same value. In classic form, it's more likely than not you will
:>get 2 people with the same birthday in a group of 20 or over.
:>I did some sums, to generate pretty unique hashes (50 billion articles/day,
:>for 1000 years has 1 in a billion probability of any article clashing)
:>you need around 128 bits.

    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 ?

    Approximate chance of collision:

	message-id #1		0/2^32
	message-id #2		1/2^32
	message-id #3		2/2^32
		.
		.
		.
	message-id #16M		16M/2^32

    Add'm together:

	(0 + 1 + 2 .. + 16M)      (16M/2)*16M + 16M/2
	--------------------   =  ------------------- = 29802
	       2^32                       2^32

    So, with a 32 bit hash there will be approximately 29802 collisions
    given a history retention of 16 million message-id's.

    This isn't perfect, because it does not take into account prior
    collisions in calculating later potentials, but it's close enough.  With
    a 64 bit hash, chances are no articles will collide.  Same with a 62 bit
    hash...  which is what Diablo uses.

    Now, I am not the best in the world when it comes to stats, so I
    might be wrong, but I think this is pretty close.

						-Matt


Re: Most efficient directory structure for news?
#19090
Author: Ian Stirling
Date: Tue, 08 Jul 1997 00:00
49 lines
3123 bytes
Forrest J. Cavalier III <mibsoft@epix.net> wrote:
: In article <5pq0fa$rpv@stealth.eng.pyramid.com>, mark@stealth.eng.pyramid.com 
: wrote...
: >
: [snip]
: > I actually put an overall hash scheme in for news storage.  Basically,
: >we generate a 32 bit hash code from the message id, and store it based
: >on that.  the 32 bit is actually overkill, so I am only use 16 of those
: >bits for the directorys (xx/xx/article) storage.  This gives 65536
: >directories for all the news.
<snip>

: The probability of collision is non-zero.  (1 in 2400 if you assume
: 32 bit hash, 600K articles x 3 day retention.) This could mean that a
600K*3=21 bits (I think)
It's not 1 in 2400, it's a dead cert, due to birthday paradox.

Basically, in any group of size sqrt(x) selected from x possible
states, you have a probability of .5 that there will be two x's of
the same value. In classic form, it's more likely than not you will
get 2 people with the same birthday in a group of 20 or over.
I did some sums, to generate pretty unique hashes (50 billion articles/day,
for 1000 years has 1 in a billion probability of any article clashing)
you need around 128 bits.

: message from alt.binaries.pictures.erotica happens to get stored
: over top of something from, say, alt.kids-talk.  Or do you handle the
: case by not writing over top of existing articles.

Some case like if you are about to write over an existing article, mark
it in a seperate database.

: Forrest Cavalier, Mib Software, INN customization and consulting

: >-- 
: >
: >-- Mark Wedel
: >mark@pyramid.com


-- 
Ian Stirling.   Designing a linux PDA, see  http://www.mauve.demon.co.uk/
-----******* If replying by email, check notices in header *******-------
Prosperity and ruin issue from the power of the tongue.
Therefore, guard yourself against thoughtless speech.


Re: Most efficient directory structure for news?
#19105
Author: Forrest J. Cavalier III
Date: Wed, 09 Jul 1997 00:00
64 lines
2703 bytes
(posted and mailed)

In article <5pucvk$f8f$1@flea.best.net>, dillon@flea.best.net wrote...
>
>    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 ?
>
>    Approximate chance of collision:
>
>        message-id #1           0/2^32
>        message-id #2           1/2^32
>        message-id #3           2/2^32
>                .
>                .
>                .
>        message-id #16M         16M/2^32

----Probability should be (16M-1)/2^32

My nose for software bugs had to point out the "fence-post" error.

Not that it changes the result much.  :-)

My 1 in 2400 analysis was per message ID.

Using the 16M figures, my back of the envelope calculation
goes as so:

Density of filled hash space:
     16M
     ---- = probability a single insertion causes a collision.
     2^32

Or 1 in 268.  (The summation resulted in 29802/16M or 1 in 807,
lower by nature of initial insertions into "cleaner" hash space.)
But on day 17, you don't have a clean hash space, so you're stuck
with 1 in 268.


Anyway, the original poster wrote e-mail clarifying the
implentation.   16 bits are used to generate the directory name.
The actual file name is based on the group and article number,
not just the 16 bits left over.  This makes the name unique,
completely removing the collision problem.

But this discussion on collision rates is educational for other
applications, like history lookups, caches, etc.


BTW, with a 62 bit cache, 16M messages in hash space, there is
a 1 in 1.1E12 chance of collision.  At 600K articles per day,
that is equivalent to once every million days.

All of these assume uniform densities on the hash function, which
is not necessarily a good assumption.  Matt, have you ever seen/heard
of a collision in practice using 62 bits?

Forrest Cavalier, Mib Software, INN customization and consulting.



Re: Most efficient directory structure for news?
#19121
Author: Paul Martin
Date: Thu, 10 Jul 1997 00:00
48 lines
2033 bytes
In article <000033C29F8E.NO_UCE@mauve.demon.co.uk>,
	Ian Stirling <000033C29F8E.NO_UCE@mauve.demon.co.uk> writes:
> It's not 1 in 2400, it's a dead cert, due to birthday paradox.
> 
> Basically, in any group of size sqrt(x) selected from x possible
> states, you have a probability of .5 that there will be two x's of
> the same value. In classic form, it's more likely than not you will
> get 2 people with the same birthday in a group of 20 or over.

It's not exactly sqrt(x), but slightly larger.

You have n letters, with an alphabet of size a

The number of possible letter combinations is a^n.

The number of permutations of with no common letters is a!/(a-n)!.

The probability of there being no common letters in a selection of
letters is

   a!
--------
 n
a (a-n)!

The probability of there being at least two letters the same is one minus
the last formula.

For the Birthday paradox (a=365), the probabilities are:

People       Percentage
20             41.1%
21             44.4%
22             47.6%
23             50.7%

In bc, the formula is 1-f(a)/(f(a-n)*a^n)
using the factorial definition in the bc man pages. 

That said, the factorials of large powers of 2 are fiddly to work with.
I'm sure that someone's going to tell me that the limit as the alphabet
tends to infinity is sqrt(a) anyway. :)

-- 
Paul Martin <pm@zetnet.net>

Re: Most efficient directory structure for news?
#19124
Author: Mark Wedel
Date: Thu, 10 Jul 1997 00:00
33 lines
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

Re: Most efficient directory structure for news?
#19237
Author: Matt Dillon
Date: Sun, 13 Jul 1997 00:00
33 lines
2186 bytes
:In article <1997Jul1304.21.21.18009@koobera.math.uic.edu>,
:D. J. Bernstein <djb@koobera.math.uic.edu> wrote:
:>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.)

    I toyed with this idea in Diablo, but eventually canned it in favor
    of simply creating a new directory every 10 minutes and creating one
    file per incoming connection.  The problem with storing-by-expire is
    that it creates a locking bottleneck when multiple processes are trying
    to write out articles, because the vast majority of groups will be 
    categorized with one of only a few expirations.

    I'd still like to come up with a solution, because right now my 
    expiration stuff is mostly useless... it's easier for expire to simply
    rm -rf the oldest directories until the free-space target is reached,
    which is strictly FIFO.  

    What I would REALLY like to do is be able to free-up space within the 
    multi-article storage files in a piecemeal fashion by creating holes.
    Most file systems support holes through seek/write, but do not appear
    to have commands to create holes where there was previously data.  Grump.

						-Matt


Re: Most efficient directory structure for news?
#19240
Author: D. J. Bernstein
Date: Sun, 13 Jul 1997 00:00
37 lines
2306 bytes
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.)

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.

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. Periodically check for large newsgroups and
rewrite them to eliminate pointers to expired articles.

The newsgroup filenames can be compressed versions of the group names,
hashed into a bunch of directories for fast access.

To support lookups by Message-ID, keep a big hash table of pointers.

The database has to be cleaned and rebuilt after a crash. You could keep
a single crashproof log of article MD5 checksums and pointers, and use
that to recover all non-garbage articles. These days, however, I suspect
that recovering the entire database from other sites is more efficient
overall than keeping any sort of crashproof database on a local disk.

---Dan
Let your users manage their own mailing lists. http://pobox.com/~djb/qmail.html

Re: Most efficient directory structure for news?
#19241
Author: D. J. Bernstein
Date: Sun, 13 Jul 1997 00:00
29 lines
1909 bytes
Matt Dillon <dillon@flea.best.net> wrote:
> The problem with storing-by-expire is
> that it creates a locking bottleneck when multiple processes are trying
> to write out articles, because the vast majority of groups will be 
> categorized with one of only a few expirations.

To reduce the time spent with the file locked, keep an in-memory cache
containing the new article (up to some length limit), and write it in
one burst when the article is complete.

To reduce the number of locking events, keep 50 articles in the
in-memory cache, and write all 50 in one burst when the cache fills up.

Of course, the alternative to filesystem locking is to pass new data
through a single process. This also makes it convenient to store some
data in memory. This may be worthwhile for newsgroup pointers even if
not for article data.

> What I would REALLY like to do is be able to free-up space within the 
> multi-article storage files in a piecemeal fashion by creating holes.

With files stored by expiration date, this is unnecessary. (It's not
worth the time to free up disk space for cancelled articles.)

---Dan
Let your users manage their own mailing lists. http://pobox.com/~djb/qmail.html

Re: Most efficient directory structure for news?
#19250
Author: Tobias.Hennerich
Date: Mon, 14 Jul 1997 00:00
83 lines
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!

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