Received: with ECARTIS (v1.0.0; list xfs); Wed, 16 Jan 2008 10:02:55 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.0-r574664 (2007-09-11) on oss.sgi.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_56 autolearn=no version=3.3.0-r574664 Received: from cuda.sgi.com (cuda2.sgi.com [192.48.168.29]) by oss.sgi.com (8.12.11.20060308/8.12.11/SuSE Linux 0.7) with ESMTP id m0GI2MV0013197 for ; Wed, 16 Jan 2008 10:02:24 -0800 X-ASG-Debug-ID: 1200506560-5a18005d0000-NocioJ X-Barracuda-URL: http://cuda.sgi.com:80/cgi-bin/mark.cgi Received: from lucidpixels.com (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id 67551527FDC for ; Wed, 16 Jan 2008 10:02:41 -0800 (PST) Received: from lucidpixels.com (lucidpixels.com [75.144.35.66]) by cuda.sgi.com with ESMTP id lM5DCpYN5q3XyOtq for ; Wed, 16 Jan 2008 10:02:41 -0800 (PST) Received: by lucidpixels.com (Postfix, from userid 1001) id 5C33C1C000266; Wed, 16 Jan 2008 13:02:40 -0500 (EST) Date: Wed, 16 Jan 2008 13:02:40 -0500 (EST) From: Justin Piszcz X-X-Sender: jpiszcz@p34.internal.lan To: Al Boldi cc: xfs@oss.sgi.com, linux-raid@vger.kernel.org, Alan Piszcz X-ASG-Orig-Subj: Re: Linux Software RAID 5 + XFS Multi-Benchmarks / 10 Raptors Again Subject: Re: Linux Software RAID 5 + XFS Multi-Benchmarks / 10 Raptors Again In-Reply-To: <200801162027.00791.a1426z@gawab.com> Message-ID: References: <200801162027.00791.a1426z@gawab.com> User-Agent: Alpine 0.999999 (DEB 847 2007-12-06) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Barracuda-Connect: lucidpixels.com[75.144.35.66] X-Barracuda-Start-Time: 1200506561 X-Barracuda-Bayes: INNOCENT GLOBAL 0.0000 1.0000 -2.0210 X-Barracuda-Virus-Scanned: by cuda.sgi.com at sgi.com X-Barracuda-Spam-Score: -2.02 X-Barracuda-Spam-Status: No, SCORE=-2.02 using per-user scores of TAG_LEVEL=2.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=3.0 tests= X-Barracuda-Spam-Report: Code version 3.1, rules version 3.1.39680 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-Virus-Scanned: ClamAV 0.91.2/5485/Wed Jan 16 05:06:29 2008 on oss.sgi.com X-Virus-Status: Clean X-archive-position: 14151 X-ecartis-version: Ecartis v1.0.0 Sender: xfs-bounce@oss.sgi.com Errors-to: xfs-bounce@oss.sgi.com X-original-sender: jpiszcz@lucidpixels.com Precedence: bulk X-list: xfs On Wed, 16 Jan 2008, Al Boldi wrote: > Justin Piszcz wrote: >> For these benchmarks I timed how long it takes to extract a standard 4.4 >> GiB DVD: >> >> Settings: Software RAID 5 with the following settings (until I change >> those too): >> >> Base setup: >> blockdev --setra 65536 /dev/md3 >> echo 16384 > /sys/block/md3/md/stripe_cache_size >> echo "Disabling NCQ on all disks..." >> for i in $DISKS >> do >> echo "Disabling NCQ on $i" >> echo 1 > /sys/block/"$i"/device/queue_depth >> done >> >> p34:~# grep : *chunk* |sort -n >> 4-chunk.txt:0:45.31 >> 8-chunk.txt:0:44.32 >> 16-chunk.txt:0:41.02 >> 32-chunk.txt:0:40.50 >> 64-chunk.txt:0:40.88 >> 128-chunk.txt:0:40.21 >> 256-chunk.txt:0:40.14*** >> 512-chunk.txt:0:40.35 >> 1024-chunk.txt:0:41.11 >> 2048-chunk.txt:0:43.89 >> 4096-chunk.txt:0:47.34 >> 8192-chunk.txt:0:57.86 >> 16384-chunk.txt:1:09.39 >> 32768-chunk.txt:1:26.61 >> >> It would appear a 256 KiB chunk-size is optimal. > > Can you retest with different max_sectors_kb on both md and sd? Remember this is SW RAID, so max_sectors_kb will only affect the individual disks underneath the SW RAID, I have benchmarked in the past, the defaults chosen by the kernel are optimal, changing them did not make any noticable improvements. > > Also, can you retest using dd with different block-sizes? I can do this, moment.. I know about oflag=direct but I choose to use dd with sync and measure the total time it takes. /usr/bin/time -f %E -o ~/$i=chunk.txt bash -c 'dd if=/dev/zero of=/r1/bigfile bs=1M count=10240; sync' So I was asked on the mailing list to test dd with various chunk sizes, here is the length of time it took to write 10 GiB and sync per each chunk size: 4=chunk.txt:0:25.46 8=chunk.txt:0:25.63 16=chunk.txt:0:25.26 32=chunk.txt:0:25.08 64=chunk.txt:0:25.55 128=chunk.txt:0:25.26 256=chunk.txt:0:24.72 512=chunk.txt:0:24.71 1024=chunk.txt:0:25.40 2048=chunk.txt:0:25.71 4096=chunk.txt:0:27.18 8192=chunk.txt:0:29.00 16384=chunk.txt:0:31.43 32768=chunk.txt:0:50.11 65536=chunk.txt:2:20.80 Justin.