Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 8DD81B5DBB7 for ; Fri, 10 Jun 2011 08:58:39 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 06796-02 for ; Fri, 10 Jun 2011 11:58:32 +0000 (UTC) X-Greylist: delayed 00:22:07.254417 by SQLgrey-1.7.6 Received: from mail-vx0-f174.google.com (mail-vx0-f174.google.com [209.85.220.174]) by mail.postgresql.org (Postfix) with ESMTP id A6473B5D944 for ; Fri, 10 Jun 2011 08:58:32 -0300 (ADT) Received: by vxi39 with SMTP id 39so2067807vxi.19 for ; Fri, 10 Jun 2011 04:58:32 -0700 (PDT) Received: by 10.236.153.231 with SMTP id f67mr958425yhk.52.1307705357778; Fri, 10 Jun 2011 04:29:17 -0700 (PDT) Received: from AnibalVAIO (host-5-132.a5.cmm.com.py [190.2.196.132]) by mx.google.com with ESMTPS id o47sm1241168yhn.44.2011.06.10.04.29.14 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 10 Jun 2011 04:29:16 -0700 (PDT) From: "Anibal David Acosta" To: Subject: how much postgres can scale up? Date: Fri, 10 Jun 2011 07:29:14 -0400 Message-ID: <000601cc2761$a2e3a280$e8aae780$@devshock.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 14.0 Thread-Index: AcwnX139vGKUEBWIQwiKTpn4ME/IkA== Content-Language: es-py X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201106/113 X-Sequence-Number: 44046 I have a function in pgsql language, this function do some select to some tables for verify some conditions and then do one insert to a table with NO index. Update are not performed in the function When 1 client connected postgres do 180 execution per second With 2 clients connected postgres do 110 execution per second With 3 clients connected postgres do 90 execution per second Finally with 6 connected clients postgres do 60 executions per second (totally 360 executions per second) While testing, I monitor disk, memory and CPU and not found any overload. I know that with this information you can figure out somethigns, but in normal conditions, Is normal the degradation of performance per connection when connections are incremented? Or should I spect 180 in the first and something similar in the second connection? Maybe 170? The server is a dual xeon quad core with 16 GB of ram and a very fast storage The OS is a windows 2008 R2 x64 Thanks Anibal