Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
10-29-2004, 01:12 PM
|
#1
|
|
Member
Registered: Jan 2003
Location: Indiana
Distribution: Centos, RedHat Enterprise, Slackware
Posts: 524
Rep:
|
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.
|
|
|
|
10-29-2004, 01:20 PM
|
#2
|
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 42,711
|
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
|
|
|
|
10-29-2004, 01:49 PM
|
#3
|
|
Member
Registered: Jan 2003
Location: Indiana
Distribution: Centos, RedHat Enterprise, Slackware
Posts: 524
Original Poster
Rep:
|
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.
|
|
|
|
10-29-2004, 02:02 PM
|
#4
|
|
Member
Registered: Feb 2004
Location: Mooresville NC
Distribution: CentOS 4,Free BSD,
Posts: 358
Rep:
|
Did you do a (service smb restart) after making changes?
|
|
|
|
10-29-2004, 02:31 PM
|
#5
|
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 42,711
|
the buffer sizes for both directions are worth playing with a bit, try changing them from 8k to 16k
|
|
|
|
10-29-2004, 02:48 PM
|
#6
|
|
Member
Registered: Jan 2003
Location: Indiana
Distribution: Centos, RedHat Enterprise, Slackware
Posts: 524
Original Poster
Rep:
|
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.
|
|
|
|
10-29-2004, 02:57 PM
|
#7
|
|
Member
Registered: Feb 2004
Location: Mooresville NC
Distribution: CentOS 4,Free BSD,
Posts: 358
Rep:
|
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.
|
|
|
|
10-29-2004, 04:02 PM
|
#8
|
|
Senior Member
Registered: Dec 2000
Location: Gothenburg, SWEDEN
Distribution: OpenSUSE 10.3
Posts: 1,028
Rep:
|
It isn't the hard disk that is faster?
Or maybe a DMA setting?
|
|
|
|
10-29-2004, 04:24 PM
|
#9
|
|
Member
Registered: Jan 2003
Location: Indiana
Distribution: Centos, RedHat Enterprise, Slackware
Posts: 524
Original Poster
Rep:
|
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
|
|
|
|
10-30-2004, 08:39 AM
|
#10
|
|
Senior Member
Registered: Dec 2000
Location: Gothenburg, SWEDEN
Distribution: OpenSUSE 10.3
Posts: 1,028
Rep:
|
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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 04:21 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|