xfs_buf and buffercache/pagecache connection

Andi Kleen andi at firstfloor.org
Mon May 31 13:04:46 CDT 2010


Yannis Klonatos <klonatos at 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 at linux.intel.com -- Speaking for myself only.




More information about the xfs mailing list