From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 10 17:44:50 2010 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5D7DB1065674 for ; Tue, 10 Aug 2010 17:44:50 +0000 (UTC) (envelope-from des@des.no) Received: from smtp.des.no (smtp.des.no [194.63.250.102]) by mx1.freebsd.org (Postfix) with ESMTP id 222518FC1B for ; Tue, 10 Aug 2010 17:44:49 +0000 (UTC) Received: from ds4.des.no (des.no [84.49.246.2]) by smtp.des.no (Postfix) with ESMTP id 913391FFC33; Tue, 10 Aug 2010 17:44:48 +0000 (UTC) Received: by ds4.des.no (Postfix, from userid 1001) id 4C3F18452D; Tue, 10 Aug 2010 19:44:48 +0200 (CEST) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: hackers@freebsd.org, geom@freebsd.org Date: Tue, 10 Aug 2010 19:44:48 +0200 Message-ID: <86wrry1hwv.fsf@ds4.des.no> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: Subject: Support for WD Advanced Format disks X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Aug 2010 17:44:50 -0000 I'm looking into a clean, permanent solution for WD Green drives that use 4096-byte physical sectors. To summarize the information I've collected so far: - There are several types of WD Green disks. I am primarily interested in the 1+ TB models: EARS and EADS. - According to WD's own documentation, EARS disks are Advanced Format while EADS disks are not; furthermore, EARS disks have 64 MB cache while EADS disks have only 32 MB. - There is at least one source that provides model and serial numbers for two EADS disks that seem have the performance characteristics of an Advanced Format disk. One of them actually reports 4096-byte sectors, the other does not. I am not entirely certain that source is reliable. - Advanced Format disks should have a label that clearly describes them as such: http://media.bestofmicro.com/U/O/238272/original/Western-Digital-WD10EARS-t= op.jpg - I received an EADS disk and performed measurements which clearly show that it is *not* an Advanced Format disk. I had no trouble achieving 50 MBps with misaligned 8192-byte writes. Right now, I have two requests. The first is that people who have Advanced Format disks run a program I wrote that measures the performance of aligned and misaligned writes of different sizes. % svn co http://svn.freebsd.org/base/user/des/phybs % cd phybs % make % ./phybs -w /dev/adN Please note: - This test is *destructive*. Do not run it on a disk that contains data you care about; it *will* destroy them. - You can not run it on a file, but you *can* run it on a partition instead of the whole disk. You can even run it on a misaligned partition; the results will show by how much the partition is misaligned. - The test takes a long time. It took about half an hour on a WD20EADS connected by eSATA. It may take several hours on an Advanced Format disk. If you are impatient, try bumping MINSIZE to 1024 in phybs.c. The second request is for some kind soul to send me an EARS drive to play with; please contact me off-list if you're interested. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no