Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UMnuQ-0001da-4d for pgsql-hackers@arkaria.postgresql.org; Mon, 01 Apr 2013 23:13:02 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UMnuP-00065t-JQ for pgsql-hackers@arkaria.postgresql.org; Mon, 01 Apr 2013 23:13:01 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UMnuO-00065G-Fu for pgsql-hackers@postgresql.org; Mon, 01 Apr 2013 23:13:00 +0000 Received: from 99-153-64-76.uvs.austtx.sbcglobal.net ([99.153.64.76] helo=noel.decibel.org) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UMnuK-0000Dg-KE for pgsql-hackers@postgresql.org; Mon, 01 Apr 2013 23:13:00 +0000 Received: from decibook.local (rrcs-67-79-71-90.sw.biz.rr.com [67.79.71.90]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by noel.decibel.org (Postfix) with ESMTPSA id 117646D489; Mon, 1 Apr 2013 23:12:54 +0000 (UTC) Message-ID: <515A1474.7030002@nasby.net> Date: Mon, 01 Apr 2013 18:12:52 -0500 From: Jim Nasby User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:17.0) Gecko/20130307 Thunderbird/17.0.4 MIME-Version: 1.0 To: Amit Kapila CC: 'Ants Aasma' , 'Merlin Moncure' , 'Tom Lane' , 'Atri Sharma' , 'Greg Stark' , 'PostgreSQL-development' Subject: Re: Page replacement algorithm in buffer cache References: <514bf302.84d5440a.43f2.ffffe411SMTPIN_ADDED_BROKEN@mx.google.com> <08BBC126-D375-4743-B9A6-D1320D05D5C7@gmail.com> <514c3395.487a420a.28d1.764eSMTPIN_ADDED_BROKEN@mx.google.com> <3985.1363960959@sss.pgh.pa.us> <29181.1363981925@sss.pgh.pa.us> <29748.1363983378@sss.pgh.pa.us> <514D29CB.5080600@nasby.net> <000001ce27aa$edf71680$c9e54380$@kapila@huawei.com> In-Reply-To: <000001ce27aa$edf71680$c9e54380$@kapila@huawei.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -0.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 3/23/13 4:43 AM, Amit Kapila wrote: > I have tried one of the idea's : Adding the buffers background writer finds > reusable to freelist. > http://www.postgresql.org/message-id/6C0B27F7206C9E4CA54AE035729E9C382852FF97@szxeml509-mbs > This can reduce the clock swipe as it can find buffers from freelist. That's a nice potential efficiency gain, but it's not the same as having a separate bg process charged with keeping pages on the freelist. I believe a separate process would be useful in a wider variety of workloads, because it's not dependent on stumbling across 0 count blocks; it would actively work to "produce" zero count blocks when none existed and then free-list them. > It shows performance improvement for read loads when data can be contained > in shared buffers, > but when the data becomes large and (I/O) is involved, it shows some dip as > well. Do you remember off-hand why it slowed down with I/O so I don't have to read the whole thread? :) Was it just a matter of it evicting dirty pages sooner than it would otherwise? -- Jim C. Nasby, Data Architect jim@nasby.net 512.569.9461 (cell) http://jim.nasby.net -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers