Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Jan 2010 06:08:44 +0100
From:      Ulrich =?utf-8?B?U3DDtnJsZWlu?= <uqs@spoerlein.net>
To:        Poul-Henning Kamp <phk@phk.freebsd.dk>
Cc:        Alexander Motin <mav@freebsd.org>, Miroslav Lachman <000.fbsd@quip.cz>, Thomas Backman <serenity@exscape.org>, freebsd-current@freebsd.org, freebsd-arch@freebsd.org, Pieter de Goeje <pieter@degoeje.nl>
Subject:   Re: File system blocks alignment
Message-ID:  <20100102050843.GI3508@acme.spoerlein.net>
In-Reply-To: <65036.1262386032@critter.freebsd.dk>
References:  <201001012153.44349.pieter@degoeje.nl> <65036.1262386032@critter.freebsd.dk>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100102050843.GI3508>