]> bbs.cooldavid.org Git - net-next-2.6.git/commit - fs/nfs/iostat.h
NFS: introduce mechanism for tracking NFS client metrics
authorChuck Lever <cel@netapp.com>
Mon, 20 Mar 2006 18:44:13 +0000 (13:44 -0500)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 20 Mar 2006 18:44:13 +0000 (13:44 -0500)
commitd9ef5a8c26aab09762afce43df64736720b4860e
tree01ec0e16b19d7e418f26f1218113bb0f90b1a2e1
parentc8bded96aa8735823e53c95a26177987ebb19a90
NFS: introduce mechanism for tracking NFS client metrics

Add a per-superblock performance counter facility to the NFS client.  This
facility mimics the counters available for block devices and for
networking.  Expose these new counters via the new /proc/self/mountstats
interface.

Thanks to Andrew Morton and Trond Myklebust for their review and comments.

Test plan:
fsx and iozone on UP and SMP systems, with and without pre-emption.  Watch
for memory overwrite bugs, and performance loss (significantly more CPU
required per op).

Signed-off-by: Chuck Lever <cel@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/inode.c
fs/nfs/iostat.h [new file with mode: 0644]
include/linux/nfs_fs_sb.h