[pgsql-jp: 36000] Re: PostgreSQLを動かす最適なLinux環境

Naoto Gohko n-gohko @ jicoo.co.jp
2005年 9月 13日 (火) 11:47:41 JST


郷古と申します。

On 2005/09/12, at 19:40, Akira Nakamura wrote:
> <疑問1>
>  RedHat ES4は、32/64bitを指定してインストール出来るのですが、
>  OSが32bitと64bitでは、PostgreSQLのパフォーマンスに的に、
>  違いはあるのでしょうか?

この部分のみ、pgbenchでテストを軽く行った事があるので、書かせて
いただきます。

一時期、DELLやIBMのサーバがいきなりx86系からx86_64系に切り替わった時期が
ありまして、その時期にメーカからテスト機械を借りて動作試験を行いました。
(IBM x336, DELL PowerEdge1850)

短期間で行ったために、OSには、RedHat EL3互換のWhiteBoxEnterprise 3.1
を使いました。

0)サーバ
DELL PE 1850, RAID 1, Memory 1G
WhiteBoxEnterprise 3.1
   x86
   x86_64
の2パターンのOS環境でインストール(kernel 2.4系)

1)構築(make)
-問題無し。通常通りconfigure, make, make installできました
(phpみたいにライブラリ依存性が大きくないので)

2)pgbench
# pgbenchの実行結果(i386)
==> log-result-pgbench-1 <==
transaction type: Update only accounts
scaling factor: 100
number of clients: 1
number of transactions per client: 10
number of transactions actually processed: 10/10
tps = 33.628705 (including connections establishing)
tps = 51.902216 (excluding connections establishing)

==> log-result-pgbench-2 <==
transaction type: Update only accounts
scaling factor: 100
number of clients: 10
number of transactions per client: 10
number of transactions actually processed: 100/100
tps = 208.188035 (including connections establishing)
tps = 299.863562 (excluding connections establishing)


# pgbenchの実行結果(x86_64)
==> log-result-pgbench-1 <==
transaction type: Update only accounts
scaling factor: 100
number of clients: 1
number of transactions per client: 10
number of transactions actually processed: 10/10
tps = 37.014554 (including connections establishing)
tps = 47.470307 (excluding connections establishing)

==> log-result-pgbench-2 <==
transaction type: Update only accounts
scaling factor: 100
number of clients: 10
number of transactions per client: 10
number of transactions actually processed: 100/100
tps = 278.362339 (including connections establishing)
tps = 359.950471 (excluding connections establishing)

arch   |scaling factor | clients | tps(inc) | tps(exc) |
-------|---------------|---------|----------|----------|
i386   | 100           |  1      |  33.6    |  51.9    |
x86_64 | 100           |  1      |  37.0    |  47.5    |
i386   | 100           | 10      | 208.1    | 299.8    |
x86_64 | 100           | 10      | 278.3    | 360.0    |

試験の方法がちょっと悪かったような感じもしますが、x86_64(EM64T)での性能が
出ているようなので、当時はここでpgbenchテストを打ち切りました。
(時間がなかったので、グラフを描けるほどデータを取れませんでした)



--
(株) 時空
SI部
郷古 直仁
Gohko  Naoto
n-gohko @ jicoo.co.jp
--




pgsql-jp メーリングリストの案内