Sunday, April 4, 2010

btrfs root!

My desktop now has btrfs as a root filesystem. I largely followed this guide. I used a lucid (daily build) live cd to get the job done. I didn't reinstall, so I had to resize partitions to get a separate /boot (parted doesn't do this anymore, but gparted does). My kernel is a custom kernel with btrfs as a module, so that was good. But the update-initramfs doesn't remake initrds for kernels not installed via package (ya ya, I should use a package), so one has to do that specially. Also, the root device as specified in grub's config needs to change for the new UUID. With those caveats, the guide worked perfectly.

Here are the bonnie numbers:


btrfs
Sequential Output (Char) 238
Sequential Output (Block) 48884
Sequential Output (Rewrite) 31956
Sequential Input (Char) 4596
Sequential Input (Block) 89337
Random Seeks 114


Again, the sequential output may or may not make sense, but it is consistent with the previous number. The sequential input number is way too high, as my disk shouldn't be able of reading more than 75MB/sec (so says hdparm). I'm starting to lose faith in bonnie...

I tried to rebalance, but I got an oops... So that's not working for now.

I'll play with this for a while before I consider putting it on my NAS. :)