Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id AB387B5D803 for ; Fri, 17 Jun 2011 09:54:53 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 76667-02 for ; Fri, 17 Jun 2011 12:54:46 +0000 (UTC) X-Greylist: delayed 00:05:52.186809 by SQLgrey-1.7.6 Received: from bounce-out.neti.ee (bounce-out.neti.ee [194.126.101.104]) by mail.postgresql.org (Postfix) with ESMTP id DBE1FB5D801 for ; Fri, 17 Jun 2011 09:54:46 -0300 (ADT) Received: from mail.hot.ee (vm-hot-relay9.estpak.ee [88.196.174.228]) by Bounce1.estpak.ee (Postfix) with ESMTP id 1A82B432167 for ; Fri, 17 Jun 2011 15:48:57 +0300 (EEST) Received: from localhost (localhost [127.0.0.1]) by vm-hot-relay9.estpak.ee (Postfix) with ESMTP id 28F3412D for ; Fri, 17 Jun 2011 15:48:52 +0300 (EEST) X-Virus-Scanned: Debian amavisd-new at vm-hot-relay9.estpak.ee Received: from mail.hot.ee ([127.0.0.1]) by localhost (vm-hot-relay9.estpak.ee [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kSGnzo3s6eAk for ; Fri, 17 Jun 2011 15:48:49 +0300 (EEST) Received: from mh3.hot.ee (unknown [10.3.0.119]) by vm-hot-relay9.estpak.ee (Postfix) with ESMTP id 2613411A for ; Fri, 17 Jun 2011 15:48:49 +0300 (EEST) X-Mailer: Elion hot.ee Webmail (http://www.hot.ee) From: Kabu Taah Date: Fri, 17 Jun 2011 15:48:47 +0300 To: pgsql-performance@postgresql.org Cc: Subject: Degrading PostgreSQL 8.4 write performance MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="--------=BoundaryPyDog1308314927.94------" Message-Id: <20110617124857.1A82B432167@Bounce1.estpak.ee> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.888 tagged_above=-10 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, T_TO_NO_BRKTS_FREEMAIL=0.01 X-Spam-Level: X-Archive-Number: 201106/156 X-Sequence-Number: 44089 ----------=BoundaryPyDog1308314927.94------ Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Load testing of postgresql 8.4 for OLTP application=20 suitability showed that throughput of the=20 database significantly degraded over time from thousands of write=20 transactions per second to almost zero. Write transactions are in given case insert/update/delete database transactions. The load driver used=20 for testing the database executed SQL queries in parallel threads and=20 used prepared statement and connection pooling. Postgres performance=20 degraded in a couple of minutes after the first run of the test, and the problem was reproducible with only 2 parallel client threads.=20 Subsequent test executions showed degraded throughput since the=20 beginning. The degradation has been detected only in case of write=20 transactions - select transactions were not affected. After some time or after server restart the problem is reproducible - test achieves high=20 throughput and then degrades again. Linux top does not show any postgres processes performing any significant work, CPU usage during the test=20 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=20 Server is initially configured as dedicated OLTP transaction processing: Options changed from default: max_connections =3D 150 shared_buffers =3D 4GB wal_buffers =3D 16MB checkpoint_segments =3D 80 maintenance_work_mem =3D 2GB Modified kernel params: kernel.shmmax =3D 8932986880 kernel.shmall =3D 2180905 kernel.sem =3D 500 64000 200 256 =20 Disabling and tuning autovacuum did not give any results.=20 Any suggestions? =20 ---------------------------- T=C3=A4na teleka ette ei j=C3=B5ua? Pane film salvestama! minuTV.ee www.minutv.ee ----------=BoundaryPyDog1308314927.94------ Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Load testing of postgresql 8.4 for OLTP application=20 suitability showed that throughput of the=20 database significantly degraded over time from thousands of write=20 transactions per second to almost zero. Write transactions are in given case insert/update/delete database transactions. The load driver used=20 for testing the database executed SQL queries in parallel threads and=20 used prepared statement and connection pooling. Postgres performance=20 degraded in a couple of minutes after the first run of the test, and the problem was reproducible with only 2 parallel client threads.=20 Subsequent test executions showed degraded throughput since the=20 beginning. The degradation has been detected only in case of write=20 transactions - select transactions were not affected. After some time or after server restart the problem is reproducible - test achieves high=20 throughput and then degrades again. Linux top does not show any postgres processes performing any significant work, CPU usage during the test=20 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=20

Server is initially configured as dedicated OLTP transaction processing:

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

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

=20

Disabling and tuning autovacuum did not give any results.

Any suggestions?




----------------------------
T=C3=A4na teleka ette ei j=C3=B5ua? Pane film salvestama!
minuTV.ee
----------=BoundaryPyDog1308314927.94--------