From owner-freebsd-hackers@FreeBSD.ORG Fri Mar 19 11:44:40 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 52D74106566B for ; Fri, 19 Mar 2010 11:44:40 +0000 (UTC) (envelope-from des@des.no) Received: from smtp.des.no (smtp.des.no [194.63.250.102]) by mx1.freebsd.org (Postfix) with ESMTP id 091C48FC2A for ; Fri, 19 Mar 2010 11:44:40 +0000 (UTC) Received: from ds4.des.no (des.no [84.49.246.2]) by smtp.des.no (Postfix) with ESMTP id 1F5971FFC51; Fri, 19 Mar 2010 11:44:38 +0000 (UTC) Received: by ds4.des.no (Postfix, from userid 1001) id F190E844ED; Fri, 19 Mar 2010 12:44:37 +0100 (CET) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Thiago Damas References: <86tysf58a2.fsf@ds4.des.no> <367b2c981003171112n785ea9d4q21d00b533819ca67@mail.gmail.com> <201003172023.o2HKNNbj069321@apollo.backplane.com> <201003172111.o2HLBIgJ069873@apollo.backplane.com> Date: Fri, 19 Mar 2010 12:44:37 +0100 In-Reply-To: (Thiago Damas's message of "Thu, 18 Mar 2010 15:46:31 -0300") Message-ID: <86hboczgbe.fsf@ds4.des.no> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.95 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org Subject: Re: ATA 4K sector issues X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Mar 2010 11:44:40 -0000 Thiago Damas writes: > I tested now with 1Mb (2048 blocks) at the begining of disk, and same > behaviour: slow write speed and high disk latency. It just occurred to me - if I'm not mistaken, when the disk block size is larger than either DFLTPHYS (64 kB), the kernel will do a read-modify-write no matter how much data you write. You should make sure the filesystem never sees a block size larger than that (e.g. with a four-disk stripe or a five-disk raid5, the individual disks' block size should not exceed DFLTPHYS / 4, because the array's block size will be 4 x the LCM of the individual disks' block sizes) DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no