Hi Folks,
I am working on a rewrite of Brendan Greggs original cachestat (ftrace) script into bcc. What I was looking for was a steer in the right direction for what functions to trace. At present I trace the following.
add_to_page_cache_lru
account_page_dirtied
mark_page_accessed
mark_buffer_dirty
Where total = (mark_page_accessed - mark_buffer_dirty) & misses = (add_to_page_cache_lru - account_page_dirtied), from this I then work out the hit ratio etc. Is there any other key functions I should be tracing?
Thanks