Received: from localhost (unknown [200.46.204.183]) by developer.postgresql.org (Postfix) with ESMTP id A7D4C2E0045 for ; Mon, 14 Apr 2008 12:43:05 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 42799-07 for ; Mon, 14 Apr 2008 12:42:58 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from westnet.com (westnet.com [216.187.52.2]) by developer.postgresql.org (Postfix) with ESMTP id 5047E2E0039 for ; Mon, 14 Apr 2008 12:42:58 -0300 (ADT) Received: from westnet.com (localhost [127.0.0.1]) by westnet.com (8.14.0/8.14.0) with ESMTP id m3EFgpgB008523; Mon, 14 Apr 2008 11:42:51 -0400 (EDT) Received: from localhost (gsmith@localhost) by westnet.com (8.14.0/8.13.2/Submit) with ESMTP id m3EFgouo008519; Mon, 14 Apr 2008 11:42:50 -0400 (EDT) X-Authentication-Warning: westnet.com: gsmith owned process doing -bs Date: Mon, 14 Apr 2008 11:42:50 -0400 (EDT) From: Greg Smith X-X-Sender: gsmith@westnet.com To: Gaetano Mendola cc: "pgsql-performance@postgresql.org" Subject: Re: shared_buffers performance In-Reply-To: <48032021.90704@gmail.com> Message-ID: References: <48032021.90704@gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200804/177 X-Sequence-Number: 29670 On Mon, 14 Apr 2008, Gaetano Mendola wrote: > I'm using postgres 8.2.3 on Red Hat compiled with GCC 3.4.6. 8.2.3 has a performance bug that impacts how accurate pgbench results are; you really should be using a later version. > http://img84.imageshack.us/my.php?image=totalid7.png > as you can see using 64MB as value for shared_buffers I'm obtaining > better results. I'm assuming you've read my scaling article at http://www.westnet.com/~gsmith/content/postgresql/pgbench-scaling.htm since you're using the graph template I suggest there. If you look carefully at your results, you are getting better results for higher shared_buffers values in the cases where performance is memory bound (the lower scale numbers). Things reverse so that more buffers gives worse performance only when your scale >100. I wouldn't conclude too much from that. The pgbench select test is doing a low-level operation that doesn't benefit as much from having more memory available to PostgreSQL instead of the OS as a real-world workload will. -- * Greg Smith gsmith@gregsmith.com http://www.gregsmith.com Baltimore, MD