Mulyadi Santosa wrote:
The quirk happened here. I disabled the swap areas (swapoff -a) and AFAIK this would force the kernel to swap-in all the currently swapped out pages. I re-checked the counters and strangely the swapped counters didn't go back to zero. What did I do wrong here?
You forgot to change a few code paths: 1) munmap, zap_page_range and friends 2) swapoff Other than that it looks like it should work. -- "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/