ようこそゲストさん

無能日記

メッセージ欄

2012年3月の日記

一覧で表示する

2012/03/26(月) さくら クラウド メモ

はてブ 2012/03/26 23:34 未分類poti
さくら クラウド メモ


====
cpu 4core
memory 16G
HDD 20G + 250G x 2
====

+  LVM stripe + ext4
 # mkdir /storage
 # apt-get install lvm2
 # fdisk /dev/sdb
 > Disk /dev/sdb: 268.4 GB, 268435456000 bytes
 > 255 heads, 63 sectors/track, 32635 cylinders
 > Units = cylinders of 16065 * 512 = 8225280 bytes
 > Sector size (logical/physical): 512 bytes / 512 bytes
 > I/O size (minimum/optimal): 512 bytes / 512 bytes
 > Disk identifier: 0x9201ae37
 >
 >   Device Boot      Start         End      Blocks   Id  System
 > /dev/sdb1               1       32635   262140606   8e  Linux LVM 
 # fdisk /dev/sdc
 > Disk /dev/sdc: 268.4 GB, 268435456000 bytes
 > 255 heads, 63 sectors/track, 32635 cylinders
 > Units = cylinders of 16065 * 512 = 8225280 bytes
 > Sector size (logical/physical): 512 bytes / 512 bytes
 > I/O size (minimum/optimal): 512 bytes / 512 bytes
 > Disk identifier: 0x64686894
 > 
 >    Device Boot      Start         End      Blocks   Id  System
 > /dev/sdc1               1       32635   262140606   8e  Linux LVM
 # pvcreate  /dev/sdb1 /dev/sdc1
 # vgcreate volume1   /dev/sdb1 /dev/sdc1
 # vgs 
 > VG      #PV #LV #SN Attr   VSize   VFree
 > volume1   2   1   0 wz--n- 499.99g    0
 # lvcreate -i2 -I4 -l100%VG -ndisk250X2 volume1
 # mkfs.ext4 /dev/volume1/disk250X2
 # mount /dev/volume1/disk250X2  /storage/
 # vi /etc/fstab
 > + # storage
 > + /dev/volume1/disk250X2  /storage/       ext4    defaults        0       0

----
# bonnie++ -n 256:4096:512:16 -d /storage -s 512 -r 256 -u root
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
sacloudt2      512M   828  97 29048   4 29773   3  5498 100 +++++ +++  9981  49
Latency             15636us     251us      82us    2185us      77us   13686us
Version  1.96       ------Sequential Create------ --------Random Create--------
sacloudt2           -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
files:max:min        /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP
    256:4096:512/16  5412  11 65586  45 26483  44  5496  11  5496   4  2958   6
Latency              1185ms    1096ms    1381ms    1091ms    3790ms    4005ms
1.96,1.96,sacloudt2,1,1332740575,512M,,828,97,29048,4,29773,3,5498,100,+++++,+++,9981,49,256,4096,512,,16,5412,11,65586,45,26483,44,5496,11,5496,4,2958,6,15636us,251us,82us,2185us,77us,13686us,1185ms,1096ms,1381ms,1091ms,3790ms,4005ms
----
# bonnie++ -n 256:4096:512:16 -d /storage -s 1024 -r 512 -u root
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
sacloudt2        1G   835  97 29217   5 29329   3  5606  98 +++++ +++ 11635  49
Latency             13954us     513us   81861us    2407us     200us   14164us
Version  1.96       ------Sequential Create------ --------Random Create--------
sacloudt2           -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
files:max:min        /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP
    256:4096:512/16  5406  10 61953  46 25891  45  5433  10  5525   4  2914   6
Latency              1086ms    1178ms    1487ms    1142ms    3763ms    4574ms
1.96,1.96,sacloudt2,1,1332740975,1G,,835,97,29217,5,29329,3,5606,98,+++++,+++,11635,49,256,4096,512,,16,5406,10,61953,46,25891,45,5433,10,5525,4,2914,6,13954us,513us,81861us,2407us,200us,14164us,1086ms,1178ms,1487ms,1142ms,3763ms,4574ms
----
# bonnie++ -n 256:4096:512:16 -d /storage -s 2048 -r 1024 -u root
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
sacloudt2        2G   805  97 29306   4 29570   4  5138  98 +++++ +++ 10092  39
Latency             10714us    1897us    1106us    3735us      96us    8141us
Version  1.96       ------Sequential Create------ --------Random Create--------
sacloudt2           -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
files:max:min        /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP
    256:4096:512/16  5424  11 63476  45 26204  45  5406  11  5644   5  2931   6
Latency              1081ms    1164ms    1396ms    1121ms    2832ms    4450ms
1.96,1.96,sacloudt2,1,1332741550,2G,,805,97,29306,4,29570,4,5138,98,+++++,+++,10092,39,256,4096,512,,16,5424,11,63476,45,26204,45,5406,11,5644,5,2931,6,10714us,1897us,1106us,3735us,96us,8141us,1081ms,1164ms,1396ms,1121ms,2832ms,4450ms
----
# iozone -s 512M -a -f /storage/AAAA -cez
                                                            random  random    bkwd   record   stride
              KB  reclen   write rewrite    read    reread    read   write    read  rewrite     read   fwrite frewrite   fread  freread
          524288       4   28826   29148  4405449  4591238 2921995   29536 3935064  4377526  3572343    28810    29361 5588173  5632530
          524288       8   29104   29436  4518558  4619847 3475283   29177 4111639  5036102  3061227    29184    29435 4413530  4539246
          524288      16   29328   29482  4345596  4798052 4061481   29540 3909445  5545627  5401349    29295    29465 6251419  6258358
          524288      32   29242   29472  6255527  6215919 5714497   29598 6175508  5619618  5804855    29250    29513 5944899  6329239
          524288      64   29387   29426  6204957  6110641 5734869   29347 4447306  6122926  4395112    29421    29491 4389068  4431443
          524288     128   29342   29652  4105429  4207796 4194505   29672 4378851  5846338  4522489    29405    29516 6012205  6171141
          524288     256   29485   29661  5460646  5724792 5586384   29599 5534322  4718348  5632357    29349    29524 4226462  4342936
          524288     512   29476   29436  4174234  4305345 4284166   29612 5534559  4305134  5662772    29404    29459 5750797  5849869
          524288    1024   29448   29594  5444261  5907528 5727356   29548 4383381  3686643  4365395    28871    29550 5768129  5811667
          524288    2048   29470   29625  5912134  6129086 6104602   29644 4548898  3125526  4521010    29204    29334 4347117  4388779
          524288    4096   29193   29653  5118843  5438552 5517658   29617 5208390  1919230  5214615    29147    29519 5386438  5207058
          524288    8192   29105   29644  2858603  2981395 2990001   29246 3904205  1160905  3814584    29160    29129 3843983  4052850
          524288   16384   29426   29221  2732901  2804008 2818964   29616 3570012   614308  3793193    29248    29238 2725983  2733343
----
# iozone -s 1G -a -f /storage/AAAA -cez
                                                            random  random    bkwd   record   stride
              KB  reclen   write rewrite    read    reread    read   write    read  rewrite     read   fwrite frewrite   fread  freread
         1048576       4   29143   29526  5997479  6058684 3256951   29493 3874573  4772523  3767870    29214    29600 4303827  4318771
         1048576       8   29167   29526  6442742  6619129 4434910   29550 4272910  5382778  3830024    29081    29529 4964406  5031964
         1048576      16   29359   29793  6155894  6193997 4910376   29678 6111047  5566578  5629032    29219    29941 4461019  4346734
         1048576      32   29305   29594  4872745  4951813 4638258   29646 4831882  5970983  4724445    29271    29697 4626022  4639652
         1048576      64   29213   29669  6297860  6699918 6033127   29441 4792394  6279310  4691050    29248    29617 4479908  4611374
         1048576     128   29210   29602  5891005  6130418 5492890   29692 5548515  5573053  5878658    29331    29621 4542057  4634958
         1048576     256   29285   29506  4251165  4481780 4370760   29600 5656783  4711852  5639961    29333    29523 4410135  4583357
         1048576     512   29372   30031  5587333  5711475 5684538   29686 5718701  4809300  5802472    29329    29429 4515305  4593500
         1048576    1024   29262   29664  5675273  6081699 5907233   29700 4505854  4290514  4447112    29275    29740 4603501  4699983
         1048576    2048   29407   29669  5688950  5831508 5922857   29724 4532149  3787156  4532578    29120    29218 5983583  6012722
         1048576    4096   29352   29557  5273754  5575335 5591155   29701 5228053  2884156  5644152    29222    29526 5633178  5453069
         1048576    8192   29209   29438  2900632  2936200 2996769   29500 3920058  1503606  3871639    28972    29186 2969536  2898419
         1048576   16384   29202   29471  2664578  2721983 2793490   29493 3735706  1120009  3659580    29101    29367 2701680  2692647
----
# iozone -s 2G -a -f /storage/AAAA -cez
                                                            random  random    bkwd   record   stride
              KB  reclen   write rewrite    read    reread    read   write    read  rewrite     read   fwrite frewrite   fread  freread
         2097152       4   28988   29519  4116421  4218764 2579274   29202 5016077  4210843  4402072    29205    29668 4410367  4577243
         2097152       8   29325   29624  4684195  4978886 3532099   29488 6143231  5150278  4916820    29286    29676 4398269  4518886
         2097152      16   29355   29640  6407271  6644524 5189570   29589 4725378  5718161  4377529    29255    29627 4789351  4579314
         2097152      32   29330   29734  5009978  5075575 4430792   29640 6304720  5913451  5894004    29325    29696 6386124  6517387
         2097152      64   29348   30002  4664660  4800027 4509721   28638 4568490  6358380  4500761    29286    29534 4469080  4462236
         2097152     128   29370   29680  4508133  4586425 4307026   29735 4510148  5696147  4479178    29322    29692 4471759  4562646
         2097152     256   29399   29627  4220962  4435084 4240679   29669 5681089  5063015  5742632    29349    29531 5822397  5891422
         2097152     512   29377   29568  5623144  5891655 5716459   29730 5873060  4671882  5811683    29357    29663 5982260  5942535
         2097152    1024   29240   29664  5744992  5921397 5867078   29751 5823820  4838300  5972089    29398    29559 5835147  5915018
         2097152    2048   29379   29774  5892914  5994429 5921648   29678 5635974  4193944  5890381    29275    29541 5840509  5869901
         2097152    4096   29349   29737  4101534  4264750 4177833   29711 4249712  2979349  4141000    29084    29497 4375539  4256301
         2097152    8192   29194   29658  2900215  2973903 3006299   29557 3034109  1857848  2882956    29099    29588 3873564  3900872
         2097152   16384   29268   29606  2945268  2865177 2819022   29538 2758082  1339213  2865949    29091    29415 2773243  2810110
-----

+ LVM normal + ext4
 # umount /storage
 # lvremove volume1
 # lvcreate -l100%VG -ndisk250X2 volume1
 # mkfs.ext4 /dev/volume1/disk250X2
 # mount /dev/volume1/disk250X2 /storage/
 
----
# bonnie++ -n 256:4096:512:16 -d /storage -s 512 -r 256 -u root
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
sacloudt2      512M   868  96 24884   6 28831   2  5646  99 +++++ +++  9333  42
Latency             10816us   18684us    7823us    1589us     342us     370us
Version  1.96       ------Sequential Create------ --------Random Create--------
sacloudt2           -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
files:max:min        /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP
    256:4096:512/16  5184  12 65606  46 23044  40  5457  10  3913   3  1918   4
Latency              1128ms    1079ms    2026ms    1105ms    3251ms    4924ms
1.96,1.96,sacloudt2,1,1332764320,512M,,868,96,24884,6,28831,2,5646,99,+++++,+++,9333,42,256,4096,512,,16,5184,12,65606,46,23044,40,5457,10,3913,3,1918,4,10816us,18684us,7823us,1589us,342us,370us,1128ms,1079ms,2026ms,1105ms,3251ms,4924ms
----
# bonnie++ -n 256:4096:512:16 -d /storage -s 1024 -r 512 -u root
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
sacloudt2        1G   843  97 25357   4 28884   3  5667  99 +++++ +++ 11009  33
Latency              9903us      97us     166ms    2345us     981us   11329us
Version  1.96       ------Sequential Create------ --------Random Create--------
sacloudt2           -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
files:max:min        /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP
    256:4096:512/16  5132  12 63317  45 23215  40  5383  11  3863   3  1867   4
Latency              1132ms    1177ms    2026ms    1103ms    4093ms    4987ms
1.96,1.96,sacloudt2,1,1332760904,1G,,843,97,25357,4,28884,3,5667,99,+++++,+++,11009,33,256,4096,512,,16,5132,12,63317,45,23215,40,5383,11,3863,3,1867,4,9903us,97us,166ms,2345us,981us,11329us,1132ms,1177ms,2026ms,1103ms,4093ms,4987ms
----
# bonnie++ -n 256:4096:512:16 -d /storage -s 2048 -r 1024 -u root
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
sacloudt2        2G   839  96 24606   4 28666   3  5311  98 +++++ +++  6689  56
Latency              9912us     115ms     102ms    1986us     435us   12506us
Version  1.96       ------Sequential Create------ --------Random Create--------
sacloudt2           -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
files:max:min        /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP
    256:4096:512/16  5185  10 64685  45 22964  38  5371  10  3880   3  1964   4
Latency              1118ms    1102ms    2136ms    1102ms    5387ms    6121ms
1.96,1.96,sacloudt2,1,1332761509,2G,,839,96,24606,4,28666,3,5311,98,+++++,+++,6689,56,256,4096,512,,16,5185,10,64685,45,22964,38,5371,10,3880,3,1964,4,9912us,115ms,102ms,1986us,435us,12506us,1118ms,1102ms,2136ms,1102ms,5387ms,6121ms
----
# iozone -s 512M -a -f /storage/AAAA -cez
                                                            random  random    bkwd   record   stride                                   
              KB  reclen   write rewrite    read    reread    read   write    read  rewrite     read   fwrite frewrite   fread  freread
          524288       4   25547   28910  3726312  3992657 2790788   28682 3230381  4715374  3081311    25337    28840 4302161  4371573
          524288       8   26692   29231  3935979  4114870 3467053   29126 3909417  5420454  3637275    26024    29315 3861669  3899151
          524288      16   26350   29164  3642028  3921877 3560071   29169 4690351  5459914  4610181    27795    28853 4551309  4430354
          524288      32   26338   29273  4535482  4711252 4465631   29118 3554449  5546676  3711721    26197    29025 3776749  3829964
          524288      64   25929   29030  3797149  3717167 3729036   29182 3894317  5671169  3849205    26186    29003 4037462  4108129
          524288     128   25478   28927  4426020  4590280 4376324   29184 4527843  5607896  4498821    26575    29058 4598862  4526911
          524288     256   25547   29063  4401789  4568242 4528589   29306 3876981  2891283  3837001    26258    29063 3717506  3848039
          524288     512   26163   28775  3697143  3797752 3792342   28911 3634930  3882718  3582108    25873    29002 4746836  4681683
          524288    1024   26451   29614  4465368  4675422 4737479   28971 4641318  3578831  4602606    25753    29063 3717430  4594106
          524288    2048   26634   29076  4402891  4569476 4520034   28820 3671661  2825375  3587180    25755    28669 3680713  3786726
          524288    4096   26219   28939  3349658  3457334 3470539   28899 4030099  1938856  4116388    25003    28967 4187133  4301883
          524288    8192   25223   28704  2576948  2633394 2632577   29096 2641330   929501  2635436    26043    28668 2546929  2561913
          524288   16384   24759   28660  2298752  2393026 2423946   28960 2912695   590801  3027294    25747    28600 2483997  2384535
----
# iozone -s 1G -a -f /storage/AAAA -cez
                                                            random  random    bkwd   record   stride                                   
              KB  reclen   write rewrite    read    reread    read   write    read  rewrite     read   fwrite frewrite   fread  freread
         1048576       4   24986   28992  3829073  4040800 2616383   28931 3727569  4575379  3123626    23732    28924 4315822  4351805
         1048576       8   24606   29030  5064144  5135044 4063619   29074 4718423  5390781  4584541    21661    28769 5251519  4923101
         1048576      16   24310   29152  4073612  4167335 3652453   28899 5169575  5442198  4802997    25244    29060 4882341  4956238
         1048576      32   25789   28998  4124111  4129978 3769685   29112 3922257  6001710  4145042    27806    29313 5194388  5195524
         1048576      64   25622   29093  4654112  4840199 4675694   29207 4128722  5825166  4055260    19919    28899 5017011  5058058
         1048576     128   22988   29032  4833502  5053890 4886686   29031 4110370  6014786  4153497    18927    29042 5061015  5008600
         1048576     256   19955   29167  4189809  4279201 4224078   29036 4644052  5112237  4485633    26278    29153 3914643  3895779
         1048576     512   25903   28905  3860523  3950854 3932273   29046 4518325  4415745  4534069    25756    29344 4503708  4607745
         1048576    1024   25895   29411  4680327  4926663 4890610   29128 3978826  4042906  4040944    25838    29231 4854046  4923608
         1048576    2048   25311   29184  3870454  3876119 3861191   29081 4033743  3361542  3866031    25213    29389 4829564  4859425
         1048576    4096   25834   28938  4296314  4399367 4335631   28987 4183345  2562646  4422672    25504    28827 3743738  3779754
         1048576    8192   25911   29235  3316432  3350790 3341478   28985 3212865  1386589  3102589    25216    28760 3191039  3153868
         1048576   16384   25456   29212  2784508  2994527 2993836   28942 2926833   990846  2936439    25279    28701 2641788  2535217
----
# iozone -s 2G -a -f /storage/AAAA -cez
                                                            random  random    bkwd   record   stride                                   
              KB  reclen   write rewrite    read    reread    read   write    read  rewrite     read   fwrite frewrite   fread  freread
         2097152       4   27641   28995  4799270  4719306 2884970   28844 4239189  4437664  3733388    24758    29095 4607677  4444889
         2097152       8   27382   29353  4711790  4756859 3316132   29153 4524102  5790950  3972601    27263    29167 5067469  5094194
         2097152      16   28125   29266  4963731  5078315 4115716   29185 4550992  5461560  4182768    28036    29208 4844178  4915933
         2097152      32   28169   29204  4725200  4802690 4339406   29274 4438040  5395214  4402671    28157    29449 5139007  5298902
         2097152      64   28257   29357  5040129  5178190 4720869   29202 4745738  5358874  5028597    28225    29198 5001577  5008352
         2097152     128   28181   29031  4629167  4699089 4531924   29059 4738983  6150693  4753193    27270    29242 4682462  4720593
         2097152     256   27947   29314  4520904  4616032 4460668   29280 4745620  5088432  4770493    27911    29149 4949138  4924429
         2097152     512   28021   29141  4771655  4813679 4859725   29010 4836683  4850196  4764997    28177    29435 4656304  4796316
         2097152    1024   27772   29355  4466455  4508124 4455209   29134 4820662  4506110  4802622    27850    29493 4654040  4622759
         2097152    2048   28080   29238  4801217  4865602 4824641   29384 4733442  4047767  4800742    28166    28946 4673788  4769906
         2097152    4096   27988   29116  4501998  4672455 4547350   29054 4497612  3144783  4488430    27967    28977 4358841  4438763
         2097152    8192   28058   29391  3037259  3089562 3154693   29186 3036873  1556025  3316189    28046    28925 3115875  3059963
         2097152   16384   28090   29282  3108199  3151602 3147691   28997 3066823  1310407  3039200    27967    29303 2855867  2846590
----
 
+ btrfs stripe
 # umount /storage
 # lvremove volume1
 # fdisk /dev/sdb
 > Disk /dev/sdb: 268.4 GB, 268435456000 bytes
 > 255 heads, 63 sectors/track, 32635 cylinders
 > Units = cylinders of 16065 * 512 = 8225280 bytes
 > Sector size (logical/physical): 512 bytes / 512 bytes
 > I/O size (minimum/optimal): 512 bytes / 512 bytes
 > Disk identifier: 0x9201ae37
 >
 >   Device Boot      Start         End      Blocks   Id  System
 # fdisk /dev/sdc
 > Disk /dev/sdc: 268.4 GB, 268435456000 bytes
 > 255 heads, 63 sectors/track, 32635 cylinders
 > Units = cylinders of 16065 * 512 = 8225280 bytes
 > Sector size (logical/physical): 512 bytes / 512 bytes
 > I/O size (minimum/optimal): 512 bytes / 512 bytes
 > Disk identifier: 0x64686894
 >
 >  Device Boot      Start         End      Blocks   Id  System
 # apt-get install btrfs-tools 
 # mkfs.btrfs -d raid0 -m raid0 /dev/sdb /dev/sdc
 # mount /dev/sdb /storage 

---
# bonnie++ -n 256:4096:512:16 -d /storage -s 512 -r 256 -u root
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
sacloudt2      512M   442  98 28005   3 27919   4  5239  97 +++++ +++ +++++ +++
Latency             18501us    1708us     644us    2520us    1080us    1965us
Version  1.96       ------Sequential Create------ --------Random Create--------
sacloudt2           -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
files:max:min        /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP
    256:4096:512/16  5004  17 31496  99 13891  99  4913  18 25728  99  3994  38
Latency              2945ms     844us    1832us    3241ms    1632us   36734us
1.96,1.96,sacloudt2,1,1332779038,512M,,442,98,28005,3,27919,4,5239,97,+++++,+++,+++++,+++,256,4096,512,,16,5004,17,31496,99,13891,99,4913,18,25728,99,3994,38,18501us,1708us,644us,2520us,1080us,1965us,2945ms,844us,1832us,3241ms,1632us,36734us
----
# bonnie++ -n 256:4096:512:16 -d /storage -s 1024 -r 512 -u root
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
sacloudt2        1G   436  98 27935   4 27444   4  4578  92 +++++ +++ 12493 208
Latency             20123us    1312us     494us    1903us     131us      94us
Version  1.96       ------Sequential Create------ --------Random Create--------
sacloudt2           -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
files:max:min        /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP
    256:4096:512/16  4849  19 29402  99 13738  99  4854  18 25550  99  4147  41
Latency              3207ms     586us    1564us    3219ms    1564us    9999us
1.96,1.96,sacloudt2,1,1332779312,1G,,436,98,27935,4,27444,4,4578,92,+++++,+++,12493,208,256,4096,512,,16,4849,19,29402,99,13738,99,4854,18,25550,99,4147,41,20123us,1312us,494us,1903us,131us,94us,3207ms,586us,1564us,3219ms,1564us,9999us
----
# bonnie++ -n 256:4096:512:16 -d /storage -s 2048 -r 1024 -u root
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
sacloudt2        2G   422  98 28151   4 27983   5  4550  90 4150286  98  7366 226
Latency             38010us    2753us   37665us    1706us     216us    5908us
Version  1.96       ------Sequential Create------ --------Random Create--------
sacloudt2           -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
files:max:min        /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP
    256:4096:512/16  4764  19 27867  99 13493  99  4803  19 23626  99  3747  39
Latency              3295ms    1454us    1585us    3152ms    1741us   16034us
1.96,1.96,sacloudt2,1,1332779602,2G,,422,98,28151,4,27983,5,4550,90,4150286,98,7366,226,256,4096,512,,16,4764,19,27867,99,13493,99,4803,19,23626,99,3747,39,38010us,2753us,37665us,1706us,216us,5908us,3295ms,1454us,1585us,3152ms,1741us,16034us
----
# iozone -s 512M -a -f /storage/AAAA -cez
                                                            random  random    bkwd   record   stride                                   
              KB  reclen   write rewrite    read    reread    read   write    read  rewrite     read   fwrite frewrite   fread  freread
          524288       4   28015   27776  3495041  4369975 2626010   26869 3340052  1398023  2951491    28267    27649 4626125  4660539
          524288       8   27799   28318  3618595  4809101 3400734   27650 1954656  2239657  3174866    28614    27962 5429770  5508439
          524288      16   28136   28037  3949197  5705364 4668424   27411 3800706  2928704  3445908    28168    27409 5201270  5216792
          524288      32   28080   28262  2262377  5301089 4687841   28009 4103950  3673722  3865002    28477    27933 5700705  5739959
          524288      64   28197   28522  3742478  4900114 4538187   28052 3763138  3975040  3546320    28618    28258 4616956  4726634
          524288     128   28196   28281  4033108  5568475 5336971   27838 4056326  3748123  4019352    28409    28156 5024319  5100227
          524288     256   28278   28226  3965749  5067401 5047534   28029 3384582  3475624  3439710    28578    27615 4567682  4601316
          524288     512   28307   28395  3555483  4784169 4684276   28102 3844797  3457633  3974860    28766    28047 4636357  4714868
          524288    1024   28067   28238  4086736  5399293 5472401   27876 3880765  3223392  3941214    28660    27884 4728891  4875560
          524288    2048   27982   28226  3874863  5226364 5206750   27966 3815663  2714576  3812534    28676    27856 4530390  4760235
          524288    4096   28104   28299  3219296  4031991 4083496   27967 3638159  1609934  3750565    28611    27925 4952556  4844199
          524288    8192   28058   28419  2869728  3511735 3509997   28287 2674570   908765  3009380    28566    27569 3072442  3069800
          524288   16384   27981   28375  2798619  3399057 3413160   27978 2823975   659466  2707343    28597    27747 3478554  3345423
----
# iozone -s 1024M -a -f /storage/AAAA -cez
                                                            random  random    bkwd   record   stride                                   
              KB  reclen   write rewrite    read    reread    read   write    read  rewrite     read   fwrite frewrite   fread  freread
         1048576       4   27875   27874  3374459  4195409 2406281   26812 3579064  1414120  3004128    28219    27988 5178383  4878593
         1048576       8   27870   28067  4250943  5391164 3842347   27627 3675216  2308607  3171333    28369    28173 5301145  5362602
         1048576      16   27978   28215  4048320  5860094 4781510   27852 3961762  2954759  3651477    28041    28231 5678871  6021975
         1048576      32   27821   28278  3668708  5070777 4627940   27903 3684629  3715034  3540644    28536    28541 5863828  5450798
         1048576      64   27875   28315  4004413  5429098 5126162   27950 3951819  4130087  4025569    28501    28384 6035520  5836251
         1048576     128   28141   28375  3733565  5061819 4733567   28121 3911457  3980684  3581594    28599    28524 5326182  4757778
         1048576     256   27918   28009  3526379  4692792 4563312   28021 3939307  3969231  3854902    28396    28468 5182630  5334387
         1048576     512   28053   27764  3839546  5122603 5147340   28014 3586676  3799382  3602538    28360    28515 5177999  5281277
         1048576    1024   27874   28235  3987675  5359557 5336594   28044 3596272  3692427  3620560    28533    28380 4854137  4930159
         1048576    2048   27861   28281  3620709  4952750 4941681   27919 2908703  3282854  3804163    28251    28379 4845388  4863342
         1048576    4096   28015   27877  3631241  4626387 4760822   27916 3449670  2506983  3734269    28536    28533 4316745  4266059
         1048576    8192   27982   28175  2642286  3238465 3103681   28042 2852313  1541427  2981197    28465    28209 3240035  3042763
         1048576   16384   28018   28254  2872882  3378427 3389798   28119 2544444  1001097  2573236    28321    28356 3545648  3564560
----
# iozone -s 2048M -a -f /storage/AAAA -cez
                                                            random  random    bkwd   record   stride                                   
              KB  reclen   write rewrite    read    reread    read   write    read  rewrite     read   fwrite frewrite   fread  freread
         2097152       4   27966   28080  3844465  5090385 2657141   25483  354743   274910   349333    28653    29014 4529936  4609510
         2097152       8   28515   28567  3912663  5114793 3539078   27698 4026123  1528960  3452658    28916    29132 5077799  4948517
         2097152      16   28519   28728  4123877  5280690 4211520   28161 4316211  2332320  3905419    28842    29216 5085817  5434629
         2097152      32   28492   28766  3929193  5465646 4895506   28367 4192710  3343646  4105236    29186    29165 5469037  5040478
         2097152      64   28634   28663  4185096  5654026 5122639   28319 4167781  3864928  3978599    29162    29305 5259645  5818954
         2097152     128   28493   28739  3777073  5062774 4734769   28368 4142572  4066880  3924017    29186    29342 4974479  5355288
         2097152     256   28458   28743   915934  4931225 4919265   28485 3955576  3863689  3819851    29321    29366 4876348  4846698
         2097152     512   28690   28675  3811624  5018081 5003788   28422 3920774  3964250  3684061    29161    29210 4889117  4901696
         2097152    1024   28571   28718  3839110  5006701 5043157   28551 3789071  4036360  3828933    29240    29259 5000889  4979796
         2097152    2048   28781   28796  3740519  5068375 5111939   28293 3866887  3876478  3902163    29217    29308 4811238  5099468
         2097152    4096   28536   28661  3576706  4589205 4577443   28368 3622298  3190763  3687825    29082    29074 4365647  4685901
         2097152    8192   28396   28407  2822979  3448980 3479629   27964 2811866  1903026  2797843    29127    28989 3491116  3452806
         2097152   16384   28498   28702  2647119  3206060 3212243   28263 2634468  1409248  2698342    29100    29190 3209810  3218450
----

+ btrfs normal
 # umount /storage
 # lvremove volume1
 # fdisk /dev/sdb
 > Disk /dev/sdb: 268.4 GB, 268435456000 bytes
 > 255 heads, 63 sectors/track, 32635 cylinders
 > Units = cylinders of 16065 * 512 = 8225280 bytes
 > Sector size (logical/physical): 512 bytes / 512 bytes
 > I/O size (minimum/optimal): 512 bytes / 512 bytes
 > Disk identifier: 0x9201ae37
 >
 >   Device Boot      Start         End      Blocks   Id  System
 # fdisk /dev/sdc
 > Disk /dev/sdc: 268.4 GB, 268435456000 bytes
 > 255 heads, 63 sectors/track, 32635 cylinders
 > Units = cylinders of 16065 * 512 = 8225280 bytes
 > Sector size (logical/physical): 512 bytes / 512 bytes
 > I/O size (minimum/optimal): 512 bytes / 512 bytes
 > Disk identifier: 0x64686894
 >
 >  Device Boot      Start         End      Blocks   Id  System
 # apt-get install btrfs-tools 
 # mkfs.btrfs -d single -m single /dev/sdb /dev/sdc
 # mount /dev/sdb /storage 
----
# bonnie++ -n 256:4096:512:16 -d /storage -s 512 -r 256 -u root
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
sacloudt2      512M   435  98 28113   2 27791   2  3686  97 +++++ +++ +++++ +++
Latency             22702us    1522us     281us    1654us      62us   19807us
Version  1.96       ------Sequential Create------ --------Random Create--------
sacloudt2           -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
files:max:min        /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP
    256:4096:512/16  3081  11 29865  99 13195  99  3100  11 25208  99  2951  29
Latency              2947ms     622us    1595us    3195ms    1767us   36635us
1.96,1.96,sacloudt2,1,1332932439,512M,,435,98,28113,2,27791,2,3686,97,+++++,+++,+++++,+++,256,4096,512,,16,3081,11,29865,99,13195,99,3100,11,25208,99,2951,29,22702us,1522us,281us,1654us,62us,19807us,2947ms,622us,1595us,3195ms,1767us,36635us
----
# bonnie++ -n 256:4096:512:16 -d /storage -s 1024 -r 512 -u root
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
sacloudt2        1G   413  98 24817   3 24962   4  4791  93 +++++ +++ 12632 194
Latency             20403us    2006us     320us    1898us     359us     137ms
Version  1.96       ------Sequential Create------ --------Random Create--------
sacloudt2           -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
files:max:min        /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP
    256:4096:512/16  3114  12 28438  99 13884  99  4317  17 23379  99  1673  18
Latency              3417ms     648us    1574us    3354ms    1560us    7496us
1.96,1.96,sacloudt2,1,1332932240,1G,,413,98,24817,3,24962,4,4791,93,+++++,+++,12632,194,256,4096,512,,16,3114,12,28438,99,13884,99,4317,17,23379,99,1673,18,20403us,2006us,320us,1898us,359us,137ms,3417ms,648us,1574us,3354ms,1560us,7496us
----
# bonnie++ -n 256:4096:512:16 -d /storage -s 2048 -r 1024 -u root
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
sacloudt2        2G   407  98 28169   4 25882   4  4156  86 +++++ +++  5978 161
Latency             23324us    1425us     459us    1982us      46us    5612us
Version  1.96       ------Sequential Create------ --------Random Create--------
sacloudt2           -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
files:max:min        /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP
    256:4096:512/16  3313  13 28116  99 13052  99  3348  13 23293  99  3142  33
Latency              2950ms     524us    1616us    3209ms    1732us    8743us
1.96,1.96,sacloudt2,1,1332930594,2G,,407,98,28169,4,25882,4,4156,86,+++++,+++,5978,161,256,4096,512,,16,3313,13,28116,99,13052,99,3348,13,23293,99,3142,33,23324us,1425us,459us,1982us,46us,5612us,2950ms,524us,1616us,3209ms,1732us,8743us
----
# iozone -s 512M -a -f /storage/AAAA -cez
                                                           random  random    bkwd   record   stride                                   
              KB  reclen   write rewrite    read    reread    read   write    read  rewrite     read   fwrite frewrite   fread  freread
          524288       4   27848   27047  3641220  4734449 2878947   27363 3237367  1453754  2656615    28239    27603 4940284  4868857
          524288       8   28159   28192  3678903  4966022 3522445   27632 3878759  2077786  2931293    28458    27857 4719574  4817582
          524288      16   28233   28279  3980105  5389805 4314773   27734 3565618  2959902  3308121    28418    27663 5343117  5674184
          524288      32   28188   28354  3861873  5477936 4903927   27970 3592783  3570157  3513597    28644    28071 5098394  5324939
          524288      64   28374   28316  3678435  4924232 4670050   27961 3669688  3844938  3882498    28477    28090 5557245  5518060
          524288     128   28228   28256  3545217  4807471 4415719   28037 3934444  3876318  3720223    28575    27893 4725151  4888838
          524288     256   28181   28196  3454331  4521252 4482553   28216 3564352  3621652  3552542    28616    28063 4758515  4827736
          524288     512   28256   28410  3647398  4862978 4785699   28317 3754759  3446654  2606840    28655    28121 4546134  4625386
          524288    1024   28169   28428  3523867  4607061 4616753   28143 3740052  3209443  3840627    28655    28073 4245007  4853575
          524288    2048   28281   28355  3420034  4577380 4538187   28165 3904579  2680726  3716903    28586    28040 4623479  4739409
          524288    4096   28443   28368  3395845  4372712 4349929   27983 3174023  1804561  3174367    28367    28008 4593050  4851241
          524288    8192   28333   28276  2429554  3121560 3148213   28018 2798502  1060126  2833987    28592    28097 3299608  3298796
          524288   16384   28286   28218  2508373  3012889 3014099   28044 2504397   647487  2623407    28485    27748 3345291  3318484
----
# iozone -s 1024M -a -f /storage/AAAA -cez
                                                            random  random    bkwd   record   stride                                   
              KB  reclen   write rewrite    read    reread    read   write    read  rewrite     read   fwrite frewrite   fread  freread
         1048576       4   27658   28031  3552194  4723765 2582381   26199 3542820  1374140  2984403    28228    28080 4374447  4477304
         1048576       8   28081   28172  4041238  5301675 3757299   27763 2812431  2309069  3066809    28384    28459 4741257  4891338
         1048576      16   27921   28109  3525169  4807334 3521748   25859 3892063  2966612  3402367    25925    25132 4740976  4904889
         1048576      32   26574   27894  3971008  5367838 4919219   28041 3570823  3622326  3412611    28615    28363 5291775  5489578
         1048576      64   28293   28339  3844725  4965129 4626552   28010 3841669  4224622  3949246    28626    28581 5021674  5078025
         1048576     128   27958   27956  3671096  4671776 4454174   27878 3794746  3841629  3716494    28522    28145 5184139  5027305
         1048576     256   27817   28191  3685654  4773564 4604287   27816 3681631  3964115  3457872    28360    27908 4320214  4650499
         1048576     512   28149   28385  3484683  4789221 4634465   28097 3908704  3797014  3845714    28609    28680 4582936  4648007
         1048576    1024   28110   28296  3678773  4808217 4792655   28265 3626295  3697114  3464341    28641    28431 5443215  5396244
         1048576    2048   28197   28468  3622397  4754563 4743338   27684 3656312  3266348  3502751    28186    28096 4436686  4644895
         1048576    4096   27871   27878  3447788  4416339 4322634   27795 3338594  2345219  3100340    28063    28217 4031525  4275398
         1048576    8192   28046   28243  2767377  3240935 3282585   27861 2537505  1447713  2446554    28254    28375 3132846  3223056
         1048576   16384   28137   28092  2553970  3041650 3079194   27878 2822653  1036225  2511433    28347    28259 3079908  3146136
----
# iozone -s 2048M -a -f /storage/AAAA -cez
                                                            random  random    bkwd   record   stride                                   
              KB  reclen   write rewrite    read    reread    read   write    read  rewrite     read   fwrite frewrite   fread  freread
         2097152       4   27800   28261  3578622  4672840 2538451   19114  536439  1011583  3465090    28882    28025 4451937  4552315
         2097152       8   28231   28491  4053688  5228605 3542546   27132 3469194  1578859  3105515    28635    28256 4736875  4946452
         2097152      16   28470   28464  3869442  5128678 4233034   28516 4017302  2275305  3807943    27941    27456 5219329  5166532
         2097152      32   28284   28551  4042859  5257919 4635471   28619 4034218  3227192  3896117    28924    28416 5213244  5255349
         2097152      64   28602   28480  3889528  5296238 4923806   28305 3488990  3910247  3551695    28817    28440 5251744  5286574
         2097152     128   28570   28592  3804986  5055206 4788347   28242 3747865  4004092  3504248    28881    28426 5309554  5292911
         2097152     256   28591   28419  3675422  4644618 4623279   28743 3769538  4031691  3843893    29183    28620 4807233  4701523
         2097152     512   28702   28406  3596470  4817383 4738447   28627 3749667  3934102  3811173    29073    28304 4895770  4843373
         2097152    1024   28360   28390  3640321  4745610 4785265   28091 3610767  3867128  3690779    28486    28052 4891798  4733923
         2097152    2048   28556   28428  3719503  4927402 4981548   28632 3654084  3932758  3952177    29041    28589 4686633  4656425
         2097152    4096   28515   28715  3505904  4740784 4684636   28628 2983260  3043801  3424755    29029    28589 4392437  4591184
         2097152    8192   28579   28546  2787909  3342863 3365480   28652 2826342  1731192  2711664    28986    28180 3260533  3093514
         2097152   16384   28127   28157  2595754  3129517 3121040   27789 2674134  1365293  2706477    28681    28398 3150063  3231105
----
+ LVM normal + xfs
 # apt-get install xfsprogs
 # umount /storage
 # lvremove volume1
 # lvcreate -l100%VG -ndisk250X2 volume1
 # mkfs.xfs /dev/volume1/disk250X2
 # mount /dev/volume1/disk250X2 /storage/

----
# bonnie++ -n 256:4096:512:16 -d /storage -s 512 -r 256 -u root
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
sacloudt2      512M  1868  88 18814   2 28832   3  4266  99 +++++ +++  9873  18
Latency              5661us    1871us     584us    2014us     323us   19145us
Version  1.96       ------Sequential Create------ --------Random Create--------
sacloudt2           -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
files:max:min        /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP
    256:4096:512/16  1350   7 218513 100  1913   9  1320   7 157886  99   878   6
Latency               209ms    1348us    1009ms     129ms    1064us    1014ms
1.96,1.96,sacloudt2,1,1332870612,512M,,1868,88,18814,2,28832,3,4266,99,+++++,+++,9873,18,256,4096,512,,16,1350,7,218513,100,1913,9,1320,7,157886,99,878,6,566
1us,1871us,584us,2014us,323us,19145us,209ms,1348us,1009ms,129ms,1064us,1014ms
----
# bonnie++ -n 256:4096:512:16 -d /storage -s 1024 -r 512 -u root
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
sacloudt2        1G  1945  93 22218   2 29124   3  4242 100 +++++ +++  9964  24
Latency              4224us      62us     509us    3964us    2178us   21155us
Version  1.96       ------Sequential Create------ --------Random Create--------
sacloudt2           -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
files:max:min        /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP
    256:4096:512/16  1355   7 216594  99  2060   9  1427   7 167527  99   855   6
Latency               121ms    1392us    1138ms     119ms    1096us    1062ms
1.96,1.96,sacloudt2,1,1332855139,1G,,1945,93,22218,2,29124,3,4242,100,+++++,+++,9964,24,256,4096,512,,16,1355,7,216594,99,2060,9,1427,7,167527,99,855,6,4224us,62us,509us,3964us,2178us,21155us,121ms,1392us,1138ms,119ms,1096us,1062ms
----
# bonnie++ -n 256:4096:512:16 -d /storage -s 2048 -r 1024 -u root
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
sacloudt2        2G  1911  93 23858   2 28577   2  4611 100 +++++ +++  7179  42
Latency              4256us    1694us     808us    3169us     199us    9189us
Version  1.96       ------Sequential Create------ --------Random Create--------
sacloudt2           -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
files:max:min        /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP
    256:4096:512/16  1408   7 220593  99  1970   9  1414   7 169503  99   866   6
Latency               171ms    1381us     724ms     123ms    1137us     875ms
1.96,1.96,sacloudt2,1,1332855521,2G,,1911,93,23858,2,28577,2,4611,100,+++++,+++,7179,42,256,4096,512,,16,1408,7,220593,99,1970,9,1414,7,169503,99,866,6,4256us,1694us,808us,3169us,199us,9189us,171ms,1381us,724ms,123ms,1137us,875ms
 ---
# iozone -s 512M -a -f /storage/AAAA -cez
                                                            random  random    bkwd   record   stride                                   
              KB  reclen   write rewrite    read    reread    read   write    read  rewrite     read   fwrite frewrite   fread  freread
          524288       4   29022   29322  4106556  4142177 2570532   28674 4175629  5508729  3348265    28306    28890 3936071  3964941
          524288       8   28414   28752  4536305  4881686 3602341   28701 4747184  8377492  4058205    28465    28480 4227892  4458080
          524288      16   28686   28714  4652640  4695649 3920905   28735 4818648  7561099  4615735    28521    28757 4748343  4931365
          524288      32   28570   28492  4582302  4629310 4181719   29100 4600873  8027307  4640329    28025    28737 4518168  4807776
          524288      64   28371   28938  4978006  5092703 4708468   28818 5453726  8982321  5274211    28876    28684 5671974  5688024
          524288     128   27903   28680  5178671  5491821 5334796   29010 5257289  5059520  4939119    28721    28334 4707369  4828361
          524288     256   28144   28627  5305437  5390465 5282649   28274 4203244  5922675  4492920    28536    28553 4457095  4480370
          524288     512   28467   28894  5041609  4781859 5094980   28925 5152461  5583178  5039969    28830    28942 4717488  4896960
          524288    1024   28581   29387  4442140  4623479 4562120   29243 4833445  4848503  5394300    29247    29561 4504277  4648401
          524288    2048   28707   29218  3381235  4397687 4403931   29247 4679760  3544017  5275640    28753    29431 4589111  4664770
          524288    4096   29401   29555  4604794  4769858 4807240   29633 4891068  2279078  4743907    28799    29132 4606694  4751133
          524288    8192   29090   29152  3574561  3593176 3576852   29060 3197422  1147972  3249340    29213    29238 3680793  3704299
          524288   16384   28930   29375  2949563  2967259 2957732   28798 2968889   696907  2841024    28718    28455 3354282  3377641
----
# iozone -s 1024M -a -f /storage/AAAA -cez
                                                            random  random    bkwd   record   stride                                   
              KB  reclen   write rewrite    read    reread    read   write    read  rewrite     read   fwrite frewrite   fread  freread
         1048576       4   25442   29155  4412918  4387876 2679806   29326 3690181  6473057  2964196    28316    28438 4052763  4214263
         1048576       8   28027   28584  5033173  5105021 3580518   28110 4455979  7486676  3724362    28225    29090 4682878  4715838
         1048576      16   28519   28908  4509712  4686561 3926410   28831 4500984  7940864  4312821    28710    28924 5187012  5254913
         1048576      32   29318   29529  4932686  4954407 4399239   29527 4890381  8716203  4580292    29287    29437 5160041  5215498
         1048576      64   29275   29585  4914793  5028874 4707731   22952 5134367  8953006  4908946    19948    17742 4939517  4945454
         1048576     128   20739   17604  4366304  5352226 5221343   17373 4361363  7812127  4843509    18275    20238 5618203  5490154
         1048576     256   17591   18145  4469305  5137233 4946673   18312 4949150  6672241  4995646    19850    19445 4589436  4660483
         1048576     512   17811   21535  4819508  5239188 5029650   29456 5303606  6315468  5162572    20666    18359 4453060  4513456
         1048576    1024   17015   17225  4411139  4818933 4789111   21681 4212059  4660750  4640641    16994    17241 5403438  5465918
         1048576    2048   16830   16659  4282209  4663819 4705338   16804 4472128  2441421  4814443    16477    16791 4795153  4713084
         1048576    4096   19186   18787  4052842  4546927 4522353   17896 4140316  2402802  4513400    22923    20055 5070946  5117579
         1048576    8192   16787   16898  2894059  3299162 3263948   16869 2894787  1267083  3252630    22646    19169 3264537  3292895
         1048576   16384   16774   17380  3257245  3285331 3247691   22401 2871143   756902  3030794    17298    17115 3480808  3521663
----
# iozone -s 2048M -a -f /storage/AAAA -cez
                                                            random  random    bkwd   record   stride                                   
              KB  reclen   write rewrite    read    reread    read   write    read  rewrite     read   fwrite frewrite   fread  freread
         2097152       4   19466   17283  4105575  4505286 2531156   17899 4246965  6323676  3590878    17089    17539 4902201  4578532
         2097152       8   17521   17715  4854348  5009273 3572898   17081 4369077  7503017  4144414    17338    18334 5036449  5093760
         2097152      16   17459   17687  4826187  5548242 4194698   23217 4784227  7329700  3976940    21164    17159 5192076  5216667
         2097152      32   21211   17808  5240848  5627036 4778995   17904 5293510  8201739  4989417    18059    17624 4916636  5036472
         2097152      64   17563   17553  5014365  5322382 4927808   23313 4850477  8043849  5006926    22514    19337 4967647  4908479
         2097152     128   25917   29393  5098292  5173336 4959096   29385 5135433  9091288  4992317    29321    29387 4937939  5020928
         2097152     256   29243   29704  5025802  5148141 5080767   29335 4758066  6984918  4719648    29344    29202 4883661  4872475
         2097152     512   29281   29525  5110876  5152263 5082094   29456 5034031  7023093  5090199    29323    28625 4899397  4977336
         2097152    1024   24811   29336  4997241  4997513 5062870   29218 5134339  6118319  5047562    29189    29391 5006926  5153591
         2097152    2048   29290   29497  4905777  4970013 4922982   29265 5037378  5599319  4907477    29039    29332 5003990  5142877
         2097152    4096   29232   29417  4627321  4667556 4733719   29377 4841976  4328057  4682167    29193    29052 4565844  4639522
         2097152    8192   29219   29373  3486409  3536763 3519721   24046 3368360  1666954  3491476    17213    17497 3460275  3482328
         2097152   16384   16508   18539  3187428  3343646 3331250   18350 3214218  1297815  3298694    21041    18003 3182396  3170877
----

+ md raid 0 + ext4
 # apt-get install mdadm 
 # umount /storage
 # mdadm --create /dev/md0 --level=0 --raid-devices=2 /dev/sdb /dev/sdc
 # mkfs.ext4 /dev/md0 
 # mount /dev/md0 /storage

----
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
sacloudt2      512M   835  97 29275   3 29220   2  5583  99 +++++ +++ 15601  66
Latency             11142us     457us     133ms    2048us     520us     248us
Version  1.96       ------Sequential Create------ --------Random Create--------
sacloudt2           -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
files:max:min        /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP
    256:4096:512/16  5406  11 44198  61 21695  53  5058  16  4806  15  2540  14
Latency              1081ms    1139ms    1449ms    1146ms    2235ms    4626ms
1.96,1.96,sacloudt2,1,1332966338,512M,,835,97,29275,3,29220,2,5583,99,+++++,+++,15601,66,256,4096,512,,16,5406,11,44198,61,21695,53,5058,16,4806,15,2540,14,11142us,457us,133ms,2048us,520us,248us,
1081ms,1139ms,1449ms,1146ms,2235ms,4626ms
----
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
sacloudt2        1G   886  96 26741   7 28386   6  5596  98 1113981  99  9862 133
Latency             11819us    7387us   46604us    2730us    8025us   10473us
Version  1.96       ------Sequential Create------ --------Random Create--------
sacloudt2           -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
files:max:min        /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP
    256:4096:512/16  5021  16 40688  65 20011  56  4997  17  4826  14  2489  15
Latency              1107ms    1158ms    1475ms    1153ms    2326ms    5106ms
1.96,1.96,sacloudt2,1,1332965387,1G,,886,96,26741,7,28386,6,5596,98,1113981,99,9862,133,256,4096,512,,16,5021,16,40688,65,20011,56,4997,17,4826,14,2489,15,11819us,7387us,46604us,2730us,8025us,104
73us,1107ms,1158ms,1475ms,1153ms,2326ms,5106ms
----
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
sacloudt2        2G   879  97 28547   6 29589   3  5495 100 +++++ +++ +++++ +++
Latency             13109us     897us    2032us    2256us     512us    3216us
Version  1.96       ------Sequential Create------ --------Random Create--------
sacloudt2           -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
files:max:min        /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP
    256:4096:512/16  5374  12 64914  46 25727  46  5418  11  5541   4  2966   6
Latency              1153ms    1094ms    1373ms    1119ms    2192ms    3003ms
1.96,1.96,sacloudt2,1,1332969120,2G,,879,97,28547,6,29589,3,5495,100,+++++,+++,+++++,+++,256,4096,512,,16,5374,12,64914,46,25727,46,5418,11,5541,4,2966,6,13109us,897us,2032us,2256us,512us,3216us,1153ms,1094ms,1373ms,1119ms,2192ms,3003ms
----
                                                            random  random    bkwd   record   stride
              KB  reclen   write rewrite    read    reread    read   write    read  rewrite     read   fwrite frewrite   fread  freread
          524288       4   29066   29382  3470155  3645953 2613455   29436 3282869  3932495  2976101    29076    29362 3703544  3732169
          524288       8   29229   29931  3529132  3884048 3269379   29593 3441745  5118449  2771589    28959    29115 4522963  4658929
          524288      16   29259   29946  4486998  4501409 4074386   29490 3821485  5333489  3752792    29280    29374 3618226  3704480
          524288      32   29225   29500  3969027  4153671 3894552   29571 2935280  5252755  3737542    29075    29881 4343047  4414089
          524288      64   29135   29451  3793664  3734990 3564959   29480 4422433  5592934  4085210    28952    30026 4039694  4014114
          524288     128   29186   29581  3869967  4040444 4008377   29534 4081874  5414289  4267538    29135    29518 4379426  4361325
          524288     256   29223   29600  3705554  3765032 3757075   29560 4288444  4597891  4232261    29125    29462 4161248  4127181
          524288     512   29162   29532  3950304  3967309 3932319   29669 3725940  4041536  3778703    28694    29397 3836191  3940952
          524288    1024   29384   29520  3856502  3902029 3902486   29671 3745556  3481098  3752690    28660    29433 3770772  3829271
          524288    2048   29298   29619  3713852  3775466 3698312   29512 3927165  2726916  4063935    29005    28782 4213755  4181393
          524288    4096   29270   28975  3834138  3962783 3982411   29234 3581203  1809793  3664911    28816    29100 3990896  4005960
          524288    8192   28964   29414  2581683  2662765 2605651   29088 2636614   968003  2611400    28681    29006 2899518  2957951
          524288   16384   28912   29057  2543706  2578952 2586791   29447 2837226   649529  2740083    29040    29146 2496978  2481060
----
                                                            random  random    bkwd   record   stride
              KB  reclen   write rewrite    read    reread    read   write    read  rewrite     read   fwrite frewrite   fread  freread
         1048576       4   29108   29187  4170548  4133460 2624825   29124 3637404  4574199  2981652    28994    29406 3953457  3818959
         1048576       8   29183   29750  4932686  4809978 3445422   29534 3899213  5115579  3448753    29077    29525 4154980  4220592
         1048576      16   29136   29497  4180788  4211148 3598912   29385 4097663  6083112  3810039    29169    29382 4734428  5083466
         1048576      32   29091   29462  4124080  4285518 4056778   29587 4552933  5761848  4633523    29266    29471 4656920  4716242
         1048576      64   29141   29359  4635554  4773720 4625492   29600 4647718  5777023  4595449    29213    29421 4098400  4095694
         1048576     128   28891   29591  3932199  4099489 3986345   29547 4331203  5215424  4376488    29238    29487 3896953  4013230
         1048576     256   29286   29691  4026634  4061874 4011766   29595 4143292  4838032  3560566    28915    29521 4015946  4152364
         1048576     512   29245   29763  3870014  4126057 4044292   29572 3921624  4364757  3900503    29149    29538 4558469  4576417
         1048576    1024   29114   28893  4561206  4684949 4630006   29282 4429942  3836595  4418087    29232    29094 4412511  4629187
         1048576    2048   29157   29265  4051028  4120124 4111950   29544 4448812  3375697  4507212    29111    29387 4421330  4501735
         1048576    4096   29056   29318  4023109  4180124 4190013   29310 3644556  2413109  3705138    28932    29234 4298250  4305256
         1048576    8192   29010   29313  3073543  3105750 3088507   29441 2867091  1231241  2840776    28807    29346 2826197  2810253
         1048576   16384   28936   29200  2802801  2841299 2894436   29536 2540960   915811  2359425    28986    29244 2806178  2924595
----
                                                            random  random    bkwd   record   stride
              KB  reclen   write rewrite    read    reread    read   write    read  rewrite     read   fwrite frewrite   fread  freread
         2097152       4   29125   29570  4316692  4529768 2779028   29456 4030798  4527991  3566742    29090    29549 4452884  4420174
         2097152       8   29202   29678  4615717  4817174 3475155   29475 4200814  4359692  3748882    29187    29923 4749641  4860684
         2097152      16   29345   29473  4891923  4805164 3937642   29491 4813194  5673266  4440455    29027    29669 4743184  4789656
         2097152      32   29277   29654  4631387  4757721 4289285   29728 4353738  5153290  4414313    29236    29682 4854126  4946335
         2097152      64   29348   29589  4892081  4863310 4501447   29664 5237173  6433039  5088176    29329    29852 4660110  4782286
         2097152     128   29056   29585  4776936  4792111 4546720   29600 4641216  5599811  4563472    29197    29451 4580194  4621241
         2097152     256   29286   29422  4562755  4593908 4514781   29722 4576815  4749479  4625063    29297    29646 4270584  4303951
         2097152     512   29227   29632  4726775  4678051 4652666   29693 4609713  4401528  4627859    29025    29511 4499842  4778244
         2097152    1024   29187   29708  4520814  4630434 4544119   29727 4542357  4217152  4628687    29242    29599 4681183  4551378
         2097152    2048   29092   29550  4578006  4641052 4614073   29748 4507019  3772323  4401195    29079    29564 4525605  4676726
         2097152    4096   29283   29621  4008778  4084815 4043645   29740 4135228  3009729  4191260    29148    29523 4181799  4330747
         2097152    8192   29262   29994  3132611  3133304 3090291   29617 3123700  1678904  3086316    29162    29429 3045880  3061003
         2097152   16384   29093   29912  2900597  2911691 2863819   29671 2912424  1299566  2986353    29120    29517 2799763  2814731
----




2012/03/23(金) 音声認識リモコン作ってみた

はてブ 2012/03/23 7:44 R&D(voice)poti

はじめに

"引越ししたので未来なお部屋を作ってみた。"(http://d.hatena.ne.jp/rti7743/20120104/1325668680)
に触発されて、音声認識リモコンをつくってみた。
tx-50が放置ぎみだったので、せっかくなのでmeegoの勉強もかねてやってみました。

構成とか

  • ざっくりこんな感じです
音声リモコンc.png

技術的な話

今回はMeeGoに慣れるのに時間がかかった。というか結局最後まで慣れなかった。

TX-50にMeego入れて動かすまでは
http://blog.livedoor.jp/furikku9310/archives/52213664.html
ここら辺にまとまっててさっくり行きました。ありがとうございます。

当初は無線を2つ付けて無線APとWAN側も無線に仕様としていましたが、
どうも安定しないし、MeeGoの文化にまけたため、WAN側は有線にして、
hostapdだけ設定して無線APとしてだけ動くようにしました。

次にブリッジやDHCPDやdnsmasqなどのネットワーク周りを設定しました。
dnsmasq設定するときの注意点はconnmandがdns proxyしているので
rオプション付きで起動するようにする必要があります(/etc/rc.sysinit)。
その他はごくごく一般的。

まぁ、なんだかんだで、カーネルを再構築したりはしたんですが。

環境が整ったので、juliusを動かし音声認識をさせてみましたが、
当初はオーディオインターフェイスをつけていなかったため、
マイクのすぐ近くで喋らないと行けない状態でした、そこで、
入力に対してフィルタをかけれるUA-4FXをつかってみました。

UA-4FXを使っていますが、UA-3FXにある機能しか使っていないので、
UA-3FXでいいと思います。
入力に対して、ノイズをとって音をシャープにして音圧を調整しているだけで、
真空管エミュレータなんてものも使っていません。
どちらも、製造終了ですけど。。。。ヤフオクでは売ってます。

UA-4FXを導入すると割といい感じに離れたところから認識してくれるようになりました。

実は、juliusのプラグインで入力された音データに対して、自前でソフトウェア的に
フィルタかけたらよかったんじゃないのかとか思いますが、自分に音響系の
プログラム能力が無いので今回はあきらめました。
いつかやるかもしれません。

次に、juliusの設定周りをごにょごにょと。
http://d.hatena.ne.jp/hecomi/20120112/1326390200
この辺にかいています。大変ありがとうございます。
そして、やっていることが全く同じです。

さいごに、iremoconと通信するirmcdとirmcdに認識した文字列を通知する
juliusのプラグインを作りました。

プラグインの作り方はjuliusのドキュメントに書いるものベースで、
特に難しい事はしてません。

irmcdは送ってきた文字列に応じた処理をします。
リモートホストにつないで設定されたシナリオに従いコマンドを入力したり、
外部プログラムを実行したりします。

デモでは、外部プログラムで合成音声で喋らせる事で
動作が正常に行われたか判断できるようにしています。
合成音声にはaqestalk2を使いました。
また、天気を読み上げているのは、外部プログラムでもgoogleの天気取得apiを叩いて、
その内容を喋らせているだけです。
(このあたりのプログラムは整理して、githubに上げる予定)

とまぁ、だいたいこんな感じです。

これで家に帰ったら、"かみさま電気つけて"で電気をつけられるようになる。

1: えーちゃん 『「かみさまおねがい」にせずに拍手にしたらどうよ 他の音声拾うこと無いだろうし 1回で起動2回で終了』 (2012/03/25 10:37)

2: poti 『拍手はやったんだけど、ご判定が多すぎて使い物にならなかった。あとある程度長い間音量レベルが上がっていないと音声コマンドとして認識...』 (2012/03/25 12:56)

3: えーちゃん 『拍手が駄目なら指パッチン。 もっと無理か。 ナビみたいにユーザーの声を登録して声紋認証かねぇ しかも指向性マイクだし。 持ち運び...』 (2012/03/25 22:58)

4: poti 『今回使った、マイクは全指向性。 声紋認証までやるのは大変すぎる。』 (2012/03/25 24:58)