2010/8/18 Miao Xie <miaox@xxxxxxxxxxxxxx>: > Hi, > > We did some performance test and found the create/delete files performance > of btrfs is very poor. > > The test is that we create 50000 files and measure the file-create time > first, and then delete these 50000 files and measure the file-delete time. > (The attached file is the reproduce program) > > The result is following: > (Unit: second) > Create file performance > BtrFS Ext4 > Total times: 2.462625 1.449550 > Average: 0.000049 0.000029 > > Delete file performance > BtrFS Ext4 > Total times: 3.312796 0.997946 > Average: 0.000066 0.000020 > > The results were measured on a x86_64 server with 4 cores and 2 SAS disks. > By debuging, we found the btrfs spent a lot of time on searching and > inserting/removing items in the ctree. > > Is anyone looking at this issue? > > Regards > Miao Xie Hi, i can confirm this issue with poor create and delete performance. For example with unpacking and deleting the linux kernel: Btrfs: [root@fc13 btrfs]# time tar xfj linux-2.6.36-rc1.tar.bz2 real 0m18.794s user 0m12.045s sys 0m8.241s [root@fc13 btrfs]# time rm -rf linux-2.6.36-rc1 real 0m2.156s user 0m0.028s sys 0m2.118s ext4: [root@fc13 ext4]# time tar xfj linux-2.6.36-rc1.tar.bz2 real 0m13.140s user 0m9.074s sys 0m6.327s [root@fc13 ext4]# time rm -rf linux-2.6.36-rc1 real 0m0.781s user 0m0.031s sys 0m0.735s In all of our benchmarks, ext4 is still faster than btrfs. Best regards, Morten -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
