Received: from web13301.mail.yahoo.com (web13301.mail.yahoo.com [216.136.175.37]) by postgresql.org (8.11.3/8.11.4) with SMTP id fBB8sHm69477 for ; Tue, 11 Dec 2001 03:54:17 -0500 (EST) (envelope-from luchao2000@yahoo.com) Message-ID: <20011211085418.69580.qmail@web13301.mail.yahoo.com> Received: from [210.74.236.50] by web13301.mail.yahoo.com via HTTP; Tue, 11 Dec 2001 16:54:18 CST Date: Tue, 11 Dec 2001 16:54:18 +0800 (CST) From: =?gb2312?q?Chao=20Lu?= Subject: the results of pgbench are not stable (in tps) To: pgsql-admin@postgresql.org MIME-Version: 1.0 Content-Type: text/plain; charset=gb2312 Content-Transfer-Encoding: 8bit X-Archive-Number: 200112/81 X-Sequence-Number: 2804 hi, i try Excuting pgbench in order to get some performance results of postgreSQL . my system: Person Computer with PIII 600,RAM 256M,Maxtor 10G 7200rpm IDE OS RedHat 7.1 linux,PostgreSQL 7.1.3 However,even the same command (such as "./pgbench -t 10 -c 10") I Excute every time, the results returned to me are not stable. The defference is obvious and great. Following are some examples of my test.... bash-2.04$ ./pgbench testdb -t 16 -c 16 starting vacuum...end. transaction type: TPC-B (sort of) scaling factor: 1 number of clients: 16 number of transactions per client: 16 number of transactions actually processed: 256/256 tps = 150.468657(including connections establishing) tps = 174.254568(excluding connections establishing) bash-2.04$ ./pgbench testdb -t 16 -c 16 starting vacuum...end. transaction type: TPC-B (sort of) scaling factor: 1 number of clients: 16 number of transactions per client: 16 number of transactions actually processed: 256/256 tps = 148.327807(including connections establishing) tps = 171.441123(excluding connections establishing) bash-2.04$ ./pgbench testdb -t 16 -c 16 starting vacuum...end. transaction type: TPC-B (sort of) scaling factor: 1 number of clients: 16 number of transactions per client: 16 number of transactions actually processed: 256/256 tps = 92.120429(including connections establishing) tps = 100.808873(excluding connections establishing) bash-2.04$ ./pgbench testdb -t 16 -c 16 starting vacuum...end. transaction type: TPC-B (sort of) scaling factor: 1 number of clients: 16 number of transactions per client: 16 number of transactions actually processed: 256/256 tps = 151.239901(including connections establishing) tps = 177.997803(excluding connections establishing) bash-2.04$ ./pgbench testdb -t 16 -c 16 starting vacuum...end. transaction type: TPC-B (sort of) scaling factor: 1 number of clients: 16 number of transactions per client: 16 number of transactions actually processed: 256/256 tps = 114.787139(including connections establishing) tps = 128.095623(excluding connections establishing) bash-2.04$ ./pgbench testdb -t 16 -c 16 starting vacuum...end. transaction type: TPC-B (sort of) scaling factor: 1 number of clients: 16 number of transactions per client: 16 number of transactions actually processed: 256/256 tps = 130.486818(including connections establishing) tps = 149.041969(excluding connections establishing) bash-2.04$ ./pgbench testdb -t 16 -c 16 starting vacuum...end. transaction type: TPC-B (sort of) scaling factor: 1 number of clients: 16 number of transactions per client: 16 number of transactions actually processed: 256/256 tps = 136.926660(including connections establishing) tps = 156.382960(excluding connections establishing) bash-2.04$ ./pgbench testdb -t 16 -c 16 starting vacuum...end. transaction type: TPC-B (sort of) scaling factor: 1 number of clients: 16 number of transactions per client: 16 number of transactions actually processed: 256/256 tps = 109.489675(including connections establishing) tps = 121.939660(excluding connections establishing) ...... Can you tell me some reason why the results of Pgbench on my system are very diverse? what should i do? Give me some advice please (tuning system parameter?tuning postgresql ?) i started my pgSQL by " postmaster -i -B 128 -S & " Thanks. Best regards Chao