pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Jowett <oliver@opencloud.com>
To: Phillip Mills <pmills@systemcore.ca>
Cc: Albe Laurenz <laurenz.albe@wien.gv.at>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Beginning tuning
Date: Thu, 08 Nov 2007 10:13:01 +1300
Message-ID: <47322A5D.2080606@opencloud.com> (raw)
In-Reply-To: <dd0408e50711070624o943b344hc212bbb0b3f49f80@mail.gmail.com>
References: <dd0408e50711060609n4ca6d049kac9f1bf356d1da4d@mail.gmail.com>
	<Pine.BSO.4.64.0711061437540.6917@leary.csoft.net>
	<D960CB61B694CF459DCFB4B0128514C287F772@exadv11.host.magwien.gv.at>
	<dd0408e50711070516x42e614a6q7f9e20f5630ca600@mail.gmail.com>
	<D960CB61B694CF459DCFB4B0128514C287F9A4@exadv11.host.magwien.gv.at>
	<dd0408e50711070624o943b344hc212bbb0b3f49f80@mail.gmail.com>

Phillip Mills wrote:

> Since memory problems (other than outright failures) usually present as 
> CPU and disk activity, we can eliminate that.  It's not CPU, because 
> that's where I'm trying to bottleneck and not getting there.  So whether 
> network or non-network, that leaves I/O.  Which is why I started this 
> conversation by asking about the I/O routines that I saw on the thread 
> stacks.

My guesses would be:

(1) you've run out of disk bandwidth. Have you measured disk I/O rate on 
the server vs. query rate as a starting point?

(2) you're hitting your hardware's limit on the rate at which it can 
sync your disks (which in turn is related to physical disk access time). 
A simple test for that is to turn off fsync (danger, danger, testing 
purposes only) and see if that removes the performance cap. Or run off a 
purely in-memory filesystem if that's practical for your dataset.

(3) you don't have enough concurrency in your test setup to soak up 
query latency. Try more concurrent queries (= more threads in Java land)

All of the above would show up as "JDBC client blocking waiting for the 
server to respond".

You'll probably find a more suitable audience on the pgsql-performance 
list, though, unless you have something pointing the finger at the JDBC 
driver specifically.

-O



view thread (13+ messages)  latest in thread

Message-ID: <47322A5D.2080606@opencloud.com>
Permalink:  ../47322A5D.2080606@opencloud.com/
Also on:    postgresql.org/message-id/47322A5D.2080606@opencloud.com

 · 

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-jdbc@postgresql.org
  Cc: oliver@opencloud.com, pmills@systemcore.ca, laurenz.albe@wien.gv.at
  Subject: Re: Beginning tuning
  In-Reply-To: <47322A5D.2080606@opencloud.com>
  References: <dd0408e50711060609n4ca6d049kac9f1bf356d1da4d@mail.gmail.com> <Pine.BSO.4.64.0711061437540.6917@leary.csoft.net> <D960CB61B694CF459DCFB4B0128514C287F772@exadv11.host.magwien.gv.at> <dd0408e50711070516x42e614a6q7f9e20f5630ca600@mail.gmail.com> <D960CB61B694CF459DCFB4B0128514C287F9A4@exadv11.host.magwien.gv.at> <dd0408e50711070624o943b344hc212bbb0b3f49f80@mail.gmail.com> <47322A5D.2080606@opencloud.com>

* 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