Skip to contentSkip to conversation

NFS client cannot read many data blocks

DISCUSSION Pascal Havé 1 participant 1 message Feb 26, 2004

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

=2D----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,=20
Since I have change disk on server, I have a strange problem with some NFS= =20
clients (config has been simply copied).

=46irst, I will describe my environment.
I have a NFS server which exports a /home partition (XFS) to ~20 clients. The NFS server (P4 Xeon) runs a nfs-kernel-server 1.0.6-1 (Debian) with=20 RPCNFSDCOUNT=3D24. This kernel version is 2.6.3 with following options :
CONFIG_NFS_FS=3Dy
CONFIG_NFS_V3=3Dy
CONFIG_NFSD=3Dy
CONFIG_NFSD_V3=3Dy
CONFIG_LOCKD=3Dy
CONFIG_LOCKD_V4=3Dy
CONFIG_EXPORTFS=3Dy
CONFIG_SUNRPC=3Dy

There are 2 kinds of client.=20
A: 8 clients (P4 Xeon) with a 2.4.20 kernel
B: 12 clients (P3) with a 2.4.25 kernel
All of them have following kernel options
CONFIG_NFS_FS=3Dy
CONFIG_NFS_V3=3Dy
CONFIG_SUNRPC=3Dy
CONFIG_LOCKD=3Dy
CONFIG_LOCKD_V4=3Dy

Everything works on clients A, but on clients B=20
it is very strange. I can obtain stats of directories and sub-directories=20 (with 'ls -l', find, ...), read/write is OK for small files (few blocks=20 of 4096 octets) but for larger files, it seems to freeze connection.

If I use=20
echo 1 > /proc/sys/sunrpc/nfs_debug on clients and echo 1 > /proc/sys/sunrpc/nfsd_debug on server

when I copy a small file 'b' (5 blocks) to local /tmp, I have=20 (/var/log/syslog)
=2D ---------%<---------------------------------------
=46eb 26 16:09:19 client kernel: NFS: refresh_inode(b/237372685 ct=3D1=20 info=3D0x6)
=46eb 26 16:09:20 client kernel: NFS: refresh_inode(b/235142450 ct=3D1=20 info=3D0x6)
=46eb 26 16:09:20 client kernel: NFS: dentry_delete(test/b, 0) =46eb 26 16:09:22 client kernel: NFS: refresh_inode(b/237372685 ct=3D1=20 info=3D0x6)
=46eb 26 16:09:25 client kernel: NFS: refresh_inode(b/235142450 ct=3D1=20 info=3D0x6)
=46eb 26 16:09:32 client kernel: NFS: refresh_inode(b/235142450 ct=3D1=20 info=3D0x6)
=46eb 26 16:09:32 client kernel: nfs: read(test/b, 4096@0) =46eb 26 16:09:32 client kernel: nfs: read(test/b, 4096@4096) =46eb 26 16:09:32 client kernel: nfs: read(test/b, 4096@8192) =46eb 26 16:09:32 client kernel: nfs: read(test/b, 4096@12288) =46eb 26 16:09:32 client kernel: nfs: read(test/b, 4096@16384) =46eb 26 16:09:32 client kernel: nfs: read(test/b, 4096@20480) =46eb 26 16:09:32 client kernel: nfs: flush(b/235142450) =46eb 26 16:09:32 client kernel: NFS: dentry_delete(test/b, 0) =46eb 26 16:09:32 client kernel: NFS: refresh_inode(b/237372685 ct=3D1=20 info=3D0x6)
=46eb 26 16:09:32 client kernel: NFS: refresh_inode(b/235142450 ct=3D1=20 info=3D0x6)
=46eb 26 16:09:32 client kernel: NFS: dentry_delete(test/b, 0) =2D --------------------->%-------------------------------------

And when copying a larger file 'c' (20 blocks) to local /tmp:
=2D ---------%<---------------------------------------
=46eb 26 16:16:34 client kernel: NFS: refresh_inode(7/237372685 ct=3D1=20 info=3D0x6)
=46eb 26 16:16:35 client kernel: NFS: refresh_inode(7/235142451 ct=3D1=20 info=3D0x6)
=46eb 26 16:16:35 client kernel: NFS: dentry_delete(test/c, 0) =46eb 26 16:16:35 client kernel: NFS: refresh_inode(7/237372685 ct=3D1=20 info=3D0x6)
=46eb 26 16:16:35 client kernel: NFS: refresh_inode(7/235142451 ct=3D1=20 info=3D0x6)
=46eb 26 16:16:35 client kernel: NFS: refresh_inode(7/235142451 ct=3D1=20 info=3D0x6)
=46eb 26 16:16:35 client kernel: nfs: read(test/c, 4096@0) =46eb 26 16:16:35 client kernel: NFS: refresh_inode(7/235142451 ct=3D1=20 info=3D0x6)
=46eb 26 16:16:35 client kernel: nfs: read(test/c, 4096@4096) =46eb 26 16:16:35 client kernel: nfs: read(test/c, 4096@8192) =46eb 26 16:16:35 client kernel: nfs: read(test/c, 4096@12288) =46eb 26 16:16:35 client kernel: nfs: read(test/c, 4096@16384) =46eb 26 16:16:52 client kernel: nfs: server hydre not responding, still=20 trying
=2D --------------------->%------------------------------------- It seems that the problem always appears when it read(..., 4096@16384)

Then everything is frozen on this NFS mount point (read/write/stats)

Do you have an idea about what may be wrong (maybe in my configuration?)=20 since I have changed the server? (server and client configs are the=20 same).

Best regards,
=2D --=20

| Pascal Hav=E9
| Laboratoire Jacques-Louis Lions
| Universit=E9 Pierre et Marie Curie
| Boite courrier 187, 75252  Paris cedex 05 FRANCE
| (express mail) 175 rue du Chevaleret, 75013 Paris

=2D----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAPhNOmhLInsKdD4IRAjv7AJ90mmG6Yv9glGNww24KMgf/FFBzFACgw0Sb OTw8DwA81qH18gpD8v6h97U=3D
=3D4jcI
=2D----END PGP SIGNATURE-----

-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs