Date: Tue, 29 Jan 2013 10:14:38 -0800 From: Matthew Ahrens <mahrens@delphix.com> To: Adam Nowacki <nowakpl@platinum.linux.pl> Cc: fs@freebsd.org Subject: Re: RAID-Z wasted space - asize roundups to nparity +1 Message-ID: <CAJjvXiHNZ-5R%2Bgg5T=d_jgm_NT3SKqmHfmsfD_4nPmfrxdgdfQ@mail.gmail.com> In-Reply-To: <5107A9B7.5030803@platinum.linux.pl> References: <5105252D.6060502@platinum.linux.pl> <CAJjvXiEQSqnKYP75crTkgVqLKSk92q9UTikFtdyPHmF6shJFbg@mail.gmail.com> <5107A9B7.5030803@platinum.linux.pl>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Jan 29, 2013 at 2:51 AM, Adam Nowacki <nowakpl@platinum.linux.pl>wrote: > I've also identified another problem with ZFS wasting disk space. When > compression is off allocations are always a multiple of record size. With > the default recordsize of 128KiB a 129KiB file would use 256KiB of disk > space (+ parity and other inefficiencies mentioned above). This may be > there to help with fragmentation but then it would be good to have a > setting to turn it off - even if by means of a no-op compression that would > count zeroes backwards and return short psize. > The most straightforward way to do this would be, as you alluded, to always compress the last block of the file, even if no compression has been selected. For maximum speed, we could use the already-implemented zle (zero-length encoding) algorithm. --matt
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJjvXiHNZ-5R%2Bgg5T=d_jgm_NT3SKqmHfmsfD_4nPmfrxdgdfQ>