Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Aug 2011 13:21:00 +0100
From:      Aled Morris <aledm@qix.co.uk>
To:        Tom Evans <tevans.uk@googlemail.com>
Cc:        Yuri <yuri@rawbw.com>, freebsd-hackers@freebsd.org
Subject:   Re: ZFS installs on HD with 4k physical blocks without any warning as on 512 block size device
Message-ID:  <CAO1bj=ZHC0ZMtrQKr3DV8E3rP3gTMHxdF3J2EPAD3wR5dqN%2BkA@mail.gmail.com>
In-Reply-To: <CAFHbX1K%2BRuzBKouAbN0%2BSCOSAkGNdgMzC92YN7GeKn_pD=J=tg@mail.gmail.com>
References:  <4E4D50CD.5080806@rawbw.com> <CAFHbX1K%2BRuzBKouAbN0%2BSCOSAkGNdgMzC92YN7GeKn_pD=J=tg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 19 August 2011 11:15, Tom Evans <tevans.uk@googlemail.com> wrote:

> On Thu, Aug 18, 2011 at 6:50 PM, Yuri <yuri@rawbw.com> wrote:
> > Some latest hard drives have logical sectors of 512 byte when they
> actually
> > have 4k physical sectors.
>
...
> Shouldn't UFS and ZFS drivers be able to either read the right sector size

> > from the underlying device or at least issue a warning?
>
> The device never reports the actual sector size, so unless FreeBSD
> keeps a database of 4k sector hard drives that report as 512 byte
> sector hard drives, there is nothing that can be done.
>
>
At what point should we change the default in newfs/zfs to 4k?

I guess formatting the filesystem for 4k sectors on a 512b drive would still
work but it would be suboptimal.  What would the performance penalty be in
reality?

Aled



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAO1bj=ZHC0ZMtrQKr3DV8E3rP3gTMHxdF3J2EPAD3wR5dqN%2BkA>