All of lore.kernel.org
 help / color / mirror / Atom feed
* [2.6.33-rc3] NFS4 and dentry issues...
@ 2010-01-09 14:32 Daniel J Blueman
  2010-01-10 20:08   ` Trond Myklebust
  0 siblings, 1 reply; 4+ messages in thread
From: Daniel J Blueman @ 2010-01-09 14:32 UTC (permalink / raw)
  To: linux-nfs, Linux Kernel

When synchronising files (unison, like a two way rsync) over an NFS4
mount (server with 2.6.32.2) on a client running 2.6.33-rc3 (also
-rc2), I ran into dcache issues [1].

I've been unable to consistently reproduce this for bisecting, and
filesystem benchmarks via NFS on tmpfs over localhost fails to
reproduce it either.

What additional information may be useful?

client is 2.6.33-rc3 amd64, /proc/mounts:
x1:/ /net nfs4 rw,relatime,vers=4,rsize=262144,wsize=262144,namlen=255,acregmin=30,hard,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=192.168.10.2,addr=192.168.10.250
0 0

server is 2.6.32.3 amd64, exportfs -v:
/store        	192.168.10.0/24(rw,async,wdelay,insecure,no_root_squash,no_subtree_check,fsid=0)

Thanks,
  Daniel

--- [1]

kernel BUG at /home/kernel-ppa/mainline/build/fs/dcache.c:1869!
invalid opcode: 0000 [#1] SMP
last sysfs file: /sys/devices/virtual/block/ram9/uevent
CPU 5
Pid: 31525, comm: unison-2.27.57- Tainted: G        W
2.6.33-020633rc3-generic #020633rc3 0KM426/Studio 1557
RIP: 0010:[<ffffffff8113f3ac>]  [<ffffffff8113f3ac>]
d_materialise_unique+0x18c/0x190
RSP: 0000:ffff880099fcba28  EFLAGS: 00010206
RAX: ffff88009beb6c00 RBX: ffff88009bf0c0a0 RCX: ffff88009beb6c40
RDX: ffff88009beb6b80 RSI: ffff88009beb6caa RDI: ffffffff81a28800
RBP: ffff880099fcba58 R08: ffff88009bf0c0d0 R09: ffff88009bf0c0d0
R10: 00000000e68b3169 R11: ffff8800735e5180 R12: ffff88009beb6c0
R13: ffff88009bf0a900 R14: ffff8800735e5180 R15: ffff88009bf0c0a0
FS:  00007f463ed40790(0000) GS:ffff880028340000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f28cd23d000 CR3: 0000000099fda000 CR4: 00000000000006e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
Process unison-2.27.57- (pid: 31525, threadinfo ffff880099fca000, task
ffff880131a1db80)
Stack:
 0000000199fcba48 ffff88009bf0c0a0 ffff8800735e5180 ffff88009bf0a900
<0> ffff880099fcba78 ffff880099fcbb38 ffff880099fcbbf8 ffffffffa020f4ab
<0> 0000000000000000 ffff88009beb6780 ffff81a000027e7f 000005dc00000001
Call Trace:
 [<ffffffffa020f4ab>] nfs_lookup+0x15b/0x1d0 [nfs]
 [<ffffffff810e4c32>] ? mempool_free_slab+0x12/0x20
 [<ffffffff8153b729>] ? _raw_spin_lock+0x9/0x10
 [<ffffffffa020fd1e>] nfs_atomic_lookup+0xde/0x120 [nfs]
 [<ffffffff81134f07>] do_lookup+0x1b7/0x240
 [<ffffffff811364e7>] link_path_walk+0x6e7/0xc70
 [<ffffffffa02152e1>] ? nfs_refresh_inode+0x51/0x70 [nfs]
 [<ffffffff81136acc>] path_walk+0x5c/0xc0
 [<ffffffff81136c7b>] do_path_lookup+0x5b/0xc0
 [<ffffffff811385ee>] user_path_at+0x4e/0x90
 [<ffffffff8153b729>] ? _raw_spin_lock+0x9/0x10
 [<ffffffff8112e57b>] ? cp_new_stat+0xfb/0x120
 [<ffffffff8112e7ac>] vfs_fstatat+0x4c/0x70
 [<ffffffff8112e839>] vfs_lstat+0x19/0x20
 [<ffffffff8112e85f>] sys_newlstat+0x1f/0x50
 [<ffffffff81009ec2>] system_call_fastpath+0x16/0x1b
Code: ec e9 0d ff ff ff 4c 89 e7 4c 89 fe 45 31 e4 e8 ab e1 0e 00 e9
2b ff ff ff 0f 0b eb fe 48 c7 c7 00 88 a2 81 e8 d6 10 > 0b eb fe 55 48
89 e5 48 83 ec 10 48 89 1c 24 4c 89 64 24 08
RIP  [<ffffffff8113f3ac>] d_materialise_unique+0x18c/0x190
 RSP <ffff880099fcba28>
---[ end trace 5ed2e330c2528614 ]---
-- 
Daniel J Blueman

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

* Re: [2.6.33-rc3] NFS4 and dentry issues...
@ 2010-01-10 20:08   ` Trond Myklebust
  0 siblings, 0 replies; 4+ messages in thread
From: Trond Myklebust @ 2010-01-10 20:08 UTC (permalink / raw)
  To: Daniel J Blueman; +Cc: linux-nfs, Linux Kernel

On Sat, 2010-01-09 at 14:32 +0000, Daniel J Blueman wrote: 
> When synchronising files (unison, like a two way rsync) over an NFS4
> mount (server with 2.6.32.2) on a client running 2.6.33-rc3 (also
> -rc2), I ran into dcache issues [1].
> 
> I've been unable to consistently reproduce this for bisecting, and
> filesystem benchmarks via NFS on tmpfs over localhost fails to
> reproduce it either.
> 
> What additional information may be useful?

There is a known issue in 2.6.33-rc3 with rename causing corruption of
the dentry lookup hash lists.

A fix for that problem has already been merged into mainline as
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git&a=commitdiff&h=56335936de1a41c8978fde62b2158af77ddc7258

Could you see if you can reproduce your problem with that fix applied?

Cheers
  Trond


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

* Re: [2.6.33-rc3] NFS4 and dentry issues...
@ 2010-01-10 20:08   ` Trond Myklebust
  0 siblings, 0 replies; 4+ messages in thread
From: Trond Myklebust @ 2010-01-10 20:08 UTC (permalink / raw)
  To: Daniel J Blueman; +Cc: linux-nfs, Linux Kernel

On Sat, 2010-01-09 at 14:32 +0000, Daniel J Blueman wrote: 
> When synchronising files (unison, like a two way rsync) over an NFS4
> mount (server with 2.6.32.2) on a client running 2.6.33-rc3 (also
> -rc2), I ran into dcache issues [1].
> 
> I've been unable to consistently reproduce this for bisecting, and
> filesystem benchmarks via NFS on tmpfs over localhost fails to
> reproduce it either.
> 
> What additional information may be useful?

There is a known issue in 2.6.33-rc3 with rename causing corruption of
the dentry lookup hash lists.

A fix for that problem has already been merged into mainline as
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git&a=commitdiff&h=56335936de1a41c8978fde62b2158af77ddc7258

Could you see if you can reproduce your problem with that fix applied?

Cheers
  Trond


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

* Re: [2.6.33-rc3] NFS4 and dentry issues...
  2010-01-10 20:08   ` Trond Myklebust
  (?)
@ 2010-01-14  8:39   ` Daniel J Blueman
  -1 siblings, 0 replies; 4+ messages in thread
From: Daniel J Blueman @ 2010-01-14  8:39 UTC (permalink / raw)
  To: Trond Myklebust; +Cc: linux-nfs, Linux Kernel

Hi Trond,

On Sun, Jan 10, 2010 at 8:08 PM, Trond Myklebust
<trond.myklebust@fys.uio.no> wrote:
> On Sat, 2010-01-09 at 14:32 +0000, Daniel J Blueman wrote:
>> When synchronising files (unison, like a two way rsync) over an NFS4
>> mount (server with 2.6.32.2) on a client running 2.6.33-rc3 (also
>> -rc2), I ran into dcache issues [1].
>>
>> I've been unable to consistently reproduce this for bisecting, and
>> filesystem benchmarks via NFS on tmpfs over localhost fails to
>> reproduce it either.
>>
>> What additional information may be useful?
>
> There is a known issue in 2.6.33-rc3 with rename causing corruption of
> the dentry lookup hash lists.
>
> A fix for that problem has already been merged into mainline as
> http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git&a=commitdiff&h=56335936de1a41c8978fde62b2158af77ddc7258
>
> Could you see if you can reproduce your problem with that fix applied?

2.6.33-rc4 with the fix does address this issue, though I am now
occasionally seeing 'Stale NFS file handle' during parallel kernel
compilation over NFS4 [1], seemingly when stat(2) is called.

Client mount options are:

x1:/ /net nfs4 rw,relatime,vers=4,rsize=262144,wsize=262144,namlen=255,acregmin=30,hard,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=192.168.10.2,addr=192.168.10.250
0 0

I'll see which -rc this was introduced in, from limited time.

Thanks,
  Daniel

--- [1]

$ CONCURRENCY_LEVEL=4 fakeroot make-kpkg --append-to-version -308cd
--initrd kernel-image
...
  CC [M]  drivers/net/wireless/rt2x00/rt2500usb.o
  CC [M]  drivers/net/wireless/rt2x00/rt73usb.o
  CC [M]  drivers/net/wireless/rt2x00/rt2800usb.o
  LD [M]  drivers/net/wireless/rt2x00/rt2x00lib.o
  Building modules, stage 2.
make[2]: stat: arch/x86/crypto/aes-x86_64.o: Stale NFS file handle
make[2]: stat: arch/x86/crypto/aesni-intel.o: Stale NFS file handle
make[2]: stat: arch/x86/crypto/salsa20-x86_64.o: Stale NFS file handle
make[2]: stat: arch/x86/crypto/twofish-x86_64.o: Stale NFS file handle
make[2]: stat: arch/x86/kernel/cpu/cpufreq/p4-clockmod.o: Stale NFS file handle
make[2]: stat: arch/x86/kernel/cpu/cpufreq/speedstep-lib.o: Stale NFS
file handle
....
-- 
Daniel J Blueman

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

end of thread, other threads:[~2010-01-14  8:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-09 14:32 [2.6.33-rc3] NFS4 and dentry issues Daniel J Blueman
2010-01-10 20:08 ` Trond Myklebust
2010-01-10 20:08   ` Trond Myklebust
2010-01-14  8:39   ` Daniel J Blueman

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.