linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* tracing linux page cache usage.
@ 2015-12-09 20:40 allan mcaleavy
  0 siblings, 0 replies; only message in thread
From: allan mcaleavy @ 2015-12-09 20:40 UTC (permalink / raw)
  To: linux-mm

[-- Attachment #1: Type: text/plain, Size: 543 bytes --]

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
Allan 

[-- Attachment #2: Type: text/html, Size: 1879 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-12-09 20:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-09 20:40 tracing linux page cache usage allan mcaleavy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox