From owner-freebsd-fs@FreeBSD.ORG Thu Oct 21 15:43:43 2010 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EAE461065672 for ; Thu, 21 Oct 2010 15:43:43 +0000 (UTC) (envelope-from fjwcash@gmail.com) Received: from mail-gx0-f182.google.com (mail-gx0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id A77618FC14 for ; Thu, 21 Oct 2010 15:43:43 +0000 (UTC) Received: by gxk2 with SMTP id 2so132338gxk.13 for ; Thu, 21 Oct 2010 08:43:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=oTJr/q+Nh3eoFY+SBUlW+PMcZi0Dh+dHfH/1YqKxQCo=; b=ItJ3VylBcg2zVnW5CvvOPdd7HG1NC/keEz/X7FKkrNmWJXoIm7CxKXkgjmtlGABIoW F7I3bg9Wpk9asXGNjGEiMUBgRWISf+JQb8nW8CpAROk4GWey2AZSi0cDjSCAf9LzqEhG uSHwd0K2X8o3456S4OKyVpNWgEE1qEHxRoPSo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=oRCCh9vCvxSDrrnvJ+LMb7tShOgKpYE0aHO1ZmDoys7pcq5ll760VRwgupBZPOHjSs KoXnVqvOa25Sf22fbfehAkv+LhYgqQ2J0xYNfW52q49CG83XuGUiaTdkmj47ihgDwFm4 irsFdI9059CCt/WU8IploLZQmhEid7vfPYC8A= MIME-Version: 1.0 Received: by 10.90.93.8 with SMTP id q8mr1454538agb.163.1287675821369; Thu, 21 Oct 2010 08:43:41 -0700 (PDT) Received: by 10.90.56.10 with HTTP; Thu, 21 Oct 2010 08:43:41 -0700 (PDT) In-Reply-To: <4CAE798D.6040905@xpam.de> References: <4CAE6C3A.5070509@rcn.com> <4CAE798D.6040905@xpam.de> Date: Thu, 21 Oct 2010 08:43:41 -0700 Message-ID: From: Freddie Cash To: Adam Nowacki Content-Type: text/plain; charset=UTF-8 Cc: freebsd-fs@freebsd.org Subject: Re: ZFS and Samsung Spinpoint F4 4K sector drive X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Oct 2010 15:43:44 -0000 On Thu, Oct 7, 2010 at 6:53 PM, Adam Nowacki wrote: > Nothing user friendly but if you're willing to modify sources and rebuild > kernel there is a one line tweak. > > /usr/src/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c find: > *ashift = highbit(MAX(pp->sectorsize, SPA_MINBLOCKSIZE)) - 1; > and modify to something like: > *ashift = highbit(MAX(MAX(4096, pp->sectorsize), SPA_MINBLOCKSIZE)) - 1; > > I'm using this for 3 months with 20 2TB 4kb sector WDC disks (in 2 raidz2 > arrays of 10) without any issues. Writes go at 300MB/s. Does this patch work the same was as the following: http://www.solarismen.de/archives/5-Solaris-and-the-new-4K-Sector-Disks-e.g.-WDxxEARS-Part-2.html They both deal with setting ashift to 4096 bytes, but are in two very different places in the code. -- Freddie Cash fjwcash@gmail.com