Re: BTRFS: Unbelievably slow with kvm/qemu

From: K. Richard Pixley
Date: Tue Aug 31 2010 - 18:01:20 EST


On 20100831 14:46, Mike Fedyk wrote:
> There is little reason not to use duplicate metadata. Only small
> files (less than 2kb) get stored in the tree, so there should be no
> worries about images being duplicated without data duplication set at
> mkfs time.

My benchmarks show that for my kinds of data, btrfs is somewhat slower than ext4, (which is slightly slower than ext3 which is somewhat slower than ext2), when using the defaults, (ie, duplicate metadata).

It's a hair faster than ext2, (the fastest of the ext family), when using singleton metadata. And ext2 isn't even crash resistant while btrfs has snapshots.

I'm using hardware raid for striping speed. (Tried btrfs striping, it was close, but not as fast on my hardware). I want speed, speed, speed. My data is only vaguely important, (continuous builders), but speed is everything.

While the reason to use singleton metadata may be "little", it dominates my application. If I were forced to use duplicate metadata then I'd still be arguing with my coworkers about whether the speed costs were worth it to buy snapshot functionality. But the fact that btrfs is faster AND provides snapshots, (and less metadata overhead and bigger file systems and etc), makes for an easy sale.

Note that nilfs2 has similar performance, but somewhat different snapshot characteristics that aren't as useful in my current application.

--rich
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/