Article View: news.software.nntp
Article #18383Re: Tips for tuning disks on news server w/ Ultra-2 & hardware RAID?
From: coneill
Date: Tue, 10 Jun 1997 00:00
Date: Tue, 10 Jun 1997 00:00
62 lines
4265 bytes
4265 bytes
jerry@rigel.whowhere.com (Jerry Aguirre) writes: > In article <5ni3qs$l22@shelob.aracnet.com>, > 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. Unfortunately, this doesn't allow those of us w/uninterruptible power, or who are willing to accept the risk the ability to optimize for speed. > 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. My experience has the opposite, especially on news servers. Being able to hand off writes to the controller to complete, marking those pages as clean, sooner. It's also been my experience that hardware based caches typically do better write optimizations. IMHO, hardware caching (which is normally included w/hardware raid), is well worth the money. > > 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. My experience has been that the caches on the drives are typically too small to make any appreciable difference. > > 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. My average article size is closer to 8k than 3k, and my average article requested is closer to 64k. That being said, I agree with the large stripe size argument. I do have some antecdotal evidence that it doesn't really make much of a difference though. To satisify Sun's service departments curiousity, I recently set up a mirrored 60gb array for /var/spool/news. The nifty thing about this is that one half of it had the stripe size set to 4mb, which was the cylinder group size. The other half had it set to 128kb. I monitored it like this for about 15 minutes with about 700 readers. I watched the individual drives w/iostat -x 15, and surprisingly the two sub-mirrors had very little difference in activity, one being slightly favored one way or another or not at all. Based on that I used 128kb stripe on the Veritas install I did immediately following the test[1] 1. We switched to Veritas after fighting with Sun over a performance problem w/them for a week. Basically iostat -x w/SDS 4.1 was showing the meta-devices were 100% busy when the the individual drives were 15-20% busy. Weird, but Veritas seems to be working much better, and I'm overall, _very_ impressed with it.
Technical Details
Message-ID:
<86enabnj8s.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-mailReferences:
<82yb90mf99.fsf@peachfuzz.eecs.umich.edu> <5n7fk6$305@shelob.aracnet.com> <5nhh84$as5@mow.physik.uni-bremen.de> <5ni3qs$l22@shelob.aracnet.com> <5nidl8$11l$1@fes.whowhere.com>Show Full Headers
Complete Article Headers
Message-ID: <86enabnj8s.fsf@blah.erols.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: coneill@blah.erols.com References: <82yb90mf99.fsf@peachfuzz.eecs.umich.edu> <5n7fk6$305@shelob.aracnet.com> <5nhh84$as5@mow.physik.uni-bremen.de> <5ni3qs$l22@shelob.aracnet.com> <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 X-Deja-AN: 247365695 Organization: Erol's Internet Services X-Received-On: 10 Jun 1997 01:02:10 GMT Newsgroups: news.software.nntp