From owner-freebsd-stable@FreeBSD.ORG Thu Aug 18 09:17:28 2011 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EE7A8106566C for ; Thu, 18 Aug 2011 09:17:28 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from qmta08.emeryville.ca.mail.comcast.net (qmta08.emeryville.ca.mail.comcast.net [76.96.30.80]) by mx1.freebsd.org (Postfix) with ESMTP id D599B8FC16 for ; Thu, 18 Aug 2011 09:17:28 +0000 (UTC) Received: from omta14.emeryville.ca.mail.comcast.net ([76.96.30.60]) by qmta08.emeryville.ca.mail.comcast.net with comcast id MlHQ1h0021HpZEsA8lHQdR; Thu, 18 Aug 2011 09:17:24 +0000 Received: from koitsu.dyndns.org ([67.180.84.87]) by omta14.emeryville.ca.mail.comcast.net with comcast id MlHT1h0011t3BNj8alHTup; Thu, 18 Aug 2011 09:17:27 +0000 Received: by icarus.home.lan (Postfix, from userid 1000) id 409C9102C1A; Thu, 18 Aug 2011 02:17:27 -0700 (PDT) Date: Thu, 18 Aug 2011 02:17:27 -0700 From: Jeremy Chadwick To: Yuri Message-ID: <20110818091727.GA61715@icarus.home.lan> References: <4E4CD19E.5070108@rawbw.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4E4CD19E.5070108@rawbw.com> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-stable@freebsd.org Subject: Re: WD Advanced Format: do I need to do something special? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Aug 2011 09:17:29 -0000 On Thu, Aug 18, 2011 at 01:47:26AM -0700, Yuri wrote: > WD has sectors of the size 4kB in their latest hard drives, which is > different from the traditional 512B. > http://www.wdc.com/advformat > http://wdc.custhelp.com/app/answers/detail/a_id/5655 > > These articles assert that something special should be done in OS to > enable high performance of such drives. For ex. WD recommends to > install some latest drivers of particular version. > But what about FreeBSD? Should it be configured in some special way > too for these drive to perform well? > Is it aware of 4kB sector size? The below advice still applies. Do not skim the page, read it. http://ivoras.net/blog/tree/2011-01-01.freebsd-on-4k-sector-drives.html You will therefore have to go through some manual rigmarole (preferably with gpart(8)) to ensure performance. If you plan on using the disks in ZFS, you get to go through some extra rigmarole. Also be aware that mixed LBA sizes on things like RAID (and possibly ZFS?) may result in abysmal performance. I just got done assisting a user on a forum who had horrible performance on his 2-disk RAID-1 array driven by an Intel ICH9R using Intel's native RST driver under 64-bit Windows. How/why? He bought two drives, both WD10EADS (not a typo). However, one drive was WD10EADS-65M2BX (firmware 01.00A01, 512 byte physical, 512 byte logical) while the other was WD10EADS-11M2B1 (firmware 80.00A80, 4096 byte physical, 512 byte logical). He replaced the WD10EADS-65M2BX drive with another 4KB physical drive and his performance problem disappeared. I only point this out because this could happen to any user. "Oh I need to get a replacement WD10EADS drive for my system... what the heck?!?" This is going to confuse a lot of people, and caught me by surprise when I saw it. Shame on Western Digital for not adjusting the model string! Comparatively, the WD "EARS"-model drives, however, have always been 4KByte physical / 512 byte logical. The logical size is set to 512 to ensure full compatibility with existing and legacy OSes. I'm dreading the day the WD Caviar Black models succumb to all this nonsense. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, US | | Making life hard for others since 1977. PGP 4BD6C0CB |