🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #17773

Re: FreeBSD's ccd for striping

#17773
From: Marc Slemko
Date: Wed, 14 May 1997 00:00
52 lines
3211 bytes
In <86k9l21v3w.fsf@blah.erols.com> coneill@blah.erols.com writes:

>Marc Slemko <marcs@znep.com> writes:

>> We assume that you have more than one article and more than one
>> directory.  The point is that you don't care about spreading the 
>> IO for _one_ article over multiple drives; in fact, you want the
>> IO for one article to be on one drive.  You care about spreading
>> the IO so that 10 articles are distributed across drives.
>> 
>> As with most disk IO, the bottleneck is seeks.  You want to minimize
>> the seeks.  If you spread one article over two disks, you have
>> around twice the number of seeks.

>However, for 90% of out there, we're doing to do multiple seeks
>for most articles that are actually retrieved, even if they're 
>stored contigously on disk.  The reason for this is that most 
>articles that are read are, on average bigger than the average 
>article size.  (For example, our average article size is ~16k).
>The reason that this is a problem is that most dialup customers 
>out there can only push about 3k/s or so and their TCP window 
>size is usually between 4-8k.  So at the minimum, you're going
>to block on writing to the socket at least twice while writing
>to the socket.  This pretty much guarantees that you're going 
>to have to wait on the end user and the disk is going to go
>on an service other requests, causing you do another seek
>next time the nnrpd wakes back up, probably about 1/2 to 1 second
>later.

But most Unixes will do a readahead and cache it, so a bigger chunk
of the article should still be cached when the client is ready to
take it.  This will not always come into play, but I think it will
bias the results a good bit.

You also need to differentiate between newsreading clients and newsfeeds.

If you model it using a simplistic random fetching of blocks, then
both large and small interleave factors behave in a similar way.
If you add in the fact that some of the IO will be quick sequential
reads of the whole article, the larger interleave factor seems to 
offer the advantage.  

Loose testing in an INN environment seems to support this conclusion,
but it is true that my comment oversimplified, and it is still being
oversimplified.

For example, even if the program did want to read the entire article
at once, there is no guarentee that it will get to do so before
another process competing for the same disk steals it away.

Technical Details
Message-ID: <5lbq4h$emp$1@scanner.worldgate.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
References: <33714AAE.41C67EA6@maximum.net> <5kvndi$61f$1@news.rapidnet.com> <5l0732$8an$1@flea.best.net> <5l9kcf$moa$1@earth.execpc.com> <5la4fp$dbq$1@info.cs.uofs.edu> <5laaf0$hv8$1@scanner.worldgate.com> <86k9l21v3w.fsf@blah.erols.com>

Show Full Headers
Complete Article Headers
Message-ID: <5lbq4h$emp$1@scanner.worldgate.com>
Subject: Re: FreeBSD's ccd for striping
Date: Wed, 14 May 1997 00:00:00 +0000
From: Marc Slemko <marcs@znep.com>
References: <33714AAE.41C67EA6@maximum.net> <5kvndi$61f$1@news.rapidnet.com> <5l0732$8an$1@flea.best.net> <5l9kcf$moa$1@earth.execpc.com> <5la4fp$dbq$1@info.cs.uofs.edu> <5laaf0$hv8$1@scanner.worldgate.com> <86k9l21v3w.fsf@blah.erols.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: 241434584
Organization: WorldGate Inc. http://www.worldgate.com/
Newsgroups: news.software.nntp