[Samba] Slow File transfer between Samba and Win2k

Aton aton at skyenet.net
Sat Jun 29 07:18:03 GMT 2002


The best slogan ever heard in the industry was, "Keep it 3Com". Why? Even
though 802.3 is a standard, not every vendor is true to it. Your cheapy NICs
tend to use cards that are compatible with the Tulip driver, which supports
PIO
mode transfers only. 3Com, Intel, and others use cards that support DMA
transfers. DMA transfers are a lot less of a bottleneck than PIO, but at the
same time its more complicated for people to write drivers for them.

Most of the servers I install use either a 3Com 905B or C (not a CX, those
suck), or if the customer purchases a higher end server, we use the onboard
NICs, which are typically Intel. We've standardized on Red Hat for our server
roll outs, and Red Hat's latest kernel, 2.4.18-3 or higher has Intel's PRO 100
and PRO 1000 drivers included. Not the Open source version, but ones
written by
Intel. Some may argue that the kernel is tainted, but these drivers work
flawlessly. I've been places before were a customer needed additional hub
space, and replacing their old Netgear 8 port with a 3Com OfficeConnect 16
port
not only gave them more ports, but they visibly noticed that it was faster.

It is true that you get what you pay for.

Aton

At 09:05 AM 6/29/2002 -0400, you wrote: 

>
> Jolke,
>
>  
>
> Ok now that you have tried all this I do not think it is a Samba problem,
the
> reason I say this is I have a friend that runs the network for a small
> business that has exact same setup as you do and I have spoken with him
about
> it. He said he did run into the same issues when he first installed but said
> it was a Network card problem, the network card worked great in windows but
> was terribly slow in unix. He said it was dirver support under linux that
was
> killing performance. After swapping it out he proceeded with his network
> migration.
>
>  
>
> Redhat/Samba Dual 733mhz p3 1gig of mem.
>
>  
>
> 525 Windows clients with Cisco equipment running the network and no slow
> performance issues at all.
>
>  
>
> I guess what I am saying is try swapping out network card in that box. The
> one you have now may even be on the hardware list but the drivers for it may
> not be the best.
>
>  
>
> -----Original Message-----
> From: samba-admin at lists.samba.org [mailto:samba-admin at lists.samba.org] On
> Behalf Of Jolke Perelaer
> Sent: Saturday, June 29, 2002 5:22 AM
> To: Samba; Elijah Savage III
> Subject: Re: [Samba] Slow File transfer between Samba and Win2k
>
>  
>
> 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"
> <<mailto:esavage at digitalrage.org>esavage at digitalrage.org>
>
> To: "'Tim Allen'"
> <<mailto:timallen at ls83.fsnet.co.uk>timallen at ls83.fsnet.co.uk>;
> <<mailto:samba at lists.samba.org>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>mailto:timallen at ls83.fsnet.co.uk] 
> > Sent: Friday, June 28, 2002 3:19 PM
> > To: Elijah Savage III; <mailto:samba at lists.samba.org>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: <mailto:samba-admin at lists.samba.org>samba-admin at lists.samba.org
> [<mailto: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; <mailto:samba at lists.samba.org>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"
> <<mailto:J.Perelaer at students.chem.uu.nl>J.Perelaer at students.chem.uu.nl>
> > > To: "Samba News" <<mailto:samba at lists.samba.org>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>http://lists.samba.org/mail
> man/listinfo/samba








More information about the samba mailing list