🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #19243

Re: Diablo Q

#19243
From: Jeff Garzik
Date: Sun, 13 Jul 1997 00:00
28 lines
1799 bytes
(copy cc'd to author)

Avi Freedman wrote:
> Hmm.  I figure that it doesn't matter.  With 20 or 30 (or only 5 or as
> many as 200) processes receiving news, only one stream of data can get
> to the disk at once anyway - and most of the wait is on the network,
> not the disk side.


That's presuming you open and use every file with the O_SYNC flag. 
Otherwise, bunches of processes will write to the buffer cache at
(virtually) the same time, only to have update or a similar tool gather
all the writes together and sync(2) the files onto disk at a later
time.  That whole delayed write thing.  :)

Diablo takes advantage of this fairly well.  New history entries are
written to the end of the file, which are efficiently grouped together
so that instead of a lot of tiny writes (Diablo's history rec size is
around 28 bytes I think), fewer, larger blocks are flushed onto disk at
a later time.  Article writes aren't as efficient (each process appends
to its own file), but Unix delayed writes optimize this too.
-- 
Jeff Garzik					   Quality news feeds
News Administrator		       INN Technical info, Consulting
Spinne, Inc.				http://www.spinne.com/usenet/

Technical Details
Message-ID: <33C97B19.629396D3@spinne.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: <5qaheh$d5u@netaxs.com> <5qb7g8$ql4$1@flea.best.net> <5qbrsn$pb2@netaxs.com>

Show Full Headers
Complete Article Headers
Message-ID: <33C97B19.629396D3@spinne.com>
Subject: Re: Diablo Q
Date: Sun, 13 Jul 1997 00:00:00 +0000
From: Jeff Garzik <jeff.garzik@spinne.com>
References: <5qaheh$d5u@netaxs.com> <5qb7g8$ql4$1@flea.best.net> <5qbrsn$pb2@netaxs.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: 256725421
To: Avi Freedman <freedman@netaxs.com>
Organization: Spinne http://spinne.com
Newsgroups: news.software.nntp