Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 87FDD9F9277 for ; Wed, 7 Nov 2007 10:30:37 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 90780-01 for ; Wed, 7 Nov 2007 10:29:44 -0400 (AST) Received: from beaver.fastcrypt.com (beaver.fastcrypt.com [64.7.141.17]) by postgresql.org (Postfix) with ESMTP id 3B78B9F949A for ; Wed, 7 Nov 2007 10:30:27 -0400 (AST) Received: from [192.168.1.14] (dcdsl.ebox.com [64.7.143.116]) by beaver.fastcrypt.com (Postfix) with ESMTP id 40048158051C; Wed, 7 Nov 2007 09:39:34 -0500 (EST) Cc: "Albe Laurenz" , pgsql-jdbc@postgresql.org Message-Id: <9EBA6F47-5F7D-4A48-A31B-AB2B46256CB1@fastcrypt.com> From: Dave Cramer To: Phillip Mills In-Reply-To: Content-Type: multipart/alternative; boundary=Apple-Mail-2--757223121 Mime-Version: 1.0 (Apple Message framework v912) Subject: Re: Beginning tuning Date: Wed, 7 Nov 2007 09:30:25 -0500 References: X-Mailer: Apple Mail (2.912) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200711/23 X-Sequence-Number: 17778 --Apple-Mail-2--757223121 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit On 7-Nov-07, at 9:24 AM, Phillip Mills wrote: > On 11/7/07, Albe Laurenz wrote: > The problem statement is bad, because why is it a > problem if the resources are not consumed? > > No, the statement is fine. It's a problem because it screws up > capacity planning by introducing unpredictability regarding > scaling. Since user transactions are mostly independent, our > experience is that increasing CPUs from 1-through-4 gives > approximately linear improvement. Adding more than 4 gives almost > no improvement. It's not enough to say that today's performance > requirements are met; it's also necessary to have some strategy for > expansion. > > 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. > > Kris gave me a useful answer to my actual question and I'll go on > from there. > Well, if you haven't actually tuned/optimized your database/hardware how can you make any of the above assumptions ? The number of CPU's on a database machine does not usually correlate with database performance. Dave > --Apple-Mail-2--757223121 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable
On 7-Nov-07, at = 9:24 AM, Phillip Mills wrote:

On = 11/7/07, Albe Laurenz <laurenz.albe@wien.gv.at> = wrote:
The problem = statement is bad, because why is it a
problem if the resources are = not consumed?

No, the statement is fine.  It's = a problem because it screws up capacity planning by introducing = unpredictability regarding scaling.  Since user transactions are = mostly independent, our experience is that increasing CPUs from = 1-through-4 gives approximately linear improvement.  Adding more = than 4 gives almost no improvement.  It's not enough to say that = today's performance requirements are met; it's also necessary to have = some strategy for expansion.

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.

Kris gave me a useful answer to my actual question and = I'll go on from there.

Well, if you = haven't actually tuned/optimized your database/hardware how can you make = any of the above assumptions ? The number of CPU's on a database machine = does not usually correlate with database performance.

Dave


= --Apple-Mail-2--757223121--