All of lore.kernel.org
 help / color / mirror / Atom feed
* NFS Hangs on heavy I/O
@ 2007-06-28 15:01 Rajat
  2007-06-28 15:30 ` Trond Myklebust
  2007-06-28 15:48 ` Peter Staubach
  0 siblings, 2 replies; 3+ messages in thread
From: Rajat @ 2007-06-28 15:01 UTC (permalink / raw)
  To: nfs

Hi list,

I am facing a NFS hang problem when I perform a very heavy I/O on a localhost 
mount.
The situation is:
$>mount -t nfs localhost:/home/RHL /mnt/nfs

where /home/RHL is a Ext3 Partition (/dev/sda5). Mount paramter was 'hard' by 
default

When I perform a heavy I/O on nfs mount
$> createfile /mnt/nfs/huge_file 512 1048576

Where createfile would try to write 512 blocks of 1048576 bytes each (each 
system call of 1048576, 512 times = 512MB file).

While the file is being created, I tried to ls in the /mnt/nfs directory - and 
it hanged (after creating about 75MB file). Logging from other terminals was 
not working as well.
In my dmesg I found message saying:

"nfs: server localhost not responding, still trying"

[no other NFS related message here.]

After rebooting, I tried the same thing but ls'd /home/RHL rather than nfs 
mount - it hanged again (this time it could create 332MB file). Same message 
was relayed in dmesg. This time I was able to login (though slow) and found 
that 4 nfsd thread were there in ps.
/proc/../status of all of them was "Sleeping" (for 2) or "Disk Sleep" (for 
other 2). All were averaging about 97% sleep (got from /proc/.../status)

I can reproduce this by the same procedure. 

I am running a Intel Machine (Intel(R) Pentium(R) 4 CPU 3.20GHz HT), with 1GB 
RAM, Linux-2.6.19 stock kernel, SATA driver (/dev/sda5) (default)

I tried the same thing multiple times getting the same result (machine did not 
stall always (just a couple of times)- nfs partition and the terminal on which 
I was doing work always stalled).

Can anyone help in giving pointer as to how can I find what is wrong. In case 
you need some specific info, I would be glad to give.

Rajat


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

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

end of thread, other threads:[~2007-06-28 15:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-28 15:01 NFS Hangs on heavy I/O Rajat
2007-06-28 15:30 ` Trond Myklebust
2007-06-28 15:48 ` Peter Staubach

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.