From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,2ca8e9387ec7b05b X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2003-04-08 08:35:49 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!xmission!news-out.spamkiller.net!propagator2-maxim!propagator-maxim!feed.newsfeeds.com!cyclone-sf.pbi.net!216.218.192.242!news.he.net!news-hog.berkeley.edu!ucberkeley!agate.berkeley.edu!agate!not-for-mail From: David Konerding Newsgroups: comp.unix.tru64 Subject: Re: RAID performance question on Tru64 Date: Tue, 8 Apr 2003 15:35:46 +0000 (UTC) Organization: University of California, Berkeley Message-ID: References: <0opr6b.rgr.ln@dadsys2.fuller.local> Reply-To: dek@compbio.berkeley.edu NNTP-Posting-Host: wuzzy.berkeley.edu X-Trace: agate.berkeley.edu 1049816146 56268 128.32.236.47 (8 Apr 2003 15:35:46 GMT) X-Complaints-To: usenet@agate.berkeley.edu NNTP-Posting-Date: Tue, 8 Apr 2003 15:35:46 +0000 (UTC) User-Agent: slrn/0.9.7.4 (Linux) Xref: archiver1.google.com comp.unix.tru64:9804 In article , nospam wrote: > in article Xns93576CC81EF01JHLiu@203.239.130.2, Liu at please@dont.spam.com > wrote on 08/04/2003 11:37: > >> Stuart Fuller wrote in >> news:0opr6b.rgr.ln@dadsys2.fuller.local: >> >>> Liu wrote: >>> >>>> Hello. >>>> I'm a newbie to RAID. Doing something on RAID , I found it somewhat >>>> slow. so I did a simple test. just copy a big file(sized almost >>>> exactly 2G byte) to itself. (date;cp bigfile ..;date) > > Looks like you don't know about the time command? > # time cp bigfile .. > Also cp is not really your friend. > My preference is to use > # time dd if=bigfile of=/dev/null bs=64k > Which is designed to give me peak! read performance > Or > # time dd if=/dev/zero of=bigfile bs=64k count=16384 > To create a 1g file > In this way you have control of the size of the reads (at least more so than > cp) and you only do read or write not both. This is also reading/writing > though the file system buffers you can at least do the read from the raw > devices that the file system is on to see the read performance outside of > the file system. Make sure you don't do the write test to the raw volume if > you care about the fs. Just use iozone or bonnie, they will give you the numbers most relevant to your real world experience (well, maybe). They ask the OS to sync the data as soon as it is written, but of course the large cache on the RAID controller will mask some of that. You must then try to use file data even larger than the cache (multiple gigabytes). Even "raw devices" would still be cached at the controller, unless the OS/device driver/RAID controller had some way of indicating direct writes to drives (I have no idea if this is the case). Note that, it's worthwhile reading the specs of the RAID controller and the drive array and being knowledgeable about its structure (you said you looked at the array configuration and it was mirrored and striped on one controller; whether that causes you to see a performance hit at the FS level depends on a lot of factors). We were wondering about the lower read and write performance of our RAID array until we looked more closely at the specs. Although it has a fibre channel interface, the controller has a maximum throughput of 16MB/s a second. Dave