2006-11-01 02:45:33

by Ingo Saitz

[permalink] [raw]
Subject: PROBLEM: mounting an nfs export hangs the rpc.mountd kernelthread in 2.6.19-rc4

[1.] One line summary of the problem:

Mounting an NFS export hangs the rpc.mountd kernel thread in 2.6.19-rc4


[2.] Full description of the problem/report:

After the first mount of an exported NFS share, the rpc.mountd process
does not answer and starts consuming 100% CPU.

Output from top:
1664 root 15 0 1704 692 524 R 100 0.1 17:40.97 rpc.mountd

[3.] Keywords (i.e., modules, networking, kernel):

nfsd, rpc.mountd, 2.6.19-rc4


[4.] Kernel version (from /proc/version):

Linux version 2.6.19-rc4-pinguin20061031 (ingo@pinguin) (gcc version 4.1.2 20060901 (prerelease) (Debian 4.1.1-13)) #1 SMP Tue Oct 31 21:57:24 UTC 2006


[5.] Output of Oops.. message (if applicable) with symbolic information
resolved (see Documentation/oops-tracing.txt)

n/a


[6.] A small shell script or example program which triggers the
problem (if possible)

mount server:/DATA


[7.] Environment

[7.1.] Software (add the output of the ver_linux script here)

The nfs server is Debian testing, nfs-kernel-server version 1.0.10-2.

$ scripts/ver_linux
If some fields are empty or look unusual you may have an old version.
Compare to the current minimal requirements in Documentation/Changes.

Linux pinguin 2.6.19-rc4-pinguin20061031 #1 SMP Tue Oct 31 21:57:24 UTC 2006 x86_64 GNU/Linux

Gnu C 4.1.2
Gnu make 3.81
binutils 2.17
util-linux 2.12r
mount 2.12r
module-init-tools 3.2.2
e2fsprogs 1.39
Linux C Library 2.3.6
Dynamic linker (ldd) 2.3.6
Procps 3.2.7
Net-tools 1.60
Console-tools 0.2.3
Sh-utils 5.97
udev 100
Modules Loaded nfs tun crc32 nfsd exportfs lockd sunrpc lp thermal fan button processor ac battery dm_snapshot dm_mirror dm_mod 8250_pnp snd_hda_intel snd_hda_codec snd_pcm_oss snd_mixer_oss sg snd_pcm sr_mod i2c_i801 cdrom iTCO_wdt snd_timer intel_agp i2c_core e1000 psmouse 8250 serial_core pcspkr evdev rtc parport_pc parport snd soundcore snd_page_alloc floppy unix


[7.2.] Processor information (from /proc/cpuinfo):

processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Core(TM)2 CPU 6300 @ 1.86GHz
stepping : 6
cpu MHz : 1862.002
cache size : 2048 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 2
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx lm constant_tsc pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr lahf_lm
bogomips : 3726.93
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:

processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Core(TM)2 CPU 6300 @ 1.86GHz
stepping : 6
cpu MHz : 1862.002
cache size : 2048 KB
physical id : 0
siblings : 2
core id : 1
cpu cores : 2
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx lm constant_tsc pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr lahf_lm
bogomips : 3724.18
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:


[7.3.] Module information (from /proc/modules):
[7.4.] Loaded driver and hardware information (/proc/ioports, /proc/iomem)
[7.5.] PCI information ('lspci -vvv' as root)
[7.6.] SCSI information (from /proc/scsi/scsi)

Please tell me if you think any of these are relevant.


[7.7.] Other information that might be relevant to the problem
(please look in /proc and include all information that you
think to be relevant):

The kernel is compiled for the x86_64 arch, the userspace and the nfs
kernel server code is still compiled for i386. The exported filesystems
are all ext3.

$ grep 'NFS\|RPC\|LOCKD' /boot/config-`uname -r`
CONFIG_LOCKDEP_SUPPORT=y
CONFIG_NFS_FS=m
CONFIG_NFS_V3=y
# CONFIG_NFS_V3_ACL is not set
CONFIG_NFS_V4=y
# CONFIG_NFS_DIRECTIO is not set
CONFIG_NFSD=m
CONFIG_NFSD_V3=y
# CONFIG_NFSD_V3_ACL is not set
CONFIG_NFSD_V4=y
CONFIG_NFSD_TCP=y
CONFIG_LOCKD=m
CONFIG_LOCKD_V4=y
CONFIG_NFS_COMMON=y
CONFIG_SUNRPC=m
CONFIG_SUNRPC_GSS=m
CONFIG_RPCSEC_GSS_KRB5=m
CONFIG_RPCSEC_GSS_SPKM3=m
CONFIG_RXRPC=m

The exports look like this:
/DATA 10.11.12.13(rw,async,subtree_check)

The fstab on the client look like ths:
server:/DATA /DATA/ nfs defaults 0 0


[X.] Other notes, patches, fixes, workarounds:

--
Man hat schon Igel nach Westen kotzen sehen!
(alte indianische Weisheit)



----- End forwarded message -----

--
Man hat schon Igel nach Westen kotzen sehen!
(alte indianische Weisheit)


Attachments:
(No filename) (0.00 B)
(No filename) (373.00 B)
(No filename) (140.00 B)
Download all attachments