From owner-freebsd-arch@FreeBSD.ORG Sat Jan 2 05:08:50 2010 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A8806106566B for ; Sat, 2 Jan 2010 05:08:50 +0000 (UTC) (envelope-from uqs@spoerlein.net) Received: from acme.spoerlein.net (acme.spoerlein.net [IPv6:2a01:198:206::1]) by mx1.freebsd.org (Postfix) with ESMTP id 12D228FC0C for ; Sat, 2 Jan 2010 05:08:49 +0000 (UTC) Received: from acme.spoerlein.net (localhost.spoerlein.net [IPv6:::1]) by acme.spoerlein.net (8.14.3/8.14.3) with ESMTP id o0258iPY026360 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 2 Jan 2010 06:08:44 +0100 (CET) (envelope-from uqs@spoerlein.net) Received: (from uqs@localhost) by acme.spoerlein.net (8.14.3/8.14.3/Submit) id o0258iFN026359; Sat, 2 Jan 2010 06:08:44 +0100 (CET) (envelope-from uqs@spoerlein.net) Date: Sat, 2 Jan 2010 06:08:44 +0100 From: Ulrich =?utf-8?B?U3DDtnJsZWlu?= To: Poul-Henning Kamp Message-ID: <20100102050843.GI3508@acme.spoerlein.net> Mail-Followup-To: Poul-Henning Kamp , Pieter de Goeje , Alexander Motin , freebsd-current@freebsd.org, Miroslav Lachman <000.fbsd@quip.cz>, Thomas Backman , freebsd-arch@freebsd.org References: <201001012153.44349.pieter@degoeje.nl> <65036.1262386032@critter.freebsd.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <65036.1262386032@critter.freebsd.dk> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: Alexander Motin , Miroslav Lachman <000.fbsd@quip.cz>, Thomas Backman , freebsd-current@freebsd.org, freebsd-arch@freebsd.org, Pieter de Goeje Subject: Re: File system blocks alignment X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Jan 2010 05:08:50 -0000 On Fri, 01.01.2010 at 22:47:12 +0000, Poul-Henning Kamp wrote: > In message <201001012153.44349.pieter@degoeje.nl>, Pieter de Goeje writes: > > >That yielded some pretty spectacular results. [...] > > > >Performance for restore was abysmal in the unaligned case, easily being 10 > >times slower than aligned restore. Newfs was about 5 times as slow. > > That is what I expected, only I didn't expect a factor 14 in performance. > > I'm not surprised that newfs and restore take the biggest hits in that > test, those are the hard ones, seen from the disk drive, all the read > only work can be cached and "covered up" that way. > > Ideally, newfs/UFS should do a quick test to look for any obvious > boundaries, and DTRT, a nice little task for somebody :-) Indeed, but newfs is only one small part of the puzzle. Think about zpools and, more importantly swap partitions. Sysinstall, fdisk, gpart and bsdlabel should all display some fat warning if partition/label alignment is not, say at 256kB (a common stripe size, right?) and also automatically generate that offset if the user uses automatic settings. But then again, this is all wishful thinking from a users perspective :) Regards, Uli