Skip to contentSkip to conversation

RPC slots count exported to userland

DISCUSSION Simon Kirby 2 participants 2 messages Mar 1, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Is there a place where a summary of the same table which gets dumped out by "echo 0 > /proc/sys/sunrpc/debug" is exported normally to userland?

"nfsstat" accesses /proc/net/rpc/nfs and /proc/net/rpc/nfsd but they just seem to be running counts. It would be nice to set up a way to monitor when the system is close to running out of RPC slots so we can try to kick out whatever mount might be stuck or similar to avoid an entire outage.

Cheers,

Simon-

#1 lore raw
Quoted 8 lines · Simon Kirby

Is there a place where a summary of the same table which gets dumped out by "echo 0 > /proc/sys/sunrpc/debug" is exported normally to userland?

"nfsstat" accesses /proc/net/rpc/nfs and /proc/net/rpc/nfsd but they just seem to be running counts. It would be nice to set up a way to monitor when the system is close to running out of RPC slots so we can try to kick out whatever mount might be stuck or similar to avoid an entire outage.

You should be able to get that information from
/proc/self/mountstats

See the 'mountstats' python script in recent nfs-utils sources for details.

Cheers
Trond

Signature · 6 lines
Trond Myklebust
Linux NFS client maintainer

NetApp
[email protected]
www.netapp.com