Btrfs improvement in Linux 3.4 kernel

When I saw release notes of 3.4 linux kernel, I saw something about btrfs file system improvement.

So I wanted to test by myself the differences made by the last update from Chris Mason.

I used a simple test, helped by the “dd “tool. The command that I used to measure treatment time of creation of a 2 Gio file (fill with 0) is :

time sh -c "dd if=/dev/zero of=./ddtest bs=2k count=1000000 && sync

To run the test, I used my laptop :

  • Atom N270 @ 1,60 Ghz ;
  • 1 GB of RAM ;
  • SSD Hard drive Intel X25-M G2 (80 GB) ;
  • Archlinux, custom kernel.

I launched three times the test, and computed the average. Here are the results, as a histogram :

We can see an about 6 seconds gain, or 17 % !

This is not negligible and it will undoubtedly help the rise of this file system.

Posted in Linux, Logiciels libres | Tagged , | Leave a comment