linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "J. Bruce Fields" <bfields@fieldses.org>
To: Rick Koshi <nfs-bug-report@more-right-rudder.com>
Cc: linux-nfs@vger.kernel.org
Subject: Re: Possible NFSv4 locking bug
Date: Wed, 2 Mar 2011 14:15:45 -0500	[thread overview]
Message-ID: <20110302191545.GA3981@fieldses.org> (raw)
In-Reply-To: <201103012231.p21MV68F018619@hope.more-right-rudder.com>

On Tue, Mar 01, 2011 at 05:31:06PM -0500, Rick Koshi wrote:
> "J. Bruce Fields" writes:
> > On Mon, Feb 28, 2011 at 10:27:23AM -0500, Rick Koshi wrote:
> > > 
> > > I've found that when I lock an NFS-mounted file on a client, the server
> > > reserves an open file descriptor (as seen in /proc/sys/fs/file-nr).
> > 
> > So it looks like that's the total number of allocated struct file's
> > across the system?
> 
> That sounds about right.  To be honest, I'm not 100% sure exactly
> what that file reports.  But I do know that when it got that large,
> I stopped being able to open new files as any non-root user.  Running
> basic things like 'ls' gave me errors, as they were unable to open
> shared libraries to run.
> 
> If you like, you can read the post I originally submitted
> on serverfault.com, when I was trying to figure this out.
> It documents a lot of what I tried:
> 
>    http://serverfault.com/questions/235059/vfs-file-max-limit-1231582-reached

Yeah, this is an nfsv4-specific bug, and I can reproduce it easily by
e.g. running cthon -l in a loop on the client while monitoring file-nr
on the server.  I see the problem, but there's more than one thing to
fix there, so it needs more thought; I'll try to have a patch out by the
end of the day.

--b.

  reply	other threads:[~2011-03-02 19:15 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-28 15:27 Possible NFSv4 locking bug Rick Koshi
2011-03-01 15:53 ` J. Bruce Fields
2011-03-01 22:31   ` Rick Koshi
2011-03-02 19:15     ` J. Bruce Fields [this message]
2011-03-03  6:20       ` J. Bruce Fields
2011-03-04 14:16         ` Rick Koshi
  -- strict thread matches above, loose matches on Subject: below --
2011-03-06 17:34 Ivo Přikryl
2011-03-06 23:59 Ivo Přikryl
2011-03-07 18:21 ` J. Bruce Fields

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=20110302191545.GA3981@fieldses.org \
    --to=bfields@fieldses.org \
    --cc=linux-nfs@vger.kernel.org \
    --cc=nfs-bug-report@more-right-rudder.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).