Samba slow in write/copy from win20003 to samba3 GBit connection

Samba slow in write/copy from win20003 to samba3 GBit connection

Post by rabaram » Tue, 21 Dec 2004 23:38:14



I've a win2003  server with 2 network cards
1) 192.168.1.1 (100Mbit)
2) 192.168.50.1 (1Gbit)
Sambaserver
1) 192.168.1.2 (100Mbit)
2) 192.168.50.2 (1Gbit)

When i read from a samba server and i copy into the win2003 speed is good,
when i do the opposit (reading from win and writing to samba) it's
incredibly slow.
The Gbit network is the slow one.
The 100Mbit network works fine.
Help
Thanks

 
 
 

Samba slow in write/copy from win20003 to samba3 GBit connection

Post by prg » Wed, 22 Dec 2004 03:16:52



> I've a win2003  server with 2 network cards
> 1) 192.168.1.1 (100Mbit)
> 2) 192.168.50.1 (1Gbit)
> Sambaserver
> 1) 192.168.1.2 (100Mbit)
> 2) 192.168.50.2 (1Gbit)

> When i read from a samba server and i copy into the win2003 speed is
good,
> when i do the opposit (reading from win and writing to samba) it's
> incredibly slow.
> The Gbit network is the slow one.
> The 100Mbit network works fine.
> Help
> Thanks

Assuming the Samba server is running Linux -- what flavor?  what
kernel?

What kind of nics?

Similar issues with other protocols -- eg., FTP or HTTP?  Have you
tried a quick and dirty test setting one of these up on the Samba
server?

Examined packets for possible GigE performance issues?  Ethereal runs
quite nicely on both Win and Linux.

Does ifconfig on Linux show errors?  Netstat output from Linux and XP?

GigE nets can be _very_ fussy about TCP settings and your symptoms --
very slow writes to the Samba server at GigE speeds are quite common as
interrupt processing and buffers both may be easily swamped with
default settings.  Packet sniffing will usually give good clues what's
wrong.

If this is just a home setup, it may be easiest to run 100mb on the
GigE nics for more consistent, reliable service.  Even in "commercial"
settings it is not uncommon for folks to settle for 30-40% of 1000Mbs
potential.

If you want/need the extra speed be prepared to do a good bit of
detective work to locate the bottleneck.  My first guess is that the
writes are swamping the disk subsystem and kernel I/O scheduler -- with
a possible interrupt overload from the nic thrown in.

You might want to search in linux.samba ("gigabit slow" is what I just
tried) for some clues.

Till you get back with some performance data, TCP settings, clueful
packet sniffs it's _very_ near impossible to tell what your problem is.
Is it worth the problem to tackle this now -- holidays and all?
hth,
prg
email above disabled

 
 
 

Samba slow in write/copy from win20003 to samba3 GBit connection

Post by Antoine EMERI » Wed, 22 Dec 2004 08:55:56




Quote:> I've a win2003  server with 2 network cards
> 1) 192.168.1.1 (100Mbit)
> 2) 192.168.50.1 (1Gbit)
> Sambaserver
> 1) 192.168.1.2 (100Mbit)
> 2) 192.168.50.2 (1Gbit)

> When i read from a samba server and i copy into the win2003 speed is
> good, when i do the opposit (reading from win and writing to samba)
> it's incredibly slow.
> The Gbit network is the slow one.
> The 100Mbit network works fine.
> Help
> Thanks

What are your copy commands (smbclient ? smbmount + cp ?, ...) ?
and what hostnames or ips are you using ?
are you sure that the transfert move throw the right interface (1Gbit) ?

output of :

- mii-tools
- ifconfig
- netstat -rn
...

Regards

 
 
 

Samba slow in write/copy from win20003 to samba3 GBit connection

Post by rabaram » Thu, 23 Dec 2004 02:56:56


Quote:> What are your copy commands (smbclient ? smbmount + cp ?, ...) ?
> and what hostnames or ips are you using ?
> are you sure that the transfert move throw the right interface (1Gbit) ?

the copy is from windows console to samba  is very slow
the copy from windows console to samba server using ftp is very fast
The copy from samba to samba using mount and then cp
or scp Is very fast.
I use debian sarge, kernel 2.6.1 , nic realtek 8169

Thanks

 
 
 

Samba slow in write/copy from win20003 to samba3 GBit connection

Post by japennoc » Sun, 02 Jan 2005 20:27:36


We are having probably the same problem.  We have a fedora core 3
2.6.9-1.681_fc3smp box running samba 3.0.10, and reads from the box are
very quick.  Writes from a windows box to the linux box are extremely
slow unless a second write session is started, then both of them run
very fast until one of them finishes, then the remaining one slow back
down.  Network functions on this box work great, ftp, http, etc., a
copy from one spot on the hard drive to another is very quick.  It
seems to be a samba write problem.
 
 
 

Samba slow in write/copy from win20003 to samba3 GBit connection

Post by japennoc » Sun, 02 Jan 2005 20:31:10


Sorry, I didn't finish before I submitted.  Does anyone have any ideas?
Thanks in advance.
 
 
 

1. Samba 2.0.5 on FreeBSD 3.1-RELEASE - very very slow writing to Samba from win98

Hi,

I have a two machine network: FreeBSD 3.1 on a PPro 200 with 40mb ram, and
Win98 on a PII-450 with 256mb ram.  I am using a crossover cable between
100mb/s Fast Ethernet cards, thus giving me a dedicated 100mb/s between the
two.

I want to use my FreeBSD machine as a file server, emulating NT to a limited
degree.  I've set up Samba 2.0.5a, configuring it as a Domain Controller,
and have been able to log into it succesfully from Win98.   I've disabled
password encryption on Win98 to make things simpler (using the .reg file
supplied with Samba).

Reading files from FreeBSD to Win98 is very fast - I get about 3mbytes/sec
transfer rates, which is the same as I get through FTP.  However, writing
files from Win98 to FreeBSD is extremely slow - somewhere in the region of
about 75kbytes/sec.  The method I am using to test this is simply to map a
FreeBSD share to a win98 drive letter, then to drag a large (30mb) file onto
that drive.

If I FTP from Win98 to FreeBSD and upload files, I get the same rate as when
I download - 3mbytes/sec.  If I run smbclient on the FreeBSD box to pull
shared files from Win98 I get a slower rate - 900kbytes/sec - but still very
much faster than when Win98 is doing the uploading.

The Win98 machine has very fast hard drives - LVD Ultra Wide SCSI.  The
FreeBSD machine has a very old 1gb IDE that is due to be replaced with a
UDMA model tomorrow.  I am not quite sure why I only get 900kb/sec through
smbclient, hwoever even this would be acceptable if I could get it when
uploading from Win98 to FreeBSD.

I've read through Speed.txt in the documents and made a couple of
modifications (e.g. enabled level 2 oplocks) but nothing seems to have made
any difference.  The problem must be with either Win98 or Samba, as it only
occurs when Win98 sends files to FreeBSD using Samba - FTP sending is fine

Any help on this would be much appreciated!

Tom

2. /proc/net/dev ?

3. SMB slow, Samba slow, or something else slow?

4. in a .cfg file, what's meaning of the symbol $#

5. Samba Very Slow Write with MS DOS Client ...

6. undefined symbol identification problem

7. Win95 Writes via Samba extremely slow

8. Opera-- how to read a file?

9. Samba slow with 100Mbit writing access

10. samba writes big files much too slow

11. VERY slow samba-server connection

12. Samba connection slow in Linux-Win98 LAN

13. Slow linux-win98-samba connection