From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,32e2d0d54be0dff7 X-Google-Attributes: gidfa528,public X-Google-Thread: f7344,32e2d0d54be0dff7 X-Google-Attributes: gidf7344,public X-Google-ArrivalTime: 2003-08-01 09:58:43 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.cs.ubc.ca!cyclone.bc.net!tdsnet-transit!newspeer.tds.net!news.binc.net!young_r From: young_r@encompasserve.org (Rob Young) Newsgroups: comp.unix.tru64,comp.os.vms Subject: Re: KZPCC-CE (three channel RAID controller) - poor read performance Date: 1 Aug 2003 11:58:39 -0500 Organization: Encompasserve Message-ID: References: NNTP-Posting-Host: eisner.encompasserve.org X-Trace: grandcanyon.binc.net 1059757035 20661 192.135.80.34 (1 Aug 2003 16:57:15 GMT) X-Complaints-To: abuse@binc.net NNTP-Posting-Date: Fri, 1 Aug 2003 16:57:15 +0000 (UTC) Xref: archiver1.google.com comp.unix.tru64:10476 comp.os.vms:127777 In article , Roy Omond writes: > Gentle colleagues (cross-posted to comp.os.vms since that's > where I mostly live), > > I'm baffled by the poor read performance when reading > from a RAID-1 set on a KZPCC-CE controller. > > Scenario: 3-processor ES40 (500 MHz), running Tru64 4.0F, > 4 Gbytes (4 Mbyte cache), KZPCC-CE with 15K rpm disks > RAID-1 set mirrored over 2 separate SCSI buses. > > Using vdump to an SDLT-1, we're observing a read throughput > of ca. 44 Mbytes/sec to tape from a single disk. When the > disk is mirrored (as configured above), we're getting ca. > 20 to 21 MBytes/sec read throughput. > > I do note the rather baffling paragraph in the KZPCC-CE > release notes (see: may wrap) page 23: > > ftp://ftp.compaq.com/pub/products/alphaserver/storage/controllers/kzpcc/aa-rkl7c-te.pdf > > Quote: > > "This is explained by reads from RAID devices take longer than > from a single disk drive." > > (Yes, I know it's poor grammar). > > Can anyone come up with a logical explanation for this ? > It certainly goes against conventional wisdom wrt mirrorsets. > Well actually... it doesn't go against the wisdom. With the vdump, you are sending sequential IO. If you sent a large amount of Random IO to the RAID1 versus the single disk, the RAID1 wins. To explain how or why a single disk with the *CONTROLLER* you are using is slower than a mirror involves what it is doing with sequential IO. It is round-robining those requests to the mirror members, that is not a good thing as the next IO request to the disk is not recognized as sequential at a disk level. (Plus the disk has spun past the next LBNs so you are spinning back around and changing tracks). What do more modern/smarter controllers do? They perform sequential pre-fetch at the controller when it recognizes sequential IO coming in and sends those requests on to the drives so when the next batch of IO requests come in they are sittin' pretty in the controller cache. What does that KZPCC-CE do? Well.. if it did pre-fetch, they would be bragging about it somewhere - they don't so I'm ASSUMING (with reasonable certainty) it doesn't support it. Which makes one wonder what they use the cache for. Writeback which is a very good thing. I guess it helps databases that have to PING blocks (Bill certainly would enlighten us here) as it can write them and then immediately turn around and read them (still in cache). In fairness, it probably is a cost issue. To stuff the prefetch logic into a controller and qualify it must cost bucks. The HSJ series doesn't have prefetch. I think prefetch shows up in the HSx80 series (anyone care to confirm? Quick google shows no hits with prefetch and hsz70 and the HSZ70 Array Controller HSOF manual has no hits of prefetch in it). How can you confirm this is exactly what is happening? Get RZDISK for Unix (or equiv) and go to Page 8 and tweek prefetch to essentially disable it on that single disk: Page 8 - caching parameters: PS 1 Page code 8 Page length 18 Read cache disable bit 0 Multiple selection bit 0 Write cache enable bit 0 Write retention priority 0 Demand read retention priority 0 Disable prefetch transfer length 65535 Minimum prefetch 0 Maximum prefetch 65535 Maximum prefetch ceiling 65535 Set Maximum prefetch to 512. I'll bet you will see a big drop off in throughput on that single drive. Most drives have 8 MByte cache so that vdump is most likely doing 32-64K IO and a number of them are in drive cache when the next batch of IO requests come in. You can find rzdisk by doing a Google. Rob Men with walkie-talkie I'm home again to you babe Men with flashlights waving You know it makes me wonder Up upon the tower Sittin' in the quiet slipstream The clock reads daylight savin' Rollin' in the thunder -- Neil Young