* RPC slots count exported to userland
@ 2011-03-01 22:36 Simon Kirby
2011-03-01 23:44 ` Trond Myklebust
0 siblings, 1 reply; 2+ messages in thread
From: Simon Kirby @ 2011-03-01 22:36 UTC (permalink / raw)
To: linux-nfs
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-
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: RPC slots count exported to userland
2011-03-01 22:36 RPC slots count exported to userland Simon Kirby
@ 2011-03-01 23:44 ` Trond Myklebust
0 siblings, 0 replies; 2+ messages in thread
From: Trond Myklebust @ 2011-03-01 23:44 UTC (permalink / raw)
To: Simon Kirby; +Cc: linux-nfs
On Tue, 2011-03-01 at 14:36 -0800, Simon Kirby wrote:
> 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
--
Trond Myklebust
Linux NFS client maintainer
NetApp
Trond.Myklebust@netapp.com
www.netapp.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-03-01 23:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-01 22:36 RPC slots count exported to userland Simon Kirby
2011-03-01 23:44 ` Trond Myklebust
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).