LoginSignup
4
4

More than 5 years have passed since last update.

GoogleComputeEngineのIO性能

Posted at

初めに

GCEインスタンスの起動確認を兼ね、
某所で見かけた、GCEについて価格性能比が芳しく無いとの記事について、
簡単ですが追試を実施してみました。

Googleクラウド(Google compute engine)使ってみました。
http://tsuchinoko.dmmlabs.com/?p=1194

環境

  • ゾーン:asia-east1-b
  • マシンタイプ: n1-highcpu-2(2 vCPU、1.8GB memory)
  • OS: backports-debian-7
  • 追加ディスク:10GB、100GB、1000GB、3000GB
  • ベンチマークツールはbonnie++、デフォルトレポジトリよりapt-get

手順

  • 追加ディスクのファイルシステムはext4
  • デフォルトオプションでOSにマウント
  • /bonnie++ はroot権限で時刻する。オプションはデフォルトとする
sudo /usr/sbin/bonnie++ -d /mnt/sdx -u root

結果、考察

ランダムアクセス性能(Random Seeks値)は以下の通り。

  • 10G :8.5
  • 100G :489.1
  • 1000G :480.5
  • 3000G :1401

GCP公式サイトのディスクのパフォーマンスガイドライン
https://developers.google.com/compute/docs/disks#pdperformance
にある通り、基盤側のストライピングが効果を発揮し確保容量に比例した性能向上の傾向が確認できました。

反面、10GBの追加ディスクでは、極端にIO性能が劣るケースがありました。
先の某所で実施された検証も、10Gの/ボリュームが測定対象であった事が、結果が振るわない原因であった可能性が高いと思われます。

現時点のGCEについては、/ボリュームのIO性能がボトルネックとならないように意識して使う必要がある模様です。

bonnie++出力

10GB

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
instance-4       4G   899  98 91920  17  4374   0  1007  14  1486   0   8.5   0
Latency             10612us     352ms   34567ms     283ms     550ms   22734ms
Version  1.96       ------Sequential Create------ --------Random Create--------
instance-4          -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
              files  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP
                 16  1432   1 +++++ +++  1726   1  1529   1 +++++ +++  1724   1
Latency               705us     327us     368us     143us      30us     135us

100GB

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
instance-4       4G   942  98 91427  24 47817   6 +++++ +++ 110278   6 489.1  10
Latency              9843us     415ms     447ms    4594us    8991us   81958us
Version  1.96       ------Sequential Create------ --------Random Create--------
instance-4          -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
              files  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP
                 16 +++++ +++ +++++ +++ +++++ +++ +++++ +++ +++++ +++ +++++ +++
Latency               630us     285us     475us     205us      28us     325us

1000GB

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
instance-4       4G   940  99 92127  15 47673   6 +++++ +++ 110436   6 480.5  10
Latency             11827us     353ms     398ms    3113us   12637us   81757us
Version  1.96       ------Sequential Create------ --------Random Create--------
instance-4          -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
              files  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP
                 16 +++++ +++ +++++ +++ +++++ +++ +++++ +++ +++++ +++ +++++ +++
Latency               537us     306us     452us     154us     113us     650us

3000GB

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
instance-4       4G   912  98 121176  53 48818   6 +++++ +++ 110211   6  1401  31
Latency             25231us     187ms     392ms    4269us   11506us   81772us
Version  1.96       ------Sequential Create------ --------Random Create--------
instance-4          -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
              files  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP
                 16 +++++ +++ +++++ +++ +++++ +++ +++++ +++ +++++ +++ +++++ +++
Latency               141us     284us     613us     160us     143us     138us

測定粒度、回数やグラフ化などは、またそのうち。。。。

4
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
4