Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964850AbVITDLd (ORCPT ); Mon, 19 Sep 2005 23:11:33 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S964852AbVITDLd (ORCPT ); Mon, 19 Sep 2005 23:11:33 -0400 Received: from [210.76.114.20] ([210.76.114.20]:55236 "EHLO ccoss.com.cn") by vger.kernel.org with ESMTP id S964850AbVITDLd (ORCPT ); Mon, 19 Sep 2005 23:11:33 -0400 Message-ID: <432F7DD5.6050204@ccoss.com.cn> Date: Tue, 20 Sep 2005 11:11:17 +0800 From: liyu User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: LKML , Linux-MM Subject: [Question] How to understand Clock-Pro algorithm? Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1616 Lines: 60 Hi, every in LKML/linux-mm: I have been read CLOCK-Pro paper since last week, and am going to write one python demo. After just read , I think I can understand it, however once I begin implement it, I found there are many point that not clear. First, two important parameters Mc, Mh, In that paper, it assume total memory size is M. (in number of page) There is a formula: M = Mc+Mh. Mc, number of cold pages in memory, Mh, number of hot pages in memory. So, in clock list, we can keep track 2M page metadatas at most, we may include M non-resident pages. In '4.3 operationes on searching vicim pages' , the authors said "we keep track of the number of non-resident cold pages, Once the number exceeds m the memory size in number of pages. we terminted the test period of the cold page pointed to by HAND-test." My question is out:As this paper words, the number of cold page is total of resident cold pages and non-resident pages. It's the seem number of non-resident cold pages can not beyond M at all! I also have more questions on CLOCK-Pro. but this question is most doublt for me. Any clear word is welcome. thank in advanced. I suppose experience is more important than theory in page-replacement field, is it right? liyu - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/