Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 06 Jan 2010 12:36:32 +0100
From:      =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@des.no>
To:        "Svein Skogen \(Listmail Account\)" <svein-listmail@stillbilde.net>
Cc:        Alexander Motin <mav@freebsd.org>, Miroslav Lachman <000.fbsd@quip.cz>, Thomas Backman <serenity@exscape.org>, Poul-Henning Kamp <phk@phk.freebsd.dk>, freebsd-current@freebsd.org, freebsd-arch@freebsd.org, Pieter de Goeje <pieter@degoeje.nl>
Subject:   Re: File system blocks alignment
Message-ID:  <86wrzvihxb.fsf@ds4.des.no>
In-Reply-To: <4B446E52.4030508@stillbilde.net> (Svein Skogen's message of "Wed, 06 Jan 2010 12:04:50 %2B0100")
References:  <65036.1262386032@critter.freebsd.dk> <201001020101.16450.pieter@degoeje.nl> <86637fjypj.fsf@ds4.des.no> <4B446E52.4030508@stillbilde.net>

next in thread | previous in thread | raw e-mail | index | archive | help
"Svein Skogen" <svein-listmail@stillbilde.net> writes:
> Dag-Erling Sm=C3=B8rgrav <des@des.no> writes:
> > Or just default to 4 kB or even 8 kB, which has zero performance impact
> > (either way) for disks with 512 B sectors.
> I'd like it to be tunable.

It already *is* tunable, and always has been - it's just a matter of
selecting the correct offsets and sizes when you partition the disk /
array, and using the correct newfs parameters.

The problem is the default alignment used by fdisk, gpart etc.  Fdisk
aligns slices on cylinder boundaries, even though cylinders are just a
figment of the drive firmware's imagination.  Sysinstall is even worse,
since (IIRC) it *forces* cylinder alignment unless you select expert
mode and type in the correct numbers.  Marcel described the situation
for gpart somewhere else in this thread.

As for newfs, the defaults are fine as long as the filesystem doesn't
fill up to the point where UFS starts using fragments - but when it
does, you're in trouble anyway, so there's no point in overriding the
defaults unless it makes sense for your data: a filesystem used mostly
to store large files may benefit from increased block / fragment sizes,
but remember to keep the 8:1 ratio.

DES
--=20
Dag-Erling Sm=C3=B8rgrav - des@des.no



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