🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #17767

Re: FreeBSD's ccd for striping

#17767
From: Forrest J. Cavalier III
Date: Wed, 14 May 1997 00:00
55 lines
3206 bytes
In article <5lbq4h$emp$1@scanner.worldgate.com>, marcs@znep.com wrote...
>
>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.
>
[snip]
Just my two cents worth....

The QIO routines that are used by nnrpd (and innd, for that matter)
by default read in the article files 8192 bytes at a time.

Forrest Cavalier, Mib Software
Searchable hypertext docs on Usenet, INN, etc.
    http://www.mibsoftware.com/userkt/forprov.htm

And it is a nit-picking point, but it is not *average* article size
that matters, it is the most commonly requested article size: the
"mode", not the "mean."  (I haven't done it but you could possibly
fiddle with the QIO_BUFFER defined in qio.h if you were in
a tweaking/twiddling mood.)


Technical Details
Message-ID: <5lcd9t$i12$2@news1.epix.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
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> <5lbq4h$emp$1@scanner.worldgate.com>

Show Full Headers
Complete Article Headers
Message-ID: <5lcd9t$i12$2@news1.epix.net>
Subject: Re: FreeBSD's ccd for striping
Date: Wed, 14 May 1997 00:00:00 +0000
From: mibsoft@epix.net (Forrest J. Cavalier III)
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> <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
X-Deja-AN: 241481929
Organization: Mib Software
Newsgroups: news.software.nntp