Bithika Khargharia wrote:
Is it possible to obtain a measure of the average (or snapshot) page miss rate in linux? I am using kernel 2.6.18
Yes, but you're going to want to decide exactly what you want to measure. If you want to read just the hit/miss rate of the read(2) and write(2) system calls and friends, you can modify the code in mm/filemap.c a little to catch things. Mmap()ed regions will be a lot harder to measure, since you can only easily measure the misses. The hits will be handled entirely in hardware by the MMU, once the page tables are set up... -- Politics is the struggle between those who want to make their country the best in the world, and those who believe it already is. Each group calls the other unpatriotic. -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/