From owner-freebsd-fs@FreeBSD.ORG Fri Jun 9 18:45:14 2006 Return-Path: X-Original-To: fs@freebsd.org Delivered-To: freebsd-fs@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DCC1316A41A for ; Fri, 9 Jun 2006 18:45:14 +0000 (UTC) (envelope-from scottl@samsco.org) Received: from pooker.samsco.org (pooker.samsco.org [168.103.85.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5929843D72 for ; Fri, 9 Jun 2006 18:45:14 +0000 (GMT) (envelope-from scottl@samsco.org) Received: from [10.10.3.185] ([69.15.205.254]) (authenticated bits=0) by pooker.samsco.org (8.13.4/8.13.4) with ESMTP id k59Ij0MM039832; Fri, 9 Jun 2006 12:45:05 -0600 (MDT) (envelope-from scottl@samsco.org) Message-ID: <4489C1A6.40605@samsco.org> Date: Fri, 09 Jun 2006 12:44:54 -0600 From: Scott Long User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.12) Gecko/20060206 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Mikhail Teterin References: <20060609065656.31225.qmail@web30313.mail.mud.yahoo.com> <200606091313.04913.mi+mx@aldan.algebra.com> <4489ADC9.3090809@samsco.org> <200606091328.52183.mi+mx@aldan.algebra.com> In-Reply-To: <200606091328.52183.mi+mx@aldan.algebra.com> Content-Type: text/plain; charset=KOI8-U; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=0.0 required=3.8 tests=none autolearn=failed version=3.1.1 X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on pooker.samsco.org Cc: fs@freebsd.org Subject: Re: single disk vs. RAID5 (amr) X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Jun 2006 18:45:14 -0000 Mikhail Teterin wrote: > [Subject changed] > > п'ятниця 09 червень 2006 13:20, Scott Long написав: > >>>I never benchmarked the speed on the single drives, other than to compare >>>with my RAID5 array (which puzzlingly always loses to a single drive, but >>>that's a different story). >> >>All depends on access alignment and cache behaviour. > > > Well, this does not tell me much :-( I compare a single disk vs. a RAID5 array > of 6 such disks joined using amr(4). I tried to figure out the best > FS-parameters for the RAID, but whatever I tried, it was always quite > inferior to the the single drive -- on both reading and writing. > > Perhaps, adding the battery-backup option to the RAID card would improve > things, but I expected it to be faster even without it. > > -mi THere are two things to consider. First is that FreeBSD mis-aligns the filesysytem blocks if you are using an fdisk/MBR header on the disk. This misalignment doesn't affect single disks, but it greatly affects RAID, and especially RAID-5. An easy way to check this is to compare the performance on an array that has just the filesystem on it and no MBR or disklabel information. The second is that the LSI controllers will turn the cache off if a battery is not present. This won't affect read speed much, but it will greatly affect write speed. Scott