public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Andi Kleen <andi@firstfloor.org>
To: Yannis Klonatos <klonatos@ics.forth.gr>
Cc: xfs@oss.sgi.com
Subject: Re: xfs_buf and buffercache/pagecache connection
Date: Mon, 31 May 2010 20:04:46 +0200	[thread overview]
Message-ID: <87aargt0ap.fsf@basil.nowhere.org> (raw)
In-Reply-To: <4C03E46B.9040407@ics.forth.gr> (Yannis Klonatos's message of "Mon\, 31 May 2010 19\:31\:39 +0300")

Yannis Klonatos <klonatos@ics.forth.gr> writes:

>         I was looking to add a kernel hook to my system in order to
> monitor buffer-cache hit and misses. Initially I was
> planning to add my modifications to the __getblk(). However, i noticed
> that XFS does not directly use the buffer-cache
> for its pages but it seems to implement its own buffer.
>         What I am now looking for is 1) the place where XFS checks
> whether a page exists in its buffer or not and 2)
> what are the possible interactions between xfs_buf and the Linux
> kernel buffer-cache.
>         I would appreciate any information regarding the above issues.

The kernel does not track all accesses, e.g. through mmap.
So you can only get misses (which is essentially IO rate and already
accounted), but not hits.

-Andi
-- 
ak@linux.intel.com -- Speaking for myself only.

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

  reply	other threads:[~2010-05-31 18:02 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-31 16:31 xfs_buf and buffercache/pagecache connection Yannis Klonatos
2010-05-31 18:04 ` Andi Kleen [this message]
2010-05-31 18:25   ` Yannis Klonatos
2010-05-31 22:06 ` Dave Chinner

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=87aargt0ap.fsf@basil.nowhere.org \
    --to=andi@firstfloor.org \
    --cc=klonatos@ics.forth.gr \
    --cc=xfs@oss.sgi.com \
    /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