Question: How to use systemtap count the total inode read from disk

Dave Chinner david at fromorbit.com
Mon Sep 29 23:39:13 CDT 2014


On Tue, Sep 30, 2014 at 02:39:28AM +0000, Ma, Jianpeng wrote:
> Hi all,
>   I want to count the total read inode from disk. 

XFS already does that for you:

$ pminfo -tf xfs.inode_ops.ig_missed

xfs.inode_ops.ig_missed [number of failed in memory inode lookup operations]
    value 1835354
$

And that's the number read from disk as reported by PCP.  If you
don't have PCP:

$ awk '/ig/ {print $5}' /proc/fs/xfs/stat
1835354
$

Cheers,

Dave.
-- 
Dave Chinner
david at fromorbit.com



More information about the xfs mailing list