Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UNZIx-0001WF-Fy for pgsql-hackers@arkaria.postgresql.org; Thu, 04 Apr 2013 01:49:31 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UNZIw-00075I-Q3 for pgsql-hackers@arkaria.postgresql.org; Thu, 04 Apr 2013 01:49:30 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UNZIv-00075C-OB for pgsql-hackers@postgresql.org; Thu, 04 Apr 2013 01:49:29 +0000 Received: from moutng.kundenserver.de ([212.227.17.9]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UNZIo-0004EQ-Ln for pgsql-hackers@postgresql.org; Thu, 04 Apr 2013 01:49:29 +0000 Received: from [192.168.1.110] (mail.highperformancepostgresql.com [71.179.240.8]) by mrelayeu.kundenserver.de (node=mrbap0) with ESMTP (Nemesis) id 0M6PCF-1UZAHC2RhL-00yRRr; Thu, 04 Apr 2013 03:49:21 +0200 Message-ID: <515CDC20.5090005@2ndQuadrant.com> Date: Wed, 03 Apr 2013 21:49:20 -0400 From: Greg Smith User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:14.0) Gecko/20120713 Thunderbird/14.0 MIME-Version: 1.0 To: pgsql-hackers@postgresql.org Subject: Re: Page replacement algorithm in buffer cache References: <29181.1363981925@sss.pgh.pa.us> <29748.1363983378@sss.pgh.pa.us> <20130401210920.GC7244@alap2.anarazel.de> <515A1393.9090908@nasby.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:QJtegYEmSUZtCJ5gw+zNX4ri7YNb0cF74qZLisxJR47 fSrWjUqmfKJUTiXOEpgjc6HCvDhujCWbHBrQi3ge+PFPXnxctI TfJZP/4NmXh8MJNfWWC5+vbuTb3cX/K6RGT6RHYq0Tv+FzgYj9 RI1yGWnlmrXCtdFGICEiwwBETIhxyBm1IFKCAD7MXh/Sk5azCf DPgt2bteL8ZSwvE1X6Zyu9wCjhIY9djhOvlkQ/r0hd+Mmol/rl PnkRE3x0h2N/jpVjw8KbgD+57YV8yTmyV4Y+ty3E+eybl8blZu 0d6Z+I1/KP0dnsC8+H7NK7F3sjZRGMH+eCtvGdqziwaBtl3zaF mZgLvJDKM318klBEv054= X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On 4/2/13 11:54 AM, Robert Haas wrote: > But, having said that, I still think the best idea is what Andres > proposed, which pretty much matches my own thoughts: the bgwriter > needs to populate the free list, so that buffer allocations don't have > to wait for linear scans of the buffer array. I was hoping this one would make it to a full six years of being on the TODO list before it came up again, missed it by a few weeks. The funniest part is that Amit even submitted a patch on this theme a few months ago without much feedback: http://www.postgresql.org/message-id/6C0B27F7206C9E4CA54AE035729E9C382852FF97@szxeml509-mbs That stalled where a few things have, on a) needing more regression test workloads, and b) wondering just what the deal with large shared_buffers setting degrading performance was. I saw refactoring in this area as waiting behind it being easier to experiment with adding new processes, but that barrier has fallen now. Maybe it needs a new freelist process, maybe it doesn't, today the code needed to try both is relatively cheap. The other thing that always seemed to stop me was never having a typical Linux system big enough to hit some of these problems available all the time. What I did this week on that front was just go buy a 24 core server with 64GB of RAM that lives in my house. I just need to keep it two floors away if I want to sleep at night. -- Greg Smith 2ndQuadrant US greg@2ndQuadrant.com Baltimore, MD PostgreSQL Training, Services, and 24x7 Support www.2ndQuadrant.com -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers