Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UJ04h-00012u-P8 for pgsql-hackers@arkaria.postgresql.org; Fri, 22 Mar 2013 11:23:55 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UJ04h-0001PW-5b for pgsql-hackers@arkaria.postgresql.org; Fri, 22 Mar 2013 11:23:55 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UJ04f-0001PR-TY for pgsql-hackers@postgresql.org; Fri, 22 Mar 2013 11:23:53 +0000 Received: from szxga01-in.huawei.com ([119.145.14.64]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UJ04a-0000GL-U8 for pgsql-hackers@postgresql.org; Fri, 22 Mar 2013 11:23:53 +0000 Received: from 172.24.2.119 (EHLO szxeml211-edg.china.huawei.com) ([172.24.2.119]) by szxrg01-dlp.huawei.com (MOS 4.3.4-GA FastPath queued) with ESMTP id AZN12064; Fri, 22 Mar 2013 19:23:45 +0800 (CST) Received: from SZXEML456-HUB.china.huawei.com (10.82.67.199) by szxeml211-edg.china.huawei.com (172.24.2.182) with Microsoft SMTP Server (TLS) id 14.1.323.7; Fri, 22 Mar 2013 19:23:40 +0800 Received: from blrprnc09ns (10.18.96.98) by szxeml456-hub.china.huawei.com (10.82.67.199) with Microsoft SMTP Server id 14.1.323.7; Fri, 22 Mar 2013 19:23:42 +0800 From: Amit Kapila To: "'Atri Sharma'" CC: "'Pg Hackers'" 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> <514c39b2.c46f0e0a.7ee8.6b68SMTPIN_ADDED_BROKEN@mx.google.com> In-Reply-To: Subject: Re: Page replacement algorithm in buffer cache Date: Fri, 22 Mar 2013 16:53:41 +0530 Message-ID: <007d01ce26ef$b5705440$2050fcc0$@kapila@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Ac4m7Ugng9Nwk9ddTKSY8EHtN6/2fgAAejlg Content-Language: en-us X-Originating-IP: [10.18.96.98] X-CFilter-Loop: Reflected X-Pg-Spam-Score: -3.4 (---) 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 Friday, March 22, 2013 4:36 PM Atri Sharma wrote: > > > > What would you do if the only young page has usage count zero during > second > > sweep. > > Umm....The same approach we take when there is no page with usage > count zero in a sweep in the current algorithm? It would give more priority to young page as compare to more used page. I don't know if that would be correct thing to do. With Regards, Amit Kapila. -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers