linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Trond Myklebust <Trond.Myklebust@netapp.com>
To: Simon Kirby <sim@hostway.ca>
Cc: linux-nfs@vger.kernel.org
Subject: Re: RPC slots count exported to userland
Date: Tue, 01 Mar 2011 18:44:35 -0500	[thread overview]
Message-ID: <1299023075.2869.3.camel@heimdal.trondhjem.org> (raw)
In-Reply-To: <20110301223658.GA9759@hostway.ca>

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


      reply	other threads:[~2011-03-01 23:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-01 22:36 RPC slots count exported to userland Simon Kirby
2011-03-01 23:44 ` Trond Myklebust [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1299023075.2869.3.camel@heimdal.trondhjem.org \
    --to=trond.myklebust@netapp.com \
    --cc=linux-nfs@vger.kernel.org \
    --cc=sim@hostway.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).