LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 12-29-2003, 10:09 AM   #1
will_k
LQ Newbie
 
Registered: Aug 2003
Location: Seattle
Distribution: Gentoo
Posts: 15

Rep: Reputation: 0
Samba doesn't utilize Gigabit Network


I have 3 boxes: 2 windows XP and 1 Gentoo Linux running Samba 2.2.8a. All have gigabit network cards and are plugged in through a gigabit switch. The Linux box is using the e1000 driver loaded as a module.

The 2 XP boxes can transfer a 10GB of video from one to the other in 4 minutes. However to and from the linux box takes 30 minutes.

Samba must not be utilizing the gigabit connection. And, I'm not sure why. Here is my smb.conf:

[global]
workgroup = THE_CONCLAVE
netbios name = black-box
server string = Will Gentoo
log file = /var/log/samba/log.%m
max log size = 50
encrypt passwords = yes
socket options = TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192
ssl require server cert = no
domain master = no
preferred master = no
max packet = 0

[homes]
comment = Home Directories
browseable = no
read only = no



Any advice would be appreciated.

Will
 
Old 12-29-2003, 12:12 PM   #2
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
Samba does not strictly speaking decide what network speed to use. The media options are handled by the ethernet drive. You should check that the ethernet driver is properly configured to use 1000Mb speed and full duplex.

Now aside from that, I have seen a lot of rumors that newer versions of Windows purposely break themselves for Samba compatibility. I'm not sure if that's true or not, but supposedly something has changed since Win2K that makes Windows a lot slower when interfacing with Samba.
 
Old 12-29-2003, 05:16 PM   #3
will_k
LQ Newbie
 
Registered: Aug 2003
Location: Seattle
Distribution: Gentoo
Posts: 15

Original Poster
Rep: Reputation: 0
Thanks, good input. I've have no problems with 100b/s between winxp and samba. I'll look into my drivers and connection configuration.
 
Old 12-29-2003, 07:14 PM   #4
wdingus
Member
 
Registered: Aug 2001
Location: Kingsport, TN
Distribution: RHEL & FC
Posts: 267

Rep: Reputation: 30
Do some searching on this site, there has been a lot of discussion on this topic. Biggest thing I've found so far is Norton AntiVirus 2004. AntiVirus apps will of course slow things down some, nature of the beast. NAV2004 though causes a 5:1 speed decrease in tests I've performed.

Other things include the QOS packet scheduler in WinXP not playing well with SAMBA and the "webclient" service. Do some research on these...
 
Old 12-30-2003, 10:17 AM   #5
will_k
LQ Newbie
 
Registered: Aug 2003
Location: Seattle
Distribution: Gentoo
Posts: 15

Original Poster
Rep: Reputation: 0
Thumbs up

Thanks, good advice wdingus. I did experience a performance gain transfering files from the xp box to the linux box. But, still the same slow speed vice versa after removing the qos packet scheduler on my xp boxes. I think not having the qos will help transfering both ways once i locate my initial bottleneck. Antivirus and webclient weren't an issue since I don't have those.

I'll do some more research and post back here again if i find a solution.

Will
 
Old 12-30-2003, 10:22 AM   #6
wdingus
Member
 
Registered: Aug 2001
Location: Kingsport, TN
Distribution: RHEL & FC
Posts: 267

Rep: Reputation: 30
"webclient" is a Windows XP service which installs and is enabled by default.. If you're using XP, check and make sure...
 
Old 12-30-2003, 10:44 AM   #7
will_k
LQ Newbie
 
Registered: Aug 2003
Location: Seattle
Distribution: Gentoo
Posts: 15

Original Poster
Rep: Reputation: 0
Ah, your right. You'll have to excuse me, I'm actually a roofing contractor by trade. Just a computer enthusiast by hobby.

I shutdown the webclient service and changed it to start manually.

I had also tried the advice of BruceCadieux.

"On the XP machines.
regedit
Browse to
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanserver\parameters
Create a new DWORD value called
SizRegBuf
with a dword value of 0000ffff
This will speed up all connections to the machine.
It is a fix for large directory access speeds.
"

I'm still at the same speeds with samba. I'm going to try and upgrade to samba 3 after looking at the gentoo portage tree. And experiment with it for a while.

(apache2 is transfering at 10MB/second --thats megabytes-- so I believe my ethernet driver is properly configured)

Last edited by will_k; 12-30-2003 at 11:25 AM.
 
Old 12-31-2003, 12:55 PM   #8
will_k
LQ Newbie
 
Registered: Aug 2003
Location: Seattle
Distribution: Gentoo
Posts: 15

Original Poster
Rep: Reputation: 0
Samba 3.01

Just an update for anyone having these same issues. After upgrading to samba 3.01, windows xp and linux with samba are still not utilizing the potential of the gigabit network between the pair of systems.

I'm still experiencing the same poor performance.

Does anyone know a good way to allow windows xp to access and share via nfs? I've heard of "unix services for windows". Possibly there is an open-source version?

Will
 
  


Reply



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
Samba 3.0.10 with gigabit NIC fast? m-blaster Linux - Networking 1 01-04-2005 09:14 AM
Need to Utilize Full Potential md2bn08 Linux - Newbie 4 06-28-2004 11:31 AM
what no-hassle gigabit network card to buy? AkBrian Linux - Networking 2 04-22-2004 03:46 PM
can't install my gigabit Network card Rooboy Linux - Networking 0 02-11-2004 09:55 AM
Linux is slower than XP with same gigabit network card. will_k Linux - Networking 2 01-08-2004 01:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:19 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration