Skip to contentSkip to conversation

2.6.27.19 lockd waits too long

DISCUSSION Kasparek Tomas 1 participant 1 message Mar 3, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi,

after solving previous problem with buggy FreeBSD server, I hit another one.

I tryied 2.6.27.19+linger patch on servers and they work well, so I moved to clients. On my desktop machine (pckasparek) with the same system (CentOS 5.2 + 2.6.27.19) the system freezes when running acroread or openoffice. I tracked it down to NFS locking of files in $HOME which is NFS3 (rw,nodev,intr,hard,rsize=8192,wsize=8192,bg,nfsvers=3,tcp) mounted from server (kazi).

With real application the system is freezed for minutes up to hours (one all the night) and gets running when i kill -9 acroread/OOo. I wrote a simple test app that basicly does fcntl64(F_GETLK), F_SETLK, F_UNLCK and repeats that several times. With this app it wait only before the first fcntl call and only for much shorter time (10-30sec). I was able to get some hopefully interesting info (included in attachments).

- netstat on client and server before and after nfs-lock was run
- wireshark dump of all packets
- dmesg from client with sysrq/W - blocked tasks (and lockd: server kazi not responding, still trying messages)

Seems like there is still some trouble in creating new/properly clearing old connections between the client and server.

With previous kernel (2.6.24.7) the client run just fine.

Any suggestions what to try?

Thanks in advance

(was not able to send this mail with attachments, trying this way)
http://merlin.fit.vutbr.cz/tmp/nfs/netstat-end.txt
http://merlin.fit.vutbr.cz/tmp/nfs/netstat-start.txt
http://merlin.fit.vutbr.cz/tmp/nfs/pckaspare-kazi.dump
http://merlin.fit.vutbr.cz/tmp/nfs/pckasparek-dmesg.txt

Signature · 7 lines
  Tomas Kasparek, PhD student  E-mail: [email protected]
  CVT FIT VUT Brno, L127       Web:    http://www.fit.vutbr.cz/~kasparek
  Bozetechova 1, 612 66        Fax:    +420 54114-1270
  Brno, Czech Republic         Phone:  +420 54114-1220

  jabber: [email protected]
  GPG: 2F1E 1AAF FD3B CFA3 1537  63BD DCBE 18FF A035 53BC