Received: from localhost (unknown [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 3A3349F9262 for ; Wed, 7 Nov 2007 17:13:20 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 43311-02 for ; Wed, 7 Nov 2007 17:13:07 -0400 (AST) Received: from tremor.opencloud.co.nz (tremor.opencloud.co.nz [131.203.101.230]) by postgresql.org (Postfix) with ESMTP id 9C90B9F9255 for ; Wed, 7 Nov 2007 17:13:15 -0400 (AST) Received: from 219-88-216-234.jetstream.xtra.co.nz ([219.88.216.234] helo=[10.1.1.3]) by tremor.opencloud.co.nz with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1IpsCt-0001qI-EQ; Thu, 08 Nov 2007 10:13:03 +1300 Message-ID: <47322A5D.2080606@opencloud.com> Date: Thu, 08 Nov 2007 10:13:01 +1300 From: Oliver Jowett User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: Phillip Mills CC: Albe Laurenz , pgsql-jdbc@postgresql.org Subject: Re: Beginning tuning References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.001 tagged_above=0 required=5 tests=BAYES_50=0.001 X-Spam-Level: X-Archive-Number: 200711/24 X-Sequence-Number: 17779 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