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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxx

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




[Index of Archives]     [Linux XFS Devel]     [Linux Filesystem Development]     [Filesystem Testing]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux