- The iostat command is used for monitoring system input/output device loading by observing the time the devices are active in relation to their average transfer rates. The iostat command generates reports that can be used to change system configuration to better balance the input/output load between physical disks.
- Another recommended option is to use nfsstat command to displays statistics kept about NFS client and server activity, active user activity, exported directories, and mount information. In the absence of any options, nfsstat displays NFS client and server statistics.
- /proc/net/rpc/nfsd – procfs-based interface to kernel NFS server statistics. Use cat command to see stats.
- /proc/net/rpc/nfs – procfs-based interface to kernel NFS client statistics. Use cat command to see nfs client stats.
- /proc/mounts – procfs-based interface to the mounted filesystems
Tutorial details | |
---|---|
Difficulty level | Intermediate |
Root privileges | Yes |
Requirements | None |
Est. reading time | 5m |
iostat command syntax and examples
The -n option displays the NFS-directory statistic. Data displayed are valid only with kernels 2.6.17 and newer. This option is exclusive to the -x option:# iostat -x -n
OR# iostat -n
Sample outputs:
Linux 2.6.32-358.23.2.el6.x86_64 (server1.cyberciti.biz) 11/11/2013 _x86_64_ (8 CPU)avg-cpu: %user %nice %system %iowait %steal %idle 1.30 0.00 0.43 0.03 0.00 98.24Device: rrqm/s wrqm/s r/s w/s rsec/s wsec/s avgrq-sz avgqu-sz await svctm %utilsda 0.04 91.47 0.19 100.13 7.12 1532.82 15.35 0.14 1.35 0.08 0.83
Say hello to nfstat command
The nfsstat displays statistics kept about NFS client and server activity:# nfsstat
Sample outputs:
Show all information about all versions of NFS
# nfsstat -o all -234
OR# nfsstat --verbose -234
Show all information about active versions of NFS
# nfsstat -o all
Show statistics for NFS version 3 server
# nfsstat --nfs --server -3
Show information about mounted NFS filesystems
# nfsstat -m
Recommend readings
- How to find out CPU and Disk utilization under Linux using iostat command.
- Man pages: nfs(5)