From: allan mcaleavy <allan.mcaleavy@gmail.com>
To: linux-mm@kvack.org
Subject: tracing linux page cache usage.
Date: Wed, 9 Dec 2015 20:40:04 +0000 [thread overview]
Message-ID: <139BE42D-F635-46A0-B7E4-216F9ADF6137@gmail.com> (raw)
[-- 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 --]
reply other threads:[~2015-12-09 20:40 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=139BE42D-F635-46A0-B7E4-216F9ADF6137@gmail.com \
--to=allan.mcaleavy@gmail.com \
--cc=linux-mm@kvack.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox