On Sat, 7 Aug 2004, Heap Ho Tan wrote: > I am wondering if someone could explain or point me to > the piece of code detailing linux page replacement > algorithm. > I know that it using some sort of 1 bit clock LRU > algorithm .. I am trying to change it to a 2 bit > algorithm. If you haven't looked at the kernel code yet, I can't help you here. The replacement is different in different kernel versions... > Also where can I find the stock kernel code. ftp.kernel.org Rik -- "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." - Brian W. Kernighan -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/