From owner-freebsd-questions@FreeBSD.ORG Thu Jul 24 05:37:47 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 59F25CA9 for ; Thu, 24 Jul 2014 05:37:47 +0000 (UTC) Received: from ipmail05.adl6.internode.on.net (ipmail05.adl6.internode.on.net [150.101.137.143]) by mx1.freebsd.org (Postfix) with ESMTP id E9B4B2602 for ; Thu, 24 Jul 2014 05:37:46 +0000 (UTC) Received: from ppp118-210-36-188.lns20.adl2.internode.on.net (HELO leader.local) ([118.210.36.188]) by ipmail05.adl6.internode.on.net with ESMTP; 24 Jul 2014 15:02:36 +0930 Message-ID: <53D09A74.8060009@ShaneWare.Biz> Date: Thu, 24 Jul 2014 15:02:36 +0930 From: Shane Ambler User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Janos Dohanics , FreeBSD Questions Subject: Re: Disk space economy References: <20140723172954.e86883fcc8f54ee7ccbe32fd@3dresearch.com> <1406151644.20477.37.camel@btw.pki2.com> <20140723175553.6d9ce905ae7f8329099fda15@3dresearch.com> In-Reply-To: <20140723175553.6d9ce905ae7f8329099fda15@3dresearch.com> Content-Type: text/plain; charset=ISO-8859-1 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 05:37:47 -0000 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