I work for VMware with our Postgres performance team. We recently came across a dbt2 performance regression from 9.1.6 to 9.2.1. We have done some profiling and don't see anything obvious. Would like to get some suggestions from the community where to investigate further.
The average notpm is 61384.24 with 9.1.6 and 57381.43 with 9.2.1.
Plotting notps over time shows that the slowdown of 9.2.1 is evident across the entire run period.
Since we also observed sustained 80+% CPU utilization during both runs, we suspected this is a CPU bottleneck issue.
So we run oprofile hoping that the profiles may suggest one is using CPU less productively than the other; but nothing jumped out to that explanation.
The profiling results are posted on http://pgsql.privatepaste.com/3fa3ae0627 (9.1.6 run) and http://pgsql.privatepaste.com/930bb51374 (9.2.1 run).
HP ML360 G6:
2x Xeon E5520 (4-core/processor, Hyperthreading disabled)
HP P410i RAID controller (256MB battery-backed cache)
- One 10k-rpm SAS: to mount /
- One SSD: to mount pgdata and wal
SUSE Linux Enterprise Server 11 SP1 64-bit (kernel version: 188.8.131.52-0.7-default)
max_connections = 100
shared_buffers = 5600MB
temp_buffers = 8193kB
work_mem = 4096kB
maintenance_work_mem = 400MB
wal_buffers = -1
checkpoint_segments = 300
logging_collector = on
datestyle = 'iso, mdy'
lc_messages = 'C'
lc_monetary = 'C'
lc_numeric = 'C'
lc_time = 'C'
default_text_search_config = 'pg_catalog.english'
log_destination = 'csvlog'
log_directory = 'pg_log'
log_filename = 'postgresql-%a'
log_rotation_age = 1440
log_truncate_on_rotation = on
dbt2-0.40 was used:
20 db connections
use no thinktime
use prepared statement
buffer warmup before measurement run (warmup is done through disabling sequential scan and count(*) all tables and indexes).
measurement run lasts 20 minutes
We used postgresql91-9.1.6 and postgresql92-9.2.1 openSUSE builds:
pgsql-performance by date
|Next:||From: Petr Praus||Date: 2012-11-01 19:53:13|
|Subject: Re: Re: Increasing work_mem and shared_buffers on Postgres
9.2 significantly slows down queries|
|Previous:||From: Dong Ye||Date: 2012-10-31 22:48:44|
|Subject: dbt2 performance regresses from 9.1.6 to 9.2.1|