Received: from localhost (unknown [200.46.204.184]) by developer.postgresql.org (Postfix) with ESMTP id A7B9D2E0039 for ; Mon, 14 Apr 2008 08:26:01 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 21487-08 for ; Mon, 14 Apr 2008 08:25:47 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from ptb-relay03.plus.net (ptb-relay03.plus.net [212.159.14.214]) by developer.postgresql.org (Postfix) with ESMTP id C42EE2E002E for ; Mon, 14 Apr 2008 08:25:53 -0300 (ADT) Received: from [84.51.143.99] (helo=server3.office.archonet.com) by ptb-relay03.plus.net with esmtp (Exim) id 1JlMoj-0001ey-MC; Mon, 14 Apr 2008 12:25:45 +0100 Received: from [192.168.1.36] (dell36.office.archonet.com [192.168.1.36]) by server3.office.archonet.com (Postfix) with ESMTP id 4BB2C274059; Mon, 14 Apr 2008 12:25:45 +0100 (BST) Message-ID: <48033F39.1060004@archonet.com> Date: Mon, 14 Apr 2008 12:25:45 +0100 From: Richard Huxton User-Agent: Thunderbird 2.0.0.12 (X11/20080213) MIME-Version: 1.0 To: Gregory Stark CC: Gaetano Mendola , pgsql-performance@postgresql.org Subject: Re: shared_buffers performance References: <48032021.90704@gmail.com> <87r6d8hfgw.fsf@oxford.xeocode.com> In-Reply-To: <87r6d8hfgw.fsf@oxford.xeocode.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Plusnet-Relay: 36db6e482e1f71bf5e6cc9d42d4b5ec2 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200804/175 X-Sequence-Number: 29668 Gregory Stark wrote: > "Gaetano Mendola" writes: > >> The following graph reports the results: >> >> http://img84.imageshack.us/my.php?image=totalid7.png > > That's a *fascinating* graph. It is, isn't it? Thanks Gaetano. > It seems there are basically three domains. > > The small domain where the database fits in shared buffers -- though actually > this domain seems to hold until the accounts table is about 1G so maybe it's > more that the *indexes* fit in memory. Here larger shared buffers do clearly > win. I think this is actually in two parts - you can see it clearly on the red trace (64MB), less so on the green (256MB) and not at all on the blue (512MB). Presumably the left-hand steeper straight-line decline starts with the working-set in shared-buffers, and the "knee" is where we're down to just indexes in shared-buffers. With the blue I guess you just get the first part, because by the time you're overflowing shared-buffers, you've not got enough disk-cache to take up the slack for you. I wonder what difference 8.3 makes to this? -- Richard Huxton Archonet Ltd