Login
Immutable PageDiscussionInfoAttachments
ytoku/BenchBtrfs

MMA

環境

qemu-img create test.img 16GB

sudo fdisk /dev/vdb
sudo mkfs.btrfs /dev/vdb1
sudo mount /dev/vdb1 /mnt/
cd /mnt
time sudo bonnie++ -u root -n 256

素晴らしい。Linux 3.1.0で、ベンチマーク上ではbtrfsの書き込み速度が10倍に上がってext4と比較しても遜色がなくなっている。

主に Btrfs: improve write ahead log with sub transaction の成果だと思われる。

もっとも、空の状態のファイルシステムに対する結果なので、データが色々配置されていたりスナップショットを使っていたりするとパフォーマンスが大きく変わってくるかもしれない。


Linux 3.0.7 btrfs

Version  1.96       ------Sequential Output------ --Sequential Input- --Random-
Concurrency   1     -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks--
Machine        Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP  /sec %CP
mint             7G    54  98  7731   7  7941  10  1535  98 50859  22 124.7  40
Latency               331ms   16027ms   44848ms    8288us     707ms     372ms
Version  1.96       ------Sequential Create------ --------Random Create--------
mint                -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
              files  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP
                256   699  95  8618  99   387  95   713  92 388420  99   246  87
Latency               430ms     137ms    4755ms     219ms     105us    1579ms
1.96,1.96,mint,1,1319701680,7G,,54,98,7731,7,7941,10,1535,98,50859,22,124.7,40,256,,,,,699,95,8618,99,387,95,713,92,388420,99,246,87,331ms,16027ms,44848ms,8288us,707ms,372ms,430ms,137ms,4755ms,219ms,105us,1579ms

real    77m38.525s
user    0m9.121s
sys     42m46.164s

Linux 3.0.7 ext4

Version  1.96       ------Sequential Output------ --Sequential Input- --Random-
Concurrency   1     -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks--
Machine        Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP  /sec %CP
mint             7G    82  99 54245  23 40341  27   186  99 58148  21 130.5 140
Latency               141ms    1644ms     329ms     104ms     179ms    2279ms
Version  1.96       ------Sequential Create------ --------Random Create--------
mint                -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
              files  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP
                256 27097  74 234987  99   976  63 29085  69 315494  97   714  53
Latency               366ms    1561us   16618ms     388ms     936us   21345ms
1.96,1.96,mint,1,1319748537,7G,,82,99,54245,23,40341,27,186,99,58148,21,130.5,140,256,,,,,27097,74,234987,99,976,63,29085,69,315494,97,714,53,141ms,1644ms,329ms,104ms,179ms,2279ms,366ms,1561us,16618ms,388ms,936us,21345ms

real    20m20.145s
user    0m21.861s
sys     9m2.079s

Linux 3.1.0 btrfs

Version  1.96       ------Sequential Output------ --Sequential Input- --Random-
Concurrency   1     -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks--
Machine        Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP  /sec %CP
mint             7G   258  98 72655  27 21795  22    97  99 59767  22 188.4  23
Latency             32012us     637ms     343ms   97858us     354ms     537ms
Version  1.96       ------Sequential Create------ --------Random Create--------
mint                -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
              files  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP
                256 20161  83 211081  99 19109  93 20393  78 294043  99  1800  29
Latency               141ms    2190us    7598us     171ms    1062us    8776ms
1.96,1.96,mint,1,1319753366,7G,,258,98,72655,27,21795,22,97,99,59767,22,188.4,23,256,,,,,20161,83,211081,99,19109,93,20393,78,294043,99,1800,29,32012us,637ms,343ms,97858us,354ms,537ms,141ms,2190us,7598us,171ms,1062us,8776ms

real    14m0.047s
user    0m8.997s
sys     4m7.404s

Linux 3.1.0 ext4

Version  1.96       ------Sequential Output------ --Sequential Input- --Random-
Concurrency   1     -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks--
Machine        Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP  /sec %CP
mint             7G    95  99 56967  24 40147  27   116  99 51247  18 134.2 107
Latency               127ms    1651ms    1641ms   82880us     103ms    1247ms
Version  1.96       ------Sequential Create------ --------Random Create--------
mint                -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
              files  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP
                256 29586  66 309153  99  1266  46 27698  71 395298  98   993  29
Latency               394ms     972us   16656ms     409ms      39us   24818ms
1.96,1.96,mint,1,1319746493,7G,,95,99,56967,24,40147,27,116,99,51247,18,134.2,107,256,,,,,29586,66,309153,99,1266,46,27698,71,395298,98,993,29,127ms,1651ms,1641ms,82880us,103ms,1247ms,394ms,972us,16656ms,409ms,39us,24818ms

real    17m49.159s
user    0m14.550s
sys     5m53.120s

Linux 3.1.0 ext3

Version  1.96       ------Sequential Output------ --Sequential Input- --Random-
Concurrency   1     -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks--
Machine        Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP  /sec %CP
mint             7G    82  99 43464  30 39372  28   335  99 123148  43 128.5  97
Latency               170ms    1000ms     828ms   91075us     555ms    1084ms
Version  1.96       ------Sequential Create------ --------Random Create--------
mint                -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
              files  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP
                256 28702  65 250358  99  1048  70 31204  61 300509  96   746  46
Latency               513ms    1378us   22871ms     510ms      69us   24868ms
1.96,1.96,mint,1,1319749986,7G,,82,99,43464,30,39372,28,335,99,123148,43,128.5,97,256,,,,,28702,65,250358,99,1048,70,31204,61,300509,96,746,46,170ms,1000ms,828ms,91075us,555ms,1084ms,513ms,1378us,22871ms,510ms,69us,24868ms

real    19m9.862s
user    0m21.881s
sys     8m42.524s

ytoku/BenchBtrfs (last edited 2011-10-29 02:52:32 by ytoku)