ZFS mirror install /mnt is empty
FreeBSD at ShaneWare.Biz
Tue May 14 04:11:02 UTC 2013
> On Mon, 13 May 2013 08:40-0400, Paul Kraus wrote:
>> On May 13, 2013, at 1:58 AM, Trond Endrestøl wrote:
>>> Due to advances in hard drive technology, for the worse I'm
>>> afraid, i.e. 4K disk blocks, I wouldn't bother enabling
>>> compression on any ZFS file systems. I might change my blog posts
>>> to reflect this stop gap.
> I guess it's due to my (mis)understanding that files shorter than
> 4KB stored on 4K drives never will be subject to compression. And as
> you state below, the degree of compression depends largely on the
> data at hand.
I don't want to start a big discussion but want to express an opinion
that others may think about.
When it comes to disk compression I think people overlook the fact that
it can impact on more than one level.
The size of disks these days means that compression doesn't make a big
difference to storage capacity for most people and 4k blocks mean little
change in final disk space used.
One thing people seem to miss is the fact that compressed files are
going to reduce the amount of data sent through the bottle neck that is
the wire between motherboard and drive. While a 3k file compressed to 1k
still uses a 4k block on disk it does (should) reduce the true data
transferred to disk. Given a 9.1 source tree using 865M, if it
compresses to 400M then it is going to reduce the time to read the
entire tree during compilation. This would impact a 32 thread build more
than a 4 thread build.
While it is said that compression adds little overhead, time wise, it is
going to take time to compress the data which is going to increase
latency. Going from a 6ms platter disk latency to a 0.2ms SSD latency
gives a noticeable improvement to responsiveness. Adding compression is
going to bring that back up - possibly higher than 6ms.
Together these two factors may level out the total time to read a file.
One question there is whether the zfs cache uses compressed file data
therefore keeping the latency while eliminating the bandwidth.
Personally I have compression turned off (desktop). My thought is that
the latency added for compression would negate the bandwidth savings.
For a file server I would consider turning it on as network overhead is
going to hide the latency.
More information about the freebsd-questions