pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kabu Taah <kabuutah@hot.ee>
To: pgsql-performance@postgresql.org
Subject: Degrading PostgreSQL 8.4 write performance
Date: Fri, 17 Jun 2011 15:48:47 +0300
Message-ID: <20110617124857.1A82B432167@Bounce1.estpak.ee> (raw)


                Load testing of postgresql 8.4 for OLTP application 
suitability showed that throughput of the 
database significantly degraded over time from thousands of write 
transactions per second to almost zero. Write transactions are in given

case insert/update/delete database transactions. The load driver used 
for testing the database executed SQL queries in parallel threads and 
used prepared statement and connection pooling. Postgres performance 
degraded in a couple of minutes after the first run of the test, and
the
 problem was reproducible with only 2 parallel client threads. 
Subsequent test executions showed degraded throughput since the 
beginning. The degradation has been detected only in case of write 
transactions - select transactions were not affected. After some time
or
 after server restart the problem is reproducible - test achieves high 
throughput and then degrades again. Linux top does not show any
postgres
 processes performing any significant work, CPU usage during the test 
after degradation is <1%, io waits are also normal.

Machine used for the test is:
Red Hat Enterprise Linux AS release
4 (Nahant Update 6)
8 CPU @ 2GHz
16GB RAM
WAL and data are on
separate SSD drives 


Server is initially configured as dedicated OLTP transaction
processing:

Options changed from default:
max_connections =
150
shared_buffers = 4GB
wal_buffers = 16MB
checkpoint_segments
= 80
maintenance_work_mem = 2GB


Modified kernel params:
kernel.shmmax =
8932986880
kernel.shmall = 2180905
kernel.sem = 500 64000 200
256


  


Disabling and tuning autovacuum did not give any results. 

Any suggestions?

            


----------------------------
Täna teleka ette ei jõua? Pane film salvestama!
minuTV.ee
www.minutv.ee

view thread (4+ messages)  latest in thread

Message-ID: <20110617124857.1A82B432167@Bounce1.estpak.ee>
Permalink:  ../20110617124857.1A82B432167@Bounce1.estpak.ee/
Also on:    postgresql.org/message-id/20110617124857.1A82B432167@Bounce1.estpak.ee

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: kabuutah@hot.ee
  Subject: Re: Degrading PostgreSQL 8.4 write performance
  In-Reply-To: <20110617124857.1A82B432167@Bounce1.estpak.ee>
  References: <20110617124857.1A82B432167@Bounce1.estpak.ee>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox