Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Jan 2013 16:37:07 +0100
From:      Adam Nowacki <nowakpl@platinum.linux.pl>
To:        freebsd-hackers@freebsd.org
Subject:   Re: ZFS regimen: scrub, scrub, scrub and scrub again.
Message-ID:  <51015523.2060701@platinum.linux.pl>
In-Reply-To: <CACpH0McdJOrCgNWCsRwqnO_AvzzzDCx5gQxJL1nvF%2B8=ysqwRg@mail.gmail.com>
References:  <CACpH0Mf6sNb8JOsTzC%2BWSfQRB62%2BZn7VtzEnihEKmEV2aO2p%2Bw@mail.gmail.com> <alpine.BSF.2.00.1301211201570.9447@wojtek.tensor.gdynia.pl> <20130122073641.GH30633@server.rulingia.com> <alpine.BSF.2.00.1301232121430.1659@wojtek.tensor.gdynia.pl> <51013345.8010701@platinum.linux.pl> <CACpH0McdJOrCgNWCsRwqnO_AvzzzDCx5gQxJL1nvF%2B8=ysqwRg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2013-01-24 15:45, Zaphod Beeblebrox wrote:
> Ok... so my question then would be... what of the small files.  If I write
> several small files at once, does the transaction use a record, or does
> each file need to use a record?  Additionally, if small files use
> sub-records, when you delete that file, does the sub-record get moved or
> just wasted (until the record is completely free)?

Each file is a fully self-contained object (together with full parity) 
all the way to the physical storage. A 1 byte file on RAID-Z2 pool will 
always use 3 disks, 3 sectors total for data alone. You can use du to 
verify - it reports physical size together with parity. Metadata like 
directory entry or file attributes is stored separately and shared with 
other files. For small files there may be a lot of "wasted" space.




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