Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Jul 2014 02:41:33 -0400
From:      Janos Dohanics <web@3dresearch.com>
To:        FreeBSD Questions <freebsd-questions@freebsd.org>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 24 Jul 2014 15:02:36 +0930
Shane Ambler <FreeBSD@ShaneWare.Biz> wrote:

> On 24/07/2014 07:25, Janos Dohanics wrote:
> > On Wed, 23 Jul 2014 14:40:44 -0700
> > Dennis Glatting <freebsd@penx.com> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140724024133.072b27205b8539ed7be7cde5>