Re: [Samba] Poor performance on open/copy/close/rename

This is a discussion on Re: [Samba] Poor performance on open/copy/close/rename within the Samba forums, part of the Networking and Network Related category; --===============2059475786== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-8rzUD9n/VPLr60Ivso9K" --=-8rzUD9n/...


Go Back   Usenet Forums > Networking and Network Related > Samba

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-26-2008
Udo Rader
 
Posts: n/a
Default Re: [Samba] Poor performance on open/copy/close/rename


--===============2059475786==
Content-Type: multipart/signed; micalg=pgp-sha1;
protocol="application/pgp-signature";
boundary="=-8rzUD9n/VPLr60Ivso9K"


--=-8rzUD9n/VPLr60Ivso9K
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On Wed, 2008-03-26 at 10:47 +0100, gianfranco pra floriani wrote:
>=20
> Udo Rader wrote:
> > On Mon, 2008-03-24 at 22:30 +0100, gianfranco pra floriani wrote:
> > =20
> >> Hello,
> >> I have Samba version 3.0.24 running on a 2.6.14-gentoo-r5 x86 kernel=20
> >> (xeon 3ghz, 1gb ram raid 5).
> >> All clients accessing samba shares via LAN have no problems. Samba=20
> >> server works perfectly and fast.
> >> We are instead experiencing serious performance issues when accessing=20
> >> samba shares from remote clients (WAN), via VPN.
> >> Simple operations like "open a file", "copy & paste a file", "save a=20
> >> file" from Windows XP SP2 clients are incredibly slow. It may take 10=20
> >> seconds to open a "save as" dialog box, and maybe 15 more seconds to=20
> >> save a "hello world" txt file from Notepad.
> >> Other services using the VPN such as SCP, SSH, HTTP, FTP work very
> >> good=20
> >> on the same connection, with no slow issues at all. I tried 2 kinds
> >> of=20
> >> VPN connections (OpenVPN and a router-proprietary VPN=20
> >> gateway-to-client), and both have the same issue, both only with
> >> Samba.
> >> I wonder if there is something I'm missing in client or server=20
> >> configuration that makes Samba talking very slow when connections are=20
> >> not coming from the LAN. The file transfer process works fine: once
> >> the=20
> >> "saving file" or "copying file" process has begun, it takes the same=20
> >> amount of time needed by a SCP or a FTP transfer command using the
> >> same=20
> >> VPN connection. I tried to copy a 2MB file from client to server and
> >> the=20
> >> time needed using SCP and using SAMBA (once the copy process was=20
> >> started) was the same.
> >> I tried to add some "socket options =3D TCP_NODELAY SO_SNDBUF=3D8192=20
> >> SO_RCVBUF=3D8192" in smb.conf with no results.
> >> The problem is the same using "explorer", command prompt, or any
> >> program=20
> >> in the client. We currently use all XP SP2 clients.
> >> It looks like the initial and final talking acknowledgement between=20
> >> client and server for any kind of operation is unacceptably slow,
> >> while the file transfer process seems not to be involved in this
> >> problem.
> >> =20

> >
> > This is quite common with VPN connections. What response time do you ge=

t
> > from a ping (LAN vs. VPN)?
> >
> > =20

> Hello Udo,
> this is a ping from the server to a client:
> PING 10.0.0.190 (10.0.0.190) 56(84) bytes of data.
> 64 bytes from 10.0.0.190: icmp_seq=3D1 ttl=3D128 time=3D52.7 ms
> 64 bytes from 10.0.0.190: icmp_seq=3D2 ttl=3D128 time=3D48.9 ms
> 64 bytes from 10.0.0.190: icmp_seq=3D3 ttl=3D128 time=3D49.2 ms
> from client to server the ping time is the same.


doesn't look too bad.

> > A major network performance for VPN clients is the correct configuratio=

n
> > of various networking parameters (such as MTU, window size, etc. - all
> > depending on the type of internet connection you have).
> >
> > And finally, what type of VPN are you using?
> >
> > =20

> we have ssh, scp, ftp and http services running on the same VPN =20
> (OpenVPN 2.0.6 i686-pc-linux-gnu), and all services are running fine, no=20
> delays, no bottlenecks. Samba is the only service having problems.


Are you sure that it is a samba problem? Try to create a share on a WXP
LAN box and try to access it from a remote box.

Your problem is very likely a SMB (and not samba) problem.

And what type of OpenVPN adapter do you use? tun or tap?

--=20
=EF=BB=BFUdo Rader

bestsolution.at EDV Systemhaus GmbH
http://www.bestsolution.at


--=-8rzUD9n/VPLr60Ivso9K
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (GNU/Linux)

iEYEABECAAYFAkfqJ14ACgkQuhFd84GLxP8AHACfeuQHx7WFax heCX5CRCwld9i9
xVAAoLxQUKmCdMZkF01MhowjwVDz4w2E
=SLL+
-----END PGP SIGNATURE-----

--=-8rzUD9n/VPLr60Ivso9K--


--===============2059475786==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba
--===============2059475786==--

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:53 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0