From owner-freebsd-questions@FreeBSD.ORG Thu Jul 24 06:42:03 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 5F303DDA for ; Thu, 24 Jul 2014 06:42:03 +0000 (UTC) Received: from smtpb.telissant.net (smtpb.telissant.net [199.233.230.156]) by mx1.freebsd.org (Postfix) with ESMTP id 310B12B07 for ; Thu, 24 Jul 2014 06:42:02 +0000 (UTC) Received: from barrida.3dresearch.com (localhost [127.0.0.1]) by smtpb.telissant.net (Postfix) with ESMTP id EE87A27335 for ; Thu, 24 Jul 2014 02:42:00 -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 EDS72LtifogJ for ; Thu, 24 Jul 2014 02:41:42 -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 5C26B27318 for ; Thu, 24 Jul 2014 02:41:42 -0400 (EDT) Received: from doncurzio.3dresearch.com (localhost [127.0.0.1]) by doncurzio.3dresearch.com (Postfix) with SMTP id C0E48A1E2C for ; Thu, 24 Jul 2014 02:41:41 -0400 (EDT) Date: Thu, 24 Jul 2014 02:41:33 -0400 From: Janos Dohanics To: FreeBSD Questions Subject: Re: Disk space economy Message-Id: <20140724024133.072b27205b8539ed7be7cde5@3dresearch.com> In-Reply-To: <53D09A74.8060009@ShaneWare.Biz> References: <20140723172954.e86883fcc8f54ee7ccbe32fd@3dresearch.com> <1406151644.20477.37.camel@btw.pki2.com> <20140723175553.6d9ce905ae7f8329099fda15@3dresearch.com> <53D09A74.8060009@ShaneWare.Biz> 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: Thu, 24 Jul 2014 06:42:03 -0000 On Thu, 24 Jul 2014 15:02:36 +0930 Shane Ambler wrote: > On 24/07/2014 07:25, Janos Dohanics wrote: > > 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 copies 3 local > > copies is the relevant setting. > > From man du - > The du utility displays the file system block usage for each file > -A Display the apparent size instead of the disk usage > > With 3 copies the disk blocks used add up to 208G but with apparent > size you get the size of each file totalling 69G - roughly 1/3 Thank you... I completely missed this one. -- Janos Dohanics