[pgsql-jp: 30624] TurboLinux Server 8でのパフォーマンスが悪い

Hiroki Nose nose @ daemon.ac
2003年 7月 29日 (火) 00:46:27 JST


能瀬@大阪市です

RH8とTLS8へPostgreSQLをインストールした際、pgbenchの
結果がかなり違います。
これは何処かにOSのチューニングパラメータがあったりするの
でしょうか?

インストール等は以下のようにしました。

HP DL360(XEON 2.4Gx2,memory 1G,DISK 36.4G(RAID1))のサーバが
2台ありRedHat 8.0(以下RH8) と TurboLinux Server 8.0(以下TLS8)
を1台ずつインストールしました。

カーネルのバージョンは

RH8 > uname -a
Linux dhcp167.pv.daemon.ac 2.4.18-14smp #1 SMP Wed Sep 4 12:34:
47 EDT 2002 i686 i686 i386 GNU/Linux

TLS8 > uname -a
Linux dhcp168.pv.daemon.ac 2.4.18-13smp #1 SMP Fri Jun 27 11:36:
23 JST 2003 i686 unknown

です。

PostgreSQLのインストール並びに設定方法はRH8,TLS8両方同じで、
PostgreSQL-7.3.3はソースからコンパイルしました。
configureは以下のとおりです。
   ./configure CFLAGS='-O2 -pipe' --prefix=/opt/pgsql

initdbを行いdbの初期化を行った後、postgresql.confを以下に
変更しpg_ctl startにてPostgreSQLを起動しました。

-----postgresql.conf-------
tcpip_socket = true
max_connections = 100
shared_buffers = 2048
wal_sync_method = fdatasync
syslog = 2
max_files_per_process = 50
--------ここまで-----------

これでRH8,TLS8それぞれでpgbenchを実行した結果は以下のとおりです。

RH8の実行結果
bash-2.05b$ pgbench test -c 100
starting vacuum...end.
transaction type: TPC-B (sort of)
scaling factor: 1
number of clients: 100
number of transactions per client: 10
number of transactions actually processed: 1000/1000
tps = 41.604651 (including connections establishing)
tps = 42.286563 (excluding connections establishing)
bash-2.05b$

TLS8の実行結果
bash-2.05b$ pgbench test -c 100
starting vacuum...end.
transaction type: TPC-B (sort of)
scaling factor: 1
number of clients: 100
number of transactions per client: 10
number of transactions actually processed: 1000/1000
tps = 36.519743 (including connections establishing)
tps = 37.005582 (excluding connections establishing)
bash-2.05b$

次にwal_sync_methodをopen_syncへ変更し、
$ pg_ctl restart
としてPostgreSQLの再起動を行いました。
pgbenchを実行した結果は以下のとおりです。

RH8の実行結果
bash-2.05b$ pgbench test -c 100
starting vacuum...end.
transaction type: TPC-B (sort of)
scaling factor: 1
number of clients: 100
number of transactions per client: 10
number of transactions actually processed: 1000/1000
tps = 64.900322 (including connections establishing)
tps = 66.567308 (excluding connections establishing)
bash-2.05b$

TLS8の実行結果
bash-2.05b$ pgbench test -c 100
starting vacuum...end.
transaction type: TPC-B (sort of)
scaling factor: 1
number of clients: 100
number of transactions per client: 10
number of transactions actually processed: 1000/1000
tps = 19.389380 (including connections establishing)
tps = 19.529756 (excluding connections establishing)
bash-2.05b$

以上よろしくお願いします。



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