🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #18386

Re: Tips for tuning disks on news server w/ Ultra-2 & hardware RAID?

#18386
From: Jerry Aguirre
Date: Tue, 10 Jun 1997 00:00
48 lines
3252 bytes
In article <5ni3qs$l22@shelob.aracnet.com>,
Kyle Robinson <greywolf@aracnet.com> wrote:
>Well, still, if the cache size on the drive is, say, 64k, then a 44k stripe
>would still, potentially, be more efficient than a stripe of 2k (at least it
>would be nicer to the drives, as they wouldn't be hit so much).
>
>It still seems that if lots of small articles (say 4k) come in, and the
>stripe size is at 44k (going with the above figure), that you could still
>fit 11 articles in before going to the next drive.  If they all get put in
>the cache first, then I'd think that would be more efficient than each
>article getting written to the drives individually.
>
>Now, to throw in another factor, what about the cache on the scsi
>controller?  I've currently got 16mb onboard, and am upgrading to 64mb as
>soon as the memory comes in.  How's that cache going to fit in with the
>cache on individual drives?

All those caches sound great but you will find that they don't
interface well with a sophisticated OS.

I think you will find that in most cases the OS will use the cache in
a "write thru" mode.  That is the cache is only used for writes as a temporary
buffer between the OS and the physical disk.  The reason is to keep the
disk consistant in case of a crash or power failure.  If data were in the
drive or controller cache and power failed then that data is lost forever!
The OS and the user would think that the data was synced to disk but it
would not have been.

Thus the cache in the controller and the drives offer no improvement for write
times.  These caches can offer improvements in read access.  But it has
generally been determined that controller caches are useless for Unix. 
Unix could make better use of that RAM for its own cache than the disk
controller can.  Only where the OS doesn't do proper caching is there an
advantage to having a large controller cache.

The cache on the drive can be an advantage in that it can do rotational
position sensing.  Thus the drive might happen to settle on sector 5 when
you wanted to read sectors 2-7.  The system would normally wait until sector
2 rolled around and then start reading 2 thru 7.  But the drive could cache
sectors 5-7, wait for 2-4 and then provide all the data a little quicker.

Besides, when are you going to be writing more than 16K at a shot?  The
average article size is less than 3KB!  By using a small stripe value you
are tuning your system to handle alt.binary articles efficiently at the
expense of all others.

Technical Details
Message-ID: <5nidl8$11l$1@fes.whowhere.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: <82yb90mf99.fsf@peachfuzz.eecs.umich.edu> <5n7fk6$305@shelob.aracnet.com> <5nhh84$as5@mow.physik.uni-bremen.de> <5ni3qs$l22@shelob.aracnet.com>

Show Full Headers
Complete Article Headers
Message-ID: <5nidl8$11l$1@fes.whowhere.com>
Subject: Re: Tips for tuning disks on news server w/ Ultra-2 & hardware RAID?
Date: Tue, 10 Jun 1997 00:00:00 +0000
From: jerry@rigel.whowhere.com (Jerry Aguirre)
References: <82yb90mf99.fsf@peachfuzz.eecs.umich.edu> <5n7fk6$305@shelob.aracnet.com> <5nhh84$as5@mow.physik.uni-bremen.de> <5ni3qs$l22@shelob.aracnet.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: 247336049
Organization: WhoWhere?; Mt. View, CA USA
Newsgroups: news.software.nntp