All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ray Ferguson <nfs-Uh4cUGhLB8SgSpxsJD1C4w@public.gmane.org>
To: linux-nfs@vger.kernel.org
Subject: NFSERR_NOSPC nfs-client bug
Date: Mon, 17 Mar 2008 19:21:08 -0600	[thread overview]
Message-ID: <200803172021.08327.nfs@share-foo.com> (raw)

I've discovered a bug in the linux nfs client.  Specifically it ignores 
NFSERR_NOSPC messages (code 28) from an NFS server and happily continues 
pounding it with data.

This causes some rather unfortunate consequences on linux nfs servers by 
exhausting resources.  In 2.4, all cpus peg at 100% usage under the system 
catagory.  In 2.6, at least one core gets pegged at 100% iowait, but this 
still triggers cascading load issues.

So far I've tested:

Opensuse-10.3 = Linux 2.6.22 (client bug confirmed)
RHAS4 = 2.6.9 (client bug confirmed)
RHAS3 = 2.4.21(No Bug: Pre-nfs4)
Solaris 9 = (No Bug)

This can be reproduced by creating a small filesystem and exporting it via 
nfs.  Then mount it with a buggy client and "cat /dev/zero > /nfs-share/foo"

The expected behavior is for the client to error out the write with a message 
informing you that the filesystem is out of space.  Instead, the client keeps 
sending data and the servers kernel take a beating.

I've checked the wire and confirmed that the server is sending the NOSPC 
message back to the client.  Most of my testing has been nfs3 though I did 
some brief testing w/ nfs2 (bug still present).  I have kernel sysrq debug 
data and packet captures if anyone is interested.

If this is not the correct place to report this, I would be grateful if anyone 
could redirect me.

Thank you for your help.

-
Ray Ferguson

             reply	other threads:[~2008-03-18  1:31 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-18  1:21 Ray Ferguson [this message]
     [not found] ` <200803172021.08327.nfs-Uh4cUGhLB8SgSpxsJD1C4w@public.gmane.org>
2008-03-18  1:43   ` NFSERR_NOSPC nfs-client bug Greg Banks
     [not found]     ` <47DF1E5C.9090607-cP1dWloDopni96+mSzHFpQC/G2K4zDHf@public.gmane.org>
2008-03-18  1:50       ` Ray Ferguson
     [not found]         ` <200803172050.22223.nfs-Uh4cUGhLB8SgSpxsJD1C4w@public.gmane.org>
2008-03-18  2:08           ` Greg Banks
     [not found]             ` <47DF2415.6070802-cP1dWloDopni96+mSzHFpQC/G2K4zDHf@public.gmane.org>
2008-03-18  3:09               ` Trond Myklebust
     [not found]                 ` <1205809775.22258.9.camel-rJ7iovZKK19ZJLDQqaL3InhyD016LWXt@public.gmane.org>
2008-03-18  4:03                   ` Greg Banks
     [not found]                     ` <47DF3F01.9050504-cP1dWloDopni96+mSzHFpQC/G2K4zDHf@public.gmane.org>
2008-03-18  6:08                       ` NeilBrown

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=200803172021.08327.nfs@share-foo.com \
    --to=nfs-uh4cughlb8sgspxsjd1c4w@public.gmane.org \
    --cc=linux-nfs@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.