[Samba] Slow File transfer between Samba and Win2k

Jolke Perelaer J.Perelaer at students.chem.uu.nl
Sat Jun 29 02:24:03 GMT 2002


Thnx for the reaction.

I tried several things... oplocks false/true, level2 oplocks true/false,
socket options, read raw write rwa etc... but nothing works?! :-(
Now I copy a part of my TCPDUMP from a file transfer (1.9 MB) from the Win2k
Client to teh Samba Server:

*******************************************************************************************************************************************************************
11:07:29.804031 eth0 < jolke.1029 > data.netbios-ssn: P 3961145030:3961145117(87) ack 3222814918 win 16748>>> NBT (DF)
11:07:29.808796 eth0 > data.netbios-ssn > jolke.1029: P 1:1461(1460) ack 87 win 32120>>> NBT (DF)
11:07:29.809404 eth0 > data.netbios-ssn > jolke.1029: P 1461:1891(430) ack 87 win 32120>>> NBT (DF)
11:07:29.811369 eth0 < jolke.1029 > data.netbios-ssn: . 87:87(0) ack 1891 win 17520 (DF)
11:07:29.813036 eth0 < jolke.1029 > data.netbios-ssn: P 87:161(74) ack 1891 win 17520>>> NBT (DF)
11:07:29.813460 eth0 > data.netbios-ssn > jolke.1029: P 1891:1977(86) ack 161 win 32120>>> NBT (DF)
11:07:29.814090 eth0 < jolke.1029 > data.netbios-ssn: P 161:235(74) ack 1977 win 17434>>> NBT (DF)
11:07:29.814490 eth0 > data.netbios-ssn > jolke.1029: P 1977:2059(82) ack 235 win 32120>>> NBT (DF)
11:07:29.816707 eth0 < jolke.1029 > data.netbios-ssn: P 235:333(98) ack 2059 win 17352>>> NBT (DF)
11:07:29.817778 eth0 > data.netbios-ssn > jolke.1029: P 2059:2166(107) ack 333 win 32120>>> NBT (DF)
11:07:29.818621 eth0 < jolke.1029 > data.netbios-ssn: P 333:421(88) ack 2166 win 17245>>> NBT (DF)
11:07:29.819104 eth0 > data.netbios-ssn > jolke.1029: P 2166:2230(64) ack 421 win 32120>>> NBT (DF)
11:07:29.819786 eth0 < jolke.1029 > data.netbios-ssn: P 421:541(120) ack 2230 win 17181>>> NBT (DF)
11:07:29.820173 eth0 > data.netbios-ssn > jolke.1029: P 2230:2294(64) ack 541 win 32120>>> NBT (DF)
11:07:29.842072 eth0 < jolke.1029 > data.netbios-ssn: . 541:2001(1460) ack 2294 win 17117>>> NBT (DF)
11:07:29.843754 eth0 < jolke.1029 > data.netbios-ssn: . 2001:3461(1460) ack 2294 win 17117>>> NBT (DF)
11:07:29.843850 eth0 > data.netbios-ssn > jolke.1029: . 2294:2294(0) ack 3461 win 30660 (DF)
11:07:29.844999 eth0 < jolke.1029 > data.netbios-ssn: . 3461:4921(1460) ack 2294 win 17117>>> NBT (DF)
11:07:29.846312 eth0 < jolke.1029 > data.netbios-ssn: . 4921:6381(1460) ack 2294 win 17117>>> NBT (DF)
11:07:29.846412 eth0 > data.netbios-ssn > jolke.1029: . 2294:2294(0) ack 3461 win 30660 <nop,nop, sack 1 {4921:6381} > (DF)
11:07:29.847589 eth0 < jolke.1029 > data.netbios-ssn: . 6381:7841(1460) ack 2294 win 17117>>> NBT (DF)
11:07:29.847708 eth0 > data.netbios-ssn > jolke.1029: . 2294:2294(0) ack 3461 win 30660 <nop,nop, sack 1 {4921:7841} > (DF)
11:07:29.848896 eth0 < jolke.1029 > data.netbios-ssn: . 7841:9301(1460) ack 2294 win 17117>>> NBT (DF)
11:07:29.849013 eth0 > data.netbios-ssn > jolke.1029: . 2294:2294(0) ack 3461 win 30660 <nop,nop, sack 1 {4921:9301} > (DF)
11:07:29.850205 eth0 < jolke.1029 > data.netbios-ssn: . 9301:10761(1460) ack 2294 win 17117>>> NBT (DF)
11:07:29.851462 eth0 < jolke.1029 > data.netbios-ssn: . 10761:12221(1460) ack 2294 win 17117>>> NBT (DF)
11:07:29.851559 eth0 > data.netbios-ssn > jolke.1029: . 2294:2294(0) ack 3461 win 30660 <nop,nop, sack 2 {10761:12221}{4921:9301} > (DF)
11:07:29.852757 eth0 < jolke.1029 > data.netbios-ssn: . 12221:13681(1460) ack 2294 win 17117>>> NBT (DF)
11:07:29.852872 eth0 > data.netbios-ssn > jolke.1029: . 2294:2294(0) ack 3461 win 30660 <nop,nop, sack 2 {10761:13681}{4921:9301} > (DF)
11:07:29.854070 eth0 < jolke.1029 > data.netbios-ssn: . 13681:15141(1460) ack 2294 win 17117>>> NBT (DF)
11:07:29.855337 eth0 < jolke.1029 > data.netbios-ssn: . 15141:16601(1460) ack 2294 win 17117>>> NBT (DF)
11:07:29.855436 eth0 > data.netbios-ssn > jolke.1029: . 2294:2294(0) ack 3461 win 30660 <nop,nop, sack 3 {15141:16601}{10761:13681}{4921:9301} > (DF)
11:07:29.856630 eth0 < jolke.1029 > data.netbios-ssn: . 16601:18061(1460) ack 2294 win 17117>>> NBT (DF)
11:07:29.856749 eth0 > data.netbios-ssn > jolke.1029: . 2294:2294(0) ack 3461 win 30660 <nop,nop, sack 3 {15141:18061}{10761:13681}{4921:9301} > (DF)
11:07:29.857947 eth0 < jolke.1029 > data.netbios-ssn: . 18061:19521(1460) ack 2294 win 17117>>> NBT (DF)
11:07:29.859231 eth0 < jolke.1029 > data.netbios-ssn: . 19521:20981(1460) ack 2294 win 17117>>> NBT (DF)
*******************************************************************************************************************************************************************

It is the part <nop,nop, sack 3 {15141:16601}{10761:13681}{4921:9301} > (DF) that I do not understand.... it returns many times and I think this is the
bottleneck for the file transfer? Does anyone understand these lines?

thnx for any reaction,
Jolke.

----- Original Message ----- 
From: "Elijah Savage III" <esavage at digitalrage.org>
To: "'Tim Allen'" <timallen at ls83.fsnet.co.uk>; <samba at lists.samba.org>
Sent: Friday, June 28, 2002 10:06 PM
Subject: RE: [Samba] Slow File transfer between Samba and Win2k


> Put this in your global config and see if it helps and let me know.
> 
> socket options = TCP_NODELAY TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192
> IPTOS_LOWDELAY
> 
> -----Original Message-----
> From: Tim Allen [mailto:timallen at ls83.fsnet.co.uk] 
> Sent: Friday, June 28, 2002 3:19 PM
> To: Elijah Savage III; samba at lists.samba.org
> Subject: RE: [Samba] Slow File transfer between Samba and Win2k
> 
> 
> This is my smb.conf:
> 
> 
> # Global parameters
> [global]
> workgroup = DCAE
> server string = Samba Server
> encrypt passwords = Yes
> username map = /usr/local/samba/lib/smbusers
> log level = 2
> log file = /var/log/samba/log.%m
> max log size = 50
> time server = Yes
> local master = No
> dns proxy = No
> printer admin = @ntadmin
> hosts allow = 192.168.1. 127.
> printing = lprng
> 
> [print$]
> path = /usr/local/samba/printers
> write list = @ntadmin,root
> guest ok = Yes
> 
> [hp_lj3p]
> path = /shared/printers/spool
> printable = Yes
> print command = lpr -Fb -r -P %p %s
> printer name = lp
> 
> [faxlp]
> path = /shared/printers/spool
> printable = Yes
> print command = lpr -r -P %p %s
> printer name = faxlp
> 
> [Data]
> comment = Development data
> path = /shared/Data
> read only = No
> inherit permissions = Yes
> 
> [Admin]
> comment = Share for Admin group
> path = /shared/Admin
> read only = No
> inherit permissions = Yes
> 
> [Apps]
> comment = Applications
> path = /shared/Apps
> read only = No
> create mask = 0644
> 
> [homes]
> comment = Home Directory
> path = /home/%S/pchome
> read only = No
> create mask = 0700
> directory mask = 0700
> browseable = No
> 
> [Common]
> comment = Common directory for file sharing
> path = /shared/Common
> read only = No
> create mask = 0777
> directory mask = 0777
> 
> 
> 
> Tim Allen
> 
> On Fri, 28 Jun 2002, Elijah Savage III wrote:
> 
> > If you guys posted you smb.conf files we might be able to help without
> > you really can't even make an educated guess.
> >
> > -----Original Message-----
> > From: samba-admin at lists.samba.org [mailto:samba-admin at lists.samba.org]
> > On Behalf Of Tim Allen
> > Sent: Friday, June 28, 2002 11:51 AM
> > To: Jolke Perelaer; samba at lists.samba.org
> > Subject: Re: [Samba] Slow File transfer between Samba and Win2k
> >
> > I just tried a similar test on a NT4, W2K dual boot machine.
> >
> > W2K 700k/sec both directions
> > NT4 600k/sec NT4->Samba
> > NT4 60k/sec Samba-> NT4 (gaps of several seconds between network
> > activity)
> >
> > Currently I get poor performance when accessing an Access database
> from
> > W2K,
> > but it's fine when booted into NT4! Both work fine talking to an NT4
> > server.
> > So there's something strange going on.
> >
> >
> > Tim Allen
> >
> >
> > ----- Original Message -----
> > From: "Jolke Perelaer" <J.Perelaer at students.chem.uu.nl>
> > To: "Samba News" <samba at lists.samba.org>
> > Sent: Friday, June 28, 2002 2:35 PM
> > Subject: [Samba] Slow File transfer between Samba and Win2k
> >
> >
> > I have a Samba file server and a dual boot Win98/Win2k client. Copying
> > file
> > from the Client in Win98 to the Samba server gives no problems:
> >
> > (I copied one 6 mb file)
> >
> > Samba server -> Win98 Client    550 kb/s
> > Samba server <- Win98 Client    500 kb/s
> >
> > But then from Samba server to Win2k Client:
> >
> > Samba server -> Win2k Client    190 kb/s
> > Samba server <- Win2k Client    18 kb/s
> >
> > Because of the fact that I use a dual boot, I can narrow the problem
> to
> > Windows 2000, instead of Samba or even my network properties. I must
> > admit
> > that I am new to this newsgroup, so I do not know how many further
> info
> > I
> > should give. I also could not find anything about this problem on the
> > web.
> >
> > Any help would be appreciated!
> > thnx.
> >
> > Jolke.
> 
> 
> 
> 
> -- 
> To unsubscribe from this list go to the following URL and read the
> instructions:  http://lists.samba.org/mailman/listinfo/samba
-------------- next part --------------
HTML attachment scrubbed and removed


More information about the samba mailing list