LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 10-29-2004, 01:12 PM   #1
ghight
Member
 
Registered: Jan 2003
Location: Indiana
Distribution: Centos, RedHat Enterprise, Slackware
Posts: 524

Rep: Reputation: 30
Samba File Transfer Speed


What factors make a difference when transfering large files to and from samba shares.

I've been testing some equipment and the results were not as I expected. I have 2 samba servers, one is a very simple Crux test install with a customized kernel for the hardware and samba compiled from source with optimizations for my needs. The server is a 950Mhz CPU with 256M Ram and a Netgear Network card.

The other system is RedHat 9 with a binary install of Samba 2.2 and a generic 2.4 kernel. It is on a 450Mhz CPU with 768M Ram.

When transfering large files (CD ISO's) , the old 450Mhz, RedHat 9 with samba 2.2 transfers the file in half the time of the Crux machine. Is there any item that stands out as to why the old 450Mhz machine is faster than the 950Mhz. Is it the extra RAM, the older version of Samba, or something else? Any help would be appreciated.
 
Old 10-29-2004, 01:20 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Rep: Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966
buffer sizes are the normal culprits for samba speeds. you might benefit from modify the socket options in the server config file, smb.conf
Code:
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=8192 SO_SNDBUF=8192
 
Old 10-29-2004, 01:49 PM   #3
ghight
Member
 
Registered: Jan 2003
Location: Indiana
Distribution: Centos, RedHat Enterprise, Slackware
Posts: 524

Original Poster
Rep: Reputation: 30
Thanks for the quick reply. The last three options were not in the Crux smb.conf, so I did add them as written. Unfortunately, the transfer time was the same over several attempts, plus or minus a few seconds.
 
Old 10-29-2004, 02:02 PM   #4
phatboyz
Member
 
Registered: Feb 2004
Location: Mooresville NC
Distribution: CentOS 4,Free BSD,
Posts: 358

Rep: Reputation: 30
Did you do a (service smb restart) after making changes?
 
Old 10-29-2004, 02:31 PM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Rep: Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966
the buffer sizes for both directions are worth playing with a bit, try changing them from 8k to 16k
 
Old 10-29-2004, 02:48 PM   #6
ghight
Member
 
Registered: Jan 2003
Location: Indiana
Distribution: Centos, RedHat Enterprise, Slackware
Posts: 524

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by phatboyz
Did you do a (service smb restart) after making changes?
Yes, I reloaded the conf file.

Here is a new twist. I've also been testing different aspects of FreeBSD and Fedora Core 2 with this same machine. I plugged in the Fedora Core 2 hard drive into the 950Mhz machine with a generic binary install of Samba 3.0.7 and a custom kernel. It was faster than both by about 15% as I would have suspected the first time. I guess I've missed something in the Crux setup.
 
Old 10-29-2004, 02:57 PM   #7
phatboyz
Member
 
Registered: Feb 2004
Location: Mooresville NC
Distribution: CentOS 4,Free BSD,
Posts: 358

Rep: Reputation: 30
Not just to throw another variable it could be the PCI bus or the Actual ethernet card it self. Cheap ethernet cards always peform bad. With windows you can use a $20.00 card, but with linux you should buy a card made for a server. The processing seems to be faster in my experience.
 
Old 10-29-2004, 04:02 PM   #8
ugge
Senior Member
 
Registered: Dec 2000
Location: Gothenburg, SWEDEN
Distribution: OpenSUSE 10.3
Posts: 1,028

Rep: Reputation: 45
It isn't the hard disk that is faster?
Or maybe a DMA setting?
 
Old 10-29-2004, 04:24 PM   #9
ghight
Member
 
Registered: Jan 2003
Location: Indiana
Distribution: Centos, RedHat Enterprise, Slackware
Posts: 524

Original Poster
Rep: Reputation: 30
The Crux install is on an older hard drive, but doesn't the 2.6 kernel optimize DMA settings automatically? I thought it did , but I could be wrong
 
Old 10-30-2004, 08:39 AM   #10
ugge
Senior Member
 
Registered: Dec 2000
Location: Gothenburg, SWEDEN
Distribution: OpenSUSE 10.3
Posts: 1,028

Rep: Reputation: 45
It might, but you could still experience performance differences.
I had an IBM 40GB 7200rpm disk. Recently I bought a new one 120GB Seagate 7200rpm (8MB cache).
This disc tramsports at nearly twice the speed.

Factors in speed of hard disks, among others: Rotation speed, Access time, Cache amount.
 
  


Reply


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
instant messenger file transfer speed is slow glennt11 Linux - Distributions 14 02-09-2006 01:55 PM
slow transfer speed samba Cavenaghi Linux - Networking 1 06-04-2005 04:39 PM
how do I transfer a 3GB file with SAMBA? alec77 Linux - Networking 2 12-20-2004 09:14 AM
Poor file transfer speed with sftp six6 Fedora 3 07-29-2004 12:22 AM
Transfer Speed Road Linux - General 1 04-11-2002 10:20 PM


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

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