From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 23 01:23:31 2011 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 4D5F81065672 for ; Tue, 23 Aug 2011 01:23:31 +0000 (UTC) (envelope-from peterjeremy@acm.org) Received: from mail34.syd.optusnet.com.au (mail34.syd.optusnet.com.au [211.29.133.218]) by mx1.freebsd.org (Postfix) with ESMTP id CD1758FC0A for ; Tue, 23 Aug 2011 01:23:30 +0000 (UTC) Received: from server.vk2pj.dyndns.org (c220-239-116-103.belrs4.nsw.optusnet.com.au [220.239.116.103]) by mail34.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id p7N1NRFZ008157 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 23 Aug 2011 11:23:28 +1000 X-Bogosity: Ham, spamicity=0.000000 Received: from server.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by server.vk2pj.dyndns.org (8.14.4/8.14.4) with ESMTP id p7N1NQIp029788; Tue, 23 Aug 2011 11:23:26 +1000 (EST) (envelope-from peter@server.vk2pj.dyndns.org) Received: (from peter@localhost) by server.vk2pj.dyndns.org (8.14.4/8.14.4/Submit) id p7N1NQIu029787; Tue, 23 Aug 2011 11:23:26 +1000 (EST) (envelope-from peter) Date: Tue, 23 Aug 2011 11:23:26 +1000 From: Peter Jeremy To: Ivan Voras Message-ID: <20110823012326.GA29658@server.vk2pj.dyndns.org> References: <4E4D50CD.5080806@rawbw.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="BXVAT5kNtrzKuDFl" Content-Disposition: inline In-Reply-To: X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-hackers@freebsd.org Subject: Re: ZFS installs on HD with 4k physical blocks without any warning as on 512 block size device 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, 23 Aug 2011 01:23:31 -0000 --BXVAT5kNtrzKuDFl Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2011-Aug-22 12:45:08 +0200, Ivan Voras wrote: >It would be suboptimal but only for the slight waste of space that would= =20 >have otherwise been reclaimed if the block or fragment size remained 512= =20 >or 2K. This waste of space is insignificant for the vast majority of=20 >users and there are no performance penalties, so it seems that switching= =20 >to 4K sectors by default for all file systems would actually be a good ide= a. This is heavily dependent on the size distribution. I can't quickly check for ZFS but I've done some quick checks on UFS. The following are sizes in MB for my copies of the listed trees with different UFS frag size. These include directories but not indirect blocks: 1b 512b 1024b 2048b 4096b 4430 4511 4631 4875 5457 /usr/ncvs 4910 5027 5181 5499 6133 Old FreeBSD SVN repo 299 370 485 733 1252 /usr/ports cheched out from CVS 467 485 509 557 656 /usr/src 8-stable checkout from CVS Note that the ports tree grew by 50% going from 1K to 2K frags and will grow by another 70% going to 4KB frags. Similar issues will be seen when you have lots of small file. --=20 Peter Jeremy --BXVAT5kNtrzKuDFl Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (FreeBSD) iEYEARECAAYFAk5TAQ4ACgkQ/opHv/APuIexBACgrI4ba5mIgbTq/D5fRcQJfyiY F7QAoJxa5P+dDu6kbpUdUoE/LwllWFUJ =4nIA -----END PGP SIGNATURE----- --BXVAT5kNtrzKuDFl--