Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 67D571337B8E for ; Fri, 17 Dec 2010 09:20:30 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 83482-06 for ; Fri, 17 Dec 2010 13:20:24 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.186]) by mail.postgresql.org (Postfix) with ESMTP id C3B881337B8B for ; Fri, 17 Dec 2010 09:20:22 -0400 (AST) Received: from [192.168.1.6] (static-71-179-240-8.bltmmd.fios.verizon.net [71.179.240.8]) by mrelayeu.kundenserver.de (node=mreu2) with ESMTP (Nemesis) id 0Mex5B-1Pn3zI1TKL-00OOXE; Fri, 17 Dec 2010 14:20:21 +0100 Message-ID: <4D0B6393.8010400@2ndquadrant.com> Date: Fri, 17 Dec 2010 08:20:19 -0500 From: Greg Smith User-Agent: Thunderbird 2.0.0.24 (X11/20100317) MIME-Version: 1.0 To: selvi88 CC: pgsql-performance@postgresql.org Subject: Re: postgres performance tunning References: <1292502787617-3307846.post@n5.nabble.com> In-Reply-To: <1292502787617-3307846.post@n5.nabble.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:3sr/yDqak32lyS/ordf+pMeKolCdPlSz7KTlpN9wX8H OYzuu9LDIHZu6/fUbrYeQwIJ5RPusA/bHUQyNJwMiOsAK92ecq 5COcjZx6naA/xlNIVscZtd14TxA2JuZSAKANO69rUWOjRKXbNj gDiGBsuqdQEWCKnqBvWoO56k0Lh22BGN3BL+DjnbPLtXLYPMP0 brRXQByra3AxWcyVkE/O4CDWYHTmPDYfQ+RyF/b0NM= 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, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201012/210 X-Sequence-Number: 41662 selvi88 wrote: > I have a requirement for running more that 15000 queries per second. > Can you please tell what all are the postgres parameters needs to be changed > to achieve this. > Already I have 17GB RAM and dual core processor and this machine is > dedicated for database operation. > You can find a parameter tuning guide at http://wiki.postgresql.org/wiki/Tuning_Your_PostgreSQL_Server that may help you out. You are unlikely to hit 15K queries/second with a dual core processor. When I run really trivial queries using the pgbench program to simulate database activity, that normally gives about 7K queries/second/core. My dual-core laptop will do 13K/second for example. And real-world queries tend to be a bit more intensive than that. I would normally expect that a quad-core system would be needed to reach 15K even with trivial queries; my quad-core server at home will do 28K queries/second running pgbench. If your individual cores are really fast, you might just make it. -- Greg Smith 2ndQuadrant US greg@2ndQuadrant.com Baltimore, MD PostgreSQL Training, Services and Support www.2ndQuadrant.us "PostgreSQL 9.0 High Performance": http://www.2ndQuadrant.com/books