From owner-freebsd-questions@FreeBSD.ORG Wed Jul 23 21:56:20 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8DC586D4 for ; Wed, 23 Jul 2014 21:56:20 +0000 (UTC) Received: from smtpb.telissant.net (smtpb.telissant.net [199.233.230.156]) by mx1.freebsd.org (Postfix) with ESMTP id 6065F2EE8 for ; Wed, 23 Jul 2014 21:56:19 +0000 (UTC) Received: from barrida.3dresearch.com (localhost [127.0.0.1]) by smtpb.telissant.net (Postfix) with ESMTP id 3BBCE27398 for ; Wed, 23 Jul 2014 17:56:19 -0400 (EDT) X-Virus-Scanned: amavisd-new at telissant.net Received: from smtpb.telissant.net ([127.0.0.1]) by barrida.3dresearch.com (barrida.3dresearch.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TWHNZ657pCDT for ; Wed, 23 Jul 2014 17:55:59 -0400 (EDT) Received: from doncurzio.3dresearch.com (pool-108-3-92-199.pitbpa.east.verizon.net [108.3.92.199]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtpb.telissant.net (Postfix) with ESMTPSA id 8FD882731F for ; Wed, 23 Jul 2014 17:55:59 -0400 (EDT) Received: from doncurzio.3dresearch.com (localhost [127.0.0.1]) by doncurzio.3dresearch.com (Postfix) with SMTP id E7CD3A1E2C for ; Wed, 23 Jul 2014 17:55:58 -0400 (EDT) Date: Wed, 23 Jul 2014 17:55:53 -0400 From: Janos Dohanics To: FreeBSD Questions Subject: Re: Disk space economy Message-Id: <20140723175553.6d9ce905ae7f8329099fda15@3dresearch.com> In-Reply-To: <1406151644.20477.37.camel@btw.pki2.com> References: <20140723172954.e86883fcc8f54ee7ccbe32fd@3dresearch.com> <1406151644.20477.37.camel@btw.pki2.com> X-Mailer: Sylpheed 3.3.0 (GTK+ 2.24.19; amd64-portbld-freebsd9.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Jul 2014 21:56:20 -0000 On Wed, 23 Jul 2014 14:40:44 -0700 Dennis Glatting wrote: > On Wed, 2014-07-23 at 17:29 -0400, Janos Dohanics wrote: > > Hello List, > > > > I have a directory which contains 48 files. 35 of these files are > > large, close to 2 GB (reported by ls -l). 7 of the files a smaller > > than 4 K, the rest of the files are few dozen Ks in size. > > > > This is a FreeBSD 10 system with ZFS and RAIDZ2. > > > > du -h reports the directory to be 208G. > > > > du -A -h reports the directory to be 69G. > > > > It seems there is 2G wasted for each 1G stored data - would you > > explain why and what can I do make more economical use of disk > > space? > > > > Compression and/or dedup enabled? The answer is no and no: # zfs get all data NAME PROPERTY VALUE SOURCE data type filesystem - data creation Sat Jul 5 16:06 2014 - data used 237G - data available 4.57T - data referenced 237G - data compressratio 1.00x - data mounted yes - data quota none default data reservation none default data recordsize 128K default data mountpoint /data default data sharenfs off default data checksum on default data compression off default data atime on default data devices on default data exec on default data setuid on default data readonly off default data jailed off default data snapdir hidden default data aclmode discard default data aclinherit restricted default data canmount on default data xattr off temporary data copies 3 local data version 5 - data utf8only off - data normalization none - data casesensitivity sensitive - data vscan off default data nbmand off default data sharesmb off default data refquota none default data refreservation none default data primarycache all default data secondarycache all default data usedbysnapshots 0 - data usedbydataset 237G - data usedbychildren 1.48M - data usedbyrefreservation 0 - data logbias latency default data dedup off default data mlslabel - data sync standard default data refcompressratio 1.00x - data written 237G - data logicalused 79.1G - data logicalreferenced 79.1G - data volmode default default data filesystem_limit none default data snapshot_limit none default data filesystem_count none default data snapshot_count none default -- Janos Dohanics