Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 06-09-2002, 12:22 PM   #1
LQ Newbie
Registered: Jun 2002
Posts: 3

Rep: Reputation: 0
Samba slow file copying

I'm new to Linux and Samba and have set up a network that is almost done, but I need help with this problem.

I have a Linux (RH 7.1) server set up with 3 windows clients (2 98s and 1 XP) set up on a cable modem with IP Masqing, running Samba 2.0.7 on a 10mbit Ethernet LAN. All clients are able to access the internet, shares, files - in other words, everything seems to be working just as it should except for one thing.

Copying larger files (starting about 400k it seems) FROM Linux TO windows is extremely slow. A 5MB file copies FROM Linux in about 70 seconds, and TO Linux in 4 seconds.

I've tried all sorts of different socket options, large, small, with/without raw, etc. It is currently:

socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=8192 SO_SNDBUF=8192 SMBwriteraw SMBreadraw

I thought of updating to the newest version of samba, but being new to Linux, I'm not sure if that will cause any problems. I downloaded an RPM. Will installing this RPM break anything that IS working? Will it help the problem at all?

What else could cause this slowdown? I find it strange that writing TO Linux is fast, but FROM Linux slow.

Any ideas at all would be welcome!

Last edited by robinsn; 06-09-2002 at 12:43 PM.
Old 06-09-2002, 01:02 PM   #2
LQ Newbie
Registered: Jun 2002
Posts: 3

Original Poster
Rep: Reputation: 0
Oh, one other piece of information. The file copying performance suffers the same in FTP transfers as it does in Windows Explorer copies. Fast TO Linux and Slow FROM Linux.
Old 06-10-2002, 07:11 AM   #3
Registered: May 2002
Location: Dalec, HU
Distribution: Redhat 7.3
Posts: 696

Rep: Reputation: 30
try still upgrading to new samba, but need to check your hardware also
Old 06-15-2002, 02:18 AM   #4
LQ Newbie
Registered: Jun 2002
Posts: 3

Original Poster
Rep: Reputation: 0
I've upgraded to the newest samba version and have interesting results.

Originally, getting 5MB from linux was 70 seconds, now it's 35 seconds.

Originally sending 5MB TO linux was 5 seconds, now it's 20 seconds.

Any ideas what could be going on? I keep thinking it has to be something to do with packet sizes or acks, but I can't figure it out. Any help would be appreciated!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
USB Removable Media copying VERY SLOW stardotstar Linux - Hardware 4 03-02-2005 11:50 AM
Preserve file permissions when copying from NTFS to a Samba share? somedude Linux - Software 4 06-11-2004 09:20 AM
Slow file tranfer speeds with samba msafri Linux - Networking 0 03-23-2004 08:48 AM
Question on File System and File Copying hey_joe Linux - Newbie 2 11-05-2003 10:30 AM
access samba file from windows XP slow. lohdavid Linux - Networking 1 08-27-2003 04:46 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:03 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration