Operating System - HP-UX
1833129 Members
3702 Online
110051 Solutions
New Discussion

Very slow net connection to a Linux box via NFS

 
Francisco J. Soler
Honored Contributor

Very slow net connection to a Linux box via NFS

Hi all,
I have trouble with a connection between my HP-UX 11.11 and a Linux box, if a do a telnet to the linux from the B2000 machine, all seems work fine. If I mount an exported file systems in the Linux to a local directory on the HP-UX, the cd and ll commands work fine but if I copy a file (for example about 2Mb file size), the copy is made with stops and very slowly.

Any suggestions will be very appreciated.

Frank.
Linux?. Yes, of course.
5 REPLIES 5
Ermin Borovac
Honored Contributor

Re: Very slow net connection to a Linux box via NFS

Is this NFS over UDP or TCP mount? Version 2 or 3? What are rsize and wsize set to? Check these parameters with 'nfsstat -m'.

If read and write size are set to 8k or higher, try lowering them to 4k or 2k to see if it helps.
Suraj Singh_1
Trusted Contributor

Re: Very slow net connection to a Linux box via NFS

Since telnet is working fine, i am ruling out the possibility of name resolution problem.

This could be a problem related to duplex/speed problem. You may check that easily.

The easiest way is to create a 50meg file on each machine in question in /tmp. FTP from one machine into the other. Turn hashing on. Put AND Get the file. Do this from each machine. If there's a duplex/network problem or mismatch the hash marks will display very slowly or in a strange "jerky" burst type manner. If there is no network problem there will be a fast constant stream of hash marks.

Hope that helps...

~Suraj
What we cannot speak about we must pass over in silence.
C. Beerse_1
Regular Advisor

Re: Very slow net connection to a Linux box via NFS

If I have this problem, I start looking at the connection speeds and duplex. Telnet is not much trafic, on an 1 Mbit network it is just as fast as on an 100 Mbit network. A working telnet indicates routing and such get you where you want. The occasions where I had a duplex error, speeds dropped from 100Mbit to 1 or 2 Mbit. Ping and telnet work, nfs and ftp showed the slow connection.

Forcing the connectionspeed and dupled (for my network 100Mbit and fullduplex) made it all as fast as it should be.

btw: a bad routing can also ruin the network speed. If both machines are not in the same ip-subnet, check the routing too.
make everything as simple as possible, not simpler (A.Einstein??)

Re: Very slow net connection to a Linux box via NFS

Hi Franck,

edit /etc/init.d/autofs
and put this :

localoptions='proto=tcp,rsize=8192,wsize=8192'
to try ...

Don't forget to stop/start autofs ...
type mount the options will appear .

Best regards.
Francisco J. Soler
Honored Contributor

Re: Very slow net connection to a Linux box via NFS

Hello,
the output of nfsstat -m:
glorfindel is the linux box, ot6 is another HP-UX with 11.00 (not 11.11)

/home/dir-ot6 from ot6:/home/jhernaiz/disenho (Addr 10.6.3.16)
Flags: vers=3,proto=udp,auth=unix,hard,intr,link,symlink,devs,rsize=32768,wsize=32768,retrans=5
Lookups: srtt= 7 ( 17ms), dev= 3 ( 15ms), cur= 2 ( 40ms)
Reads: srtt= 13 ( 32ms), dev= 7 ( 35ms), cur= 5 (100ms)
Writes: srtt= 11 ( 27ms), dev= 5 ( 25ms), cur= 3 ( 60ms)
All: srtt= 7 ( 17ms), dev= 3 ( 15ms), cur= 2 ( 40ms)

/net/glorfindel/usr/ug from glorfindel:/usr/ug (Addr 10.6.3.100)
Flags: vers=3,proto=udp,auth=unix,soft,intr,link,symlink,rsize=8192,wsize=8192,retrans=5
Lookups: srtt= 1 ( 2ms), dev= 1 ( 5ms), cur= 0 ( 0ms)
All: srtt= 1 ( 2ms), dev= 1 ( 5ms), cur= 0 ( 0ms)

/net/glorfindel/home/me10 from glorfindel:/home/me10 (Addr 10.6.3.100)
Flags: vers=3,proto=udp,auth=unix,soft,intr,link,symlink,rsize=8192,wsize=8192,retrans=5
All: srtt= 0 ( 0ms), dev= 0 ( 0ms), cur= 0 ( 0ms)

/net/glorfindel/home/gestion from glorfindel:/home/gestion (Addr 10.6.3.100)
Flags: vers=3,proto=udp,auth=unix,soft,intr,link,symlink,rsize=8192,wsize=8192,retrans=5
Lookups: srtt= 1 ( 2ms), dev= 1 ( 5ms), cur= 0 ( 0ms)
All: srtt= 1 ( 2ms), dev= 1 ( 5ms), cur= 0 ( 0ms)
Linux?. Yes, of course.