From owner-freebsd-current@FreeBSD.ORG Fri Jan 1 22:46:36 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 82B2F1065697; Fri, 1 Jan 2010 22:46:36 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222]) by mx1.freebsd.org (Postfix) with ESMTP id 47ADA8FC25; Fri, 1 Jan 2010 22:46:35 +0000 (UTC) Received: from critter.freebsd.dk (critter.freebsd.dk [192.168.61.3]) by phk.freebsd.dk (Postfix) with ESMTP id DC62A7E996; Fri, 1 Jan 2010 22:46:34 +0000 (UTC) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.14.3/8.14.3) with ESMTP id o01MlCVb065037; Fri, 1 Jan 2010 22:47:12 GMT (envelope-from phk@critter.freebsd.dk) To: Pieter de Goeje From: "Poul-Henning Kamp" In-Reply-To: Your message of "Fri, 01 Jan 2010 21:53:43 +0100." <201001012153.44349.pieter@degoeje.nl> Date: Fri, 01 Jan 2010 22:47:12 +0000 Message-ID: <65036.1262386032@critter.freebsd.dk> Sender: phk@critter.freebsd.dk Cc: Alexander Motin , freebsd-current@freebsd.org, Miroslav Lachman <000.fbsd@quip.cz>, Thomas Backman , freebsd-arch@freebsd.org Subject: Re: File system blocks alignment X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Jan 2010 22:46:36 -0000 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 :-) Poul-Henning PS: The reason I asked for 3 iterations, was so we could calculate a standard deviation (See: ministat(8)) in order to have a statistical sound conclusion. With a factor 14 in time difference, I will for once conceede it unnecessary :-) -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.