Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Oct 2014 16:47:54 -0700
From:      Darren Pilgrim <list_freebsd@bluerosetech.com>
To:        "Matthew D. Fuller" <fullermd@over-yonder.net>
Cc:        freebsd-stable <freebsd-stable@freebsd.org>
Subject:   Re: getting to 4K disk blocks in ZFS
Message-ID:  <543C64AA.1000307@bluerosetech.com>
In-Reply-To: <20141013191903.GR2161@over-yonder.net>
References:  <540FF3C4.6010305@ish.com.au> <54100258.2000505@freebsd.org> <5410F0B4.9040808@ish.com.au> <A0A549F7A4094F519A3660697AB4983F@multiplay.co.uk> <543C1E7B.4090204@bluerosetech.com> <20141013191903.GR2161@over-yonder.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On 10/13/2014 12:19 PM, Matthew D. Fuller wrote:
> On Mon, Oct 13, 2014 at 11:48:27AM -0700 I heard the voice of
> Darren Pilgrim, and lo! it spake thus:
>>
>> If the default is 4k and (for the limited time they're still common)
>> you use true 512b disks, you can waste space.  Sure, but how much
>> space?
>
> The median file in /usr/ports is 408 bytes.  Over 90% of the files are
> under 2k, which means the wastage for them is over 100% (before
> counting what gain compression might get).  A little offhand mathery
> says it's about 78% extra overhead on the whole.
>
> And that includes the almost hundred megs (over 22% of the total size
> of the FS) for the INDEX.db, plus the ~90 megs of the flat INDEX files
> (another 20%).  If you pull those out, the overhead is 130%.

The worst case is about 140%.  But that's 140% of 388 MB, so we go from 
tiny to somewhat less tiny.  Huge slack is expected in small, populous 
datasets.  I'd much rather have the integrity assurance and performance 
gains, instead of saving a few hundred MB out of a multi-terabyte pool.



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