Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id A23729F94A2 for ; Wed, 7 Nov 2007 10:25:02 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 35235-09 for ; Wed, 7 Nov 2007 10:24:59 -0400 (AST) Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.186]) by postgresql.org (Postfix) with ESMTP id 1F7909F949A for ; Wed, 7 Nov 2007 10:24:58 -0400 (AST) Received: by fk-out-0910.google.com with SMTP id b27so2378450fka for ; Wed, 07 Nov 2007 06:24:57 -0800 (PST) Received: by 10.82.175.17 with SMTP id x17mr15149869bue.1194445497156; Wed, 07 Nov 2007 06:24:57 -0800 (PST) Received: by 10.82.108.10 with HTTP; Wed, 7 Nov 2007 06:24:57 -0800 (PST) Message-ID: Date: Wed, 7 Nov 2007 09:24:57 -0500 From: "Phillip Mills" To: "Albe Laurenz" Subject: Re: Beginning tuning Cc: pgsql-jdbc@postgresql.org In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_38315_8015122.1194445497149" References: X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200711/22 X-Sequence-Number: 17777 ------=_Part_38315_8015122.1194445497149 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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. ------=_Part_38315_8015122.1194445497149 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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.


------=_Part_38315_8015122.1194445497149--