Hi Zheng... On Wed, Feb 8, 2012 at 04:21, Zheng Da <zhengda1936@xxxxxxxxx> wrote: > Hello, > > I'm trying to understand the page replacement policy in the latest Linux > kernel and reimplement a similar one in the user space. > As far as I can understand from ULK and the code, there are two lists: > active list and inactive list. > Here I only consider the case of the *page cache*: > When a page is added to the page cache (by add_to_page_cache_lru), it is > also added to the inactive list and its reference bit is set (by > mark_page_accessed). I am not really sure about it. According to UTLK (I know, it is dated), page goes as "inactive, not referenced" first. -- regards, Mulyadi Santosa Freelance Linux trainer and consultant blog: the-hydra.blogspot.com training: mulyaditraining.blogspot.com _______________________________________________ Kernelnewbies mailing list Kernelnewbies@xxxxxxxxxxxxxxxxx http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies