<div>Hello,</div><div><br></div><div>I am using pgpool for load balancing. However, the results of pgbench are not as good as I thought.</div><div>Even though the statements are all SELECT.</div><div><br></div><div>The command of pgbench I used is as follows:</div>

<div>$ pgbench -p 9999 -h 192.168.16.222  -t 100 -c 1000 -j 1 -Sr -U admin testdb</div><div><br></div><div>Under observation, I found the session activities are weird by typing following command.</div><div>$ ps | grep pgpool | grep -c SELECT</div>

<div><br></div><div>When pgpool only connects to ONE backend host. The number of SELECT sessions is about 100~130 when pgbench is running.</div><div>But there are only 10~13 if THREE backend hosts are connected.</div><div>

Although the TPS(transactions per second) measured by pgbench is about 1.3 times better than the one which only a backend host connected.</div><div>The performance is still not satisfied, it should be THREE times better!</div>

<div><br></div><div>BTW, the CPU utilization in backend host is about 90% when one backend host connected; only 30% when three backend hosts connected.</div><div>The memory and I/O seems fine.</div><div><br></div><div>How can I further improve the performance ?</div>

<div>Thanks.</div>