linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: NeilBrown <neilb@suse.de>
To: "J. Bruce Fields" <bfields@fieldses.org>
Cc: Jeff Layton <jlayton@redhat.com>, Simo Sorce <simo@redhat.com>,
	linux-nfs@vger.kernel.org
Subject: Re: should we change how the kernel detects whether gssproxy is running?
Date: Wed, 1 Jan 2014 09:56:20 +1100	[thread overview]
Message-ID: <20140101095620.0ab48051@notabene.brown> (raw)
In-Reply-To: <20131231180123.GA12875@fieldses.org>

[-- Attachment #1: Type: text/plain, Size: 1116 bytes --]

On Tue, 31 Dec 2013 13:01:23 -0500 "J. Bruce Fields" <bfields@fieldses.org>
wrote:

> On Tue, Dec 31, 2013 at 07:33:00AM -0500, Jeff Layton wrote:
> > I'm a bit concerned with how /proc/net/rpc/use-gss-proxy works...
> > 
> > For one thing, when the kernel first boots any read against that file
> > hangs. That's going to be extremely problematic for certain tools that
> > scrape info out of /proc for troubleshooting purposes (e.g. Red Hat's
> > sosreport tool).
> 
> Is that the only file under /proc for which that's true?  (E.g. the rpc
> cache channel files probably do the same, don't they?)  I was assuming
> tools like sosreport need to work from lists of specific paths.

The rpc cache channel files do not block on reads, so 'cat' works well on
them.
A process (like mountd) that wasn't to see new additions will use select (or
poll) for an 'exception' condition, and then read.

I think that it is best of all files in /proc (or /sys) would support 'cat'.
If I "tar" up "/proc" on my notebook it doesn't block ... though it does take
quite a while on /proc/kcore :-)

NeilBrown

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 828 bytes --]

  parent reply	other threads:[~2013-12-31 22:56 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-31 12:33 should we change how the kernel detects whether gssproxy is running? Jeff Layton
2013-12-31 18:01 ` J. Bruce Fields
2013-12-31 20:52   ` Simo Sorce
2014-01-02 18:52     ` J. Bruce Fields
2013-12-31 22:56   ` NeilBrown [this message]
2013-12-31 23:02     ` Jeff Layton
2014-01-02 18:55     ` J. Bruce Fields
2014-01-01 12:21   ` Jeff Layton

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=20140101095620.0ab48051@notabene.brown \
    --to=neilb@suse.de \
    --cc=bfields@fieldses.org \
    --cc=jlayton@redhat.com \
    --cc=linux-nfs@vger.kernel.org \
    --cc=simo@redhat.com \
    /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).