public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Poor NFSv4 first impressions
@ 2006-11-06  6:15 Jeff Garzik
  0 siblings, 0 replies; 5+ messages in thread
From: Jeff Garzik @ 2006-11-06  6:15 UTC (permalink / raw)
  To: Linux Kernel

Being a big user of NFS at home, and a big fan of NFSv4, it was high 
time that I converted my home network from NFSv3 to NFSv4.

Unfortunately applications started breaking left and right.  vim 
noticeably malfunctioned, trying repeatedly to create a swapfile (sorta 
like a lockfile).  Mozilla Thunderbird would crash reproducibly whenever 
it tried anything remotely major with a mailbox, such as compressing 
folders (removing deleted messages).

Both NFSv4 server and NFSv4 client were x86-64 Linux boxes, running 
hyper-recent kernel 2.6.19-rc4-g10b1fbdb 
(10b1fbdb0a0ca91847a534ad26d0bc250c25b74f).  FC5 userland on the server, 
FC6 userland on the client.  There were no other clients connected to 
the NFS server, much less using my NFS homedir.  This data was not being 
accessed on the server directly, either.

/etc/exports contains:
/g 
10.10.10.0/255.255.255.0(rw,fsid=0,insecure,no_subtree_check,no_root_squash)

NFSv4 /etc/fstab line:
pretzel:/       /g      nfs4    defaults,proto=tcp,hard,intr    0 0

NFSv3 (previous) /etc/fstab line for same file server:
pretzel:/g              /g              nfs     defaults,tcp    0 0


I hope this is just a temporary problem, but as it looks right now, 
NFSv4 isn't ready for prime time, with all these apps breaking :/

	Jeff



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Poor NFSv4 first impressions
@ 2006-11-06 12:03 Daniel J Blueman
  2006-11-06 16:07 ` Bill Davidsen
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Daniel J Blueman @ 2006-11-06 12:03 UTC (permalink / raw)
  To: Jeff Garzik; +Cc: Linux Kernel, nfsv4

Jeff Garzik wrote:
> Being a big user of NFS at home, and a big fan of NFSv4, it was high
> time that I converted my home network from NFSv3 to NFSv4.
>
> Unfortunately applications started breaking left and right.  vim
> noticeably malfunctioned, trying repeatedly to create a swapfile (sorta
> like a lockfile).  Mozilla Thunderbird would crash reproducibly whenever
> it tried anything remotely major with a mailbox, such as compressing
> folders (removing deleted messages).
[snip]

This has all the symptoms to an open EACCES NFSv4 bug in 2.6.18/19.
This is fixed in:

http://www.citi.umich.edu/projects/nfsv4/linux/kernel-patches/2.6.19-rc3-2/linux-2.6.19-rc3-CITI_NFS4_ALL-2.diff
(see http://www.citi.umich.edu/projects/nfsv4/linux/).

With this patch, I can run just great with NFSv4 home dir (etc)
mounts; without, I get the symptom of many 0-byte temporary/lock files
being created and often the inability to create files (!). Be sure to
allow callback delegation connections in through your firewall for the
extra performance ;-) .

Maybe it's too late for these fixes 2.6.19, but they should certainly
make 2.6.19.1 IMHO.
-- 
Daniel J Blueman

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Poor NFSv4 first impressions
  2006-11-06 12:03 Daniel J Blueman
@ 2006-11-06 16:07 ` Bill Davidsen
  2006-11-06 16:17 ` J. Bruce Fields
  2006-11-07  7:20 ` Pavel Machek
  2 siblings, 0 replies; 5+ messages in thread
From: Bill Davidsen @ 2006-11-06 16:07 UTC (permalink / raw)
  To: Daniel J Blueman; +Cc: Linux Kernel, nfsv4

Daniel J Blueman wrote:
> Jeff Garzik wrote:
>> Being a big user of NFS at home, and a big fan of NFSv4, it was high
>> time that I converted my home network from NFSv3 to NFSv4.
>>
>> Unfortunately applications started breaking left and right.  vim
>> noticeably malfunctioned, trying repeatedly to create a swapfile (sorta
>> like a lockfile).  Mozilla Thunderbird would crash reproducibly whenever
>> it tried anything remotely major with a mailbox, such as compressing
>> folders (removing deleted messages).
> [snip]
> 
> This has all the symptoms to an open EACCES NFSv4 bug in 2.6.18/19.
> This is fixed in:
> 
> http://www.citi.umich.edu/projects/nfsv4/linux/kernel-patches/2.6.19-rc3-2/linux-2.6.19-rc3-CITI_NFS4_ALL-2.diff 
> 
> (see http://www.citi.umich.edu/projects/nfsv4/linux/).
> 
> With this patch, I can run just great with NFSv4 home dir (etc)
> mounts; without, I get the symptom of many 0-byte temporary/lock files
> being created and often the inability to create files (!). Be sure to
> allow callback delegation connections in through your firewall for the
> extra performance ;-) .
> 
> Maybe it's too late for these fixes 2.6.19, but they should certainly
> make 2.6.19.1 IMHO.

If NFSv4 really works that poorly without the patches, perhaps they 
should go in 2.6.19 at the start. I'm surprised others aren't having 
this problem, I thought there was more test use.


-- 
Bill Davidsen <davidsen@tmr.com>
   Obscure bug of 2004: BASH BUFFER OVERFLOW - if bash is being run by a
normal user and is setuid root, with the "vi" line edit mode selected,
and the character set is "big5," an off-by-one errors occurs during
wildcard (glob) expansion.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Poor NFSv4 first impressions
  2006-11-06 12:03 Daniel J Blueman
  2006-11-06 16:07 ` Bill Davidsen
@ 2006-11-06 16:17 ` J. Bruce Fields
  2006-11-07  7:20 ` Pavel Machek
  2 siblings, 0 replies; 5+ messages in thread
From: J. Bruce Fields @ 2006-11-06 16:17 UTC (permalink / raw)
  To: Daniel J Blueman; +Cc: Jeff Garzik, nfsv4, Linux Kernel, Neil Brown

On Mon, Nov 06, 2006 at 12:03:54PM +0000, Daniel J Blueman wrote:
> This has all the symptoms to an open EACCES NFSv4 bug in 2.6.18/19.
> This is fixed in:
> 
> http://www.citi.umich.edu/projects/nfsv4/linux/kernel-patches/2.6.19-rc3-2/linux-2.6.19-rc3-CITI_NFS4_ALL-2.diff
> (see http://www.citi.umich.edu/projects/nfsv4/linux/).
> 
> With this patch, I can run just great with NFSv4 home dir (etc)
> mounts; without, I get the symptom of many 0-byte temporary/lock files
> being created and often the inability to create files (!). Be sure to
> allow callback delegation connections in through your firewall for the
> extra performance ;-) .
> 
> Maybe it's too late for these fixes 2.6.19, but they should certainly
> make 2.6.19.1 IMHO.

Yeah, bad patch management on my part, apologies, I should have pushed
it as soon as I noticed the problem.

Investigating the problem revealed some ugliness (and some races which
will need further work), and I had hoped to have a more complete fix
before now.  Oh well.

Two patches follow; the first does a very simple cleanup, the second
solves the immediate problem in the most straightforward way I can see,
but is a bit of a hack.

--b.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Poor NFSv4 first impressions
  2006-11-06 12:03 Daniel J Blueman
  2006-11-06 16:07 ` Bill Davidsen
  2006-11-06 16:17 ` J. Bruce Fields
@ 2006-11-07  7:20 ` Pavel Machek
  2 siblings, 0 replies; 5+ messages in thread
From: Pavel Machek @ 2006-11-07  7:20 UTC (permalink / raw)
  To: Daniel J Blueman; +Cc: Jeff Garzik, Linux Kernel, nfsv4

> With this patch, I can run just great with NFSv4 home dir (etc)
> mounts; without, I get the symptom of many 0-byte temporary/lock files
> being created and often the inability to create files (!). Be sure to
> allow callback delegation connections in through your firewall for the
> extra performance ;-) .
> 
> Maybe it's too late for these fixes 2.6.19, but they should certainly
> make 2.6.19.1 IMHO.

If they are good enough for 2.6.19.1, they should _definitely_ go into
2.6.19.


								Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-11-07  7:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-06  6:15 Poor NFSv4 first impressions Jeff Garzik
  -- strict thread matches above, loose matches on Subject: below --
2006-11-06 12:03 Daniel J Blueman
2006-11-06 16:07 ` Bill Davidsen
2006-11-06 16:17 ` J. Bruce Fields
2006-11-07  7:20 ` Pavel Machek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox