pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Hannu Krosing <hannu@tm.ee>
To: Lincoln Yeoh <lyeoh@pop.jaring.my>
Cc: Hiroshi Inoue <Inoue@tpf.co.jp>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Schmidt, Peter <peter.schmidt@prismedia.com>
Cc: pgsql-hackers@postgresql.org
Cc: vadim4o@email.com
Subject: Re: RE: Re: [ADMIN] v7.1b4 bad performance
Date: Thu, 22 Feb 2001 13:49:04 +0200
Message-ID: <3A94FCB0.27B47C52@tm.ee> (raw)
References: <3A931FA9.1D698302@tpf.co.jp>
	<3.0.5.32.20010222151314.00884210@192.228.128.13>

Lincoln Yeoh wrote:
> 
> Just another data point.
> 
> I downloaded a snapshot yesterday - Changelogs dated Feb 20 17:02
> 
> It's significantly slower than "7.0.3 with fsync off" for one of my webapps.
> 
> 7.0.3 with fsync off gets me about 55 hits per sec max (however it's
> interesting that the speed keeps dropping with continued tests).
> ( PostgreSQL 7.0.3 on i686-pc-linux-gnu, compiled by gcc egcs-2.91.66)
> 
> For 7.1b4 snapshot I get about 23 hits per second (drops gradually too).
> I'm using Pg::DBD compiled using the 7.1 libraries for both tests.
> (PostgreSQL 7.1beta4 on i686-pc-linux-gnu, compiled by GCC egcs-2.91.66)
> 
> For a simple "select only" webapp I'm getting 112 hits per sec for 7.0.3.
> and 109 hits a sec for the 7.1 beta4 snapshot. These results remain quite
> stable over many repeated tests.
> 
> The first webapp does a rollback, begin, select, update, commit, begin, a
> bunch of selects in sequence and rollback.

It may be that WAL has changed the rollback time-characteristics to
worse 
than pre-wal ?

If that is the case tha routeinely rollbacking transactions is no longer 
a good programming practice.

It may have used to be as I think that before wal both rollback and
commit 
had more or less the same cost.

> So my guess is that the 7.1 updates (with default fsync) are significantly
> slower than 7.0.3 fsync=off now.

the consensus seems to be that they are only "a little" slower.

> But it's interesting that the updates slow things down significantly. Going
> from 50 to 30 hits per second after a few thousand hits for 7.0.3, and 23
> to 17 after about a thousand hits for 7.1beta4.
> 
> For postgresql 7.0.3 to speed things back up from 30 to 60 hits per sec I
> had to do:

-------------
Hannu



view thread (63+ messages)  latest in thread

Message-ID: <3A94FCB0.27B47C52@tm.ee>
Permalink:  ../3A94FCB0.27B47C52@tm.ee/
Also on:    postgresql.org/message-id/3A94FCB0.27B47C52@tm.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-admin@postgresql.org
  Cc: hannu@tm.ee, lyeoh@pop.jaring.my, Inoue@tpf.co.jp, tgl@sss.pgh.pa.us, peter.schmidt@prismedia.com, pgsql-hackers@postgresql.org, vadim4o@email.com
  Subject: Re: [ADMIN] v7.1b4 bad performance
  In-Reply-To: <3A94FCB0.27B47C52@tm.ee>
  References: <3A931FA9.1D698302@tpf.co.jp> <3.0.5.32.20010222151314.00884210@192.228.128.13> <3A94FCB0.27B47C52@tm.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