From owner-freebsd-hackers@FreeBSD.ORG Wed Mar 17 18:18:29 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 703C1106564A for ; Wed, 17 Mar 2010 18:18:29 +0000 (UTC) (envelope-from tdamas@gmail.com) Received: from mail-pz0-f196.google.com (mail-pz0-f196.google.com [209.85.222.196]) by mx1.freebsd.org (Postfix) with ESMTP id 406E28FC0C for ; Wed, 17 Mar 2010 18:18:29 +0000 (UTC) Received: by pzk34 with SMTP id 34so980439pzk.3 for ; Wed, 17 Mar 2010 11:18:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type; bh=YzW1R6f5l9mIulG0jQyjM2hGx2NZv6bC9zsBZOFC4WQ=; b=HrOudqrzne3vfTvGsDiigAkUHQp8IXfth9JA2E4tyrtDsd7vwGtUkWPaa11XHMYYDn /bpwEprBtqoAwzANBDJNr5Xc3pz3RjmOwNdmhzt+Z6+UJVlVz9gMu2GLWf/oUMIcuQ2B adKqZQbbyBPSncevENUOcwPZwbsgyHCx4t5YI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=VZJfROcGxw1+UMah8HC+FODklz/IGKI1btsdHPGUFcuTKhZlv9giCzOPvNvXXi8v5u TqBnoX8BkQvlIqORD+fJMT1uJW0XqlMeMhyWCLnoDW+xMEC6GQLLmRmUd0PwnZD8oSHa cXGYeiQVPfC0OIi395UrW5lE+ks8ODQp/8z2U= MIME-Version: 1.0 Received: by 10.115.98.13 with SMTP id a13mr1252897wam.88.1268849898745; Wed, 17 Mar 2010 11:18:18 -0700 (PDT) In-Reply-To: <367b2c981003171112n785ea9d4q21d00b533819ca67@mail.gmail.com> References: <86tysf58a2.fsf@ds4.des.no> <367b2c981003171112n785ea9d4q21d00b533819ca67@mail.gmail.com> From: Thiago Damas Date: Wed, 17 Mar 2010 15:17:58 -0300 Message-ID: To: Olivier Smedts Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: =?ISO-8859-1?Q?Dag=2DErling_Sm=F8rgrav?= , Mohacsi Janos , freebsd-hackers@freebsd.org Subject: Re: ATA 4K sector issues 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: Wed, 17 Mar 2010 18:18:29 -0000 I tried with gpart, gpt scheme, begining in all block alignments possible, 34, 35, 36, 37, 38, 39 etc Even 64 gpart create -s gpt ad4 gpart add -s 64 -t freebsd-zfs ad4 With UFS, I previouly did some tests (in portuguese): Particao sem alinhar inicio => 34 1953525101 ad4 GPT (932G) 34 1953525101 1 freebsd-ufs (932G) newfs -U (padrao -f 2048 -b 16384) # time tar xfj /install/releases/i386/8.0-RELEASE/8.0-RELEASE/ports/ports.tgz 2.342u 5.013s 20:35.65 0.5% 64+1091k 6623+2734io 0pf+0w newfs -U -f 4096 -b 32768 # time tar xfj /install/releases/i386/8.0-RELEASE/8.0-RELEASE/ports/ports.tgz 2.590u 5.263s 22:06.32 0.5% 63+1087k 10911+1676io 0pf+0w Particao alinhada em multiplos de 4096 bytes (blocos logicos de 512 bytes, entao, multiplo de 8 blocos) => 34 1953525101 ad4 GPT (932G) 34 30 - free - (15K) 64 1953525071 1 freebsd-ufs (932G) newfs -U (padrao -f 2048 -b 16384) # time tar xfj /install/releases/i386/8.0-RELEASE/8.0-RELEASE/ports/ports.tgz 2.392u 5.000s 10:24.15 1.1% 64+1095k 8375+2735io 0pf+0w newfs -U -f 4096 -b 32768 # time tar xfj /install/releases/i386/8.0-RELEASE/8.0-RELEASE/ports/ports.tgz 2.547u 5.567s 1:25.50 9.4% 64+1088k 11880+1755io 0pf+0w On Wed, Mar 17, 2010 at 3:12 PM, Olivier Smedts wrote: > 2010/3/17 Thiago Damas : > > I had problem with ZFS. > > With gnop -S 4096, it works well on /dev/ad{a}X.nop; but I decided to > not > > use those disks. > > So maybe this was not a ZFS problem but a partition misalignment problem ? > > On a properly aligned partition with a physical sector size of 4KB and > a logical sector size of 512 bytes, will ZFS try to use blocksizes of > less than 4KB ? Blocksize in ZFS seems to be dynamic (at least when > not told to use a fixed blocksize), but I didn't see somewhere in the > manpage or Sun's website which minimum blocksize ZFS would use for > small files, and if there is a lower limit on blocksizes to use. > > > > > > > 2010/3/17 Mohacsi Janos > > > >> > >> > >> > >> On Wed, 17 Mar 2010, Dag-Erling Sm?rgrav wrote: > >> > >> Mohacsi Janos writes: > >>> > >>>> What is the situation with ATA 4K dirves in FreeBSD? Are there > >>>> any support for them in fdisk or disklabel? > >>>> > >>> > >>> Hmm, didn't we discuss this already? All we need to do is change the > >>> defaults in fdisk so it rounds partition offsets and sizes to a > multiple > >>> of 8 sectors (or 16 for future-proofing) instead of aligning them with > >>> fictitious cylinder boundaries. Bsdlabel, as disklabel is properly > >>> known, already DTRT: by default, the first partition starts at offset > >>> 16. Just make sure you specify sizes that are divisible by 8 or 16 > >>> blocks (not an issue if you use the M or G suffixes). Sysinstall > >>> operates in megabytes. > >>> > >> > >> Thanks for the information. > >> > >> > >> _______________________________________________ > >> freebsd-hackers@freebsd.org mailing list > >> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > >> To unsubscribe, send any mail to " > freebsd-hackers-unsubscribe@freebsd.org" > >> > > _______________________________________________ > > freebsd-hackers@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > > To unsubscribe, send any mail to " > freebsd-hackers-unsubscribe@freebsd.org" > > > > > > -- > Olivier Smedts _ > ASCII ribbon campaign ( ) > e-mail: olivier@gid0.org - against HTML email & vCards X > www: http://www.gid0.org - against proprietary attachments / \ > > "Il y a seulement 10 sortes de gens dans le monde : > ceux qui comprennent le binaire, > et ceux qui ne le comprennent pas." >