[Samba] RE: Samba running slow
Tom Van den Eynde
tom at vandeneynde.net
Tue Jan 30 23:33:15 GMT 2007
Thanks for the feedback. I will try to install another NIC this week and see
if I have the same results.
My guess still is the kernel driver. The only strange thing is that it only
effects Samba. All other network protocols are running fine.
I have seen that Realtek also provides a driver on their website:
http://www.realtek.com.tw/downloads/downloadsView.aspx?Langid=1&PNid=5&PFid=
5&Level=5&Conn=4&DownTypeID=3&GetDown=false
Unfortunately this driver causes my kernel to panic.
I have googled some more and found the following kernel bug report:
http://bugzilla.kernel.org/show_bug.cgi?id=7555
The status is closed for the moment there however.
-----Original Message-----
From: Salman Moghal [mailto:smoghal at yahoo.com]
Sent: zondag 28 januari 2007 21:55
To: tom at vandeneynde.net
Cc: samba at lists.samba.org
Subject: RE: Samba running slow
To get around this slowness issue -- a combination of asus mobo, its onboard
"Realtek RTL8111/8168B gigabit controller" and perhaps even the new kernel
2.6.19-1 -- I was suggested two things:
1- use "ethtool" to turn off "auto-negociation" feature
2- disable the on-board realtek card and use a standard PC100 10/100 network
card.
I tried to fiddle around with ethtool but couldn't disable auto-negociation.
Finally I disabled the onboard card and replaced it with an old LinkSys NIC.
The problem went away. I am now using Linksys card that uses "tulip" kernel
drivers (I was using before the upgrade and never had any problems). Also,
I have removed all the tweaks for oplocks from smb.conf.. and I'm not seeing
this problem. I'm still not sure what is the root cause:
- kernel 2.6.19-1 driver "r8169" for Realtek RTL8111/8168B gigabit
controller cards, or
- samba not being able to work with the network driver?
For now, I'm going to run with my current config until someone in the samba
dev community would be kind enough to test out this config and come up with
a fix. It would be ideal to get the Realtek RTL8111/8168B controller
working.
----- Original Message -----
From: "Tom Van den Eynde" <tom at vandeneynde.net>
To: "'Salman Moghal'" <smoghal at yahoo.com>
Sent: Saturday, January 27, 2007 8:28 AM
Subject: [Bulk] RE: Samba running slow
> Hello,
>
> I just read your thread in the mailing-list and I do experience exactly
> the
> same problem.
> I have the exact same hardware (Asus P5B, Core 2 Duo) and the same version
> of kernel and samba.
> Unfortunately, I have not been able to solve it just yet and I too would
> very much like to tackle this issue.
>
> Now I am not a samba/kernel hacker but my gut feeling tells me that it is
> a
> combination of the latest kernel 2.6.19-1 with samba. Thanks to the
> cutting
> edge hardware, I cannot downgrade to an earlier kernel version to test as
> these do not support all features of the mobo.
>
> Today, I am planning on compiling the 2.6.19-2 kernel and see if that
> helps.
> 2.6.20 is also coming out soon but I don't see anything in the change log
> what could lead to solving this issue.
> Another approach might be to change the NIC to a standard PCI 100 Mbit
> card
> which is well supported by the kernel for years, but I would very much
> like
> to get it working in the current setup.
>
> I will keep you posted if I find anything. I would really appreciate it if
> you let me know when you are making progress too.
>
> Kind regards,
>
> Tom
>
> PS: I will reply to the list as well, as every extra info might be useful
> for the samba community.
>
>
> -----Original Message-----
> From: Salman Moghal [mailto:smoghal at yahoo.com]
> Sent: zaterdag 27 januari 2007 9:51
> To: tom at vandeneynde.net
> Subject: Re: Samba running slow
> Importance: High
>
> Hello:
>
> I was browsing through samba archives and noticed that you also ran into
> the
>
> exact same problem as I have recently encountered with samba shares and
> file
>
> streaming. Recently, I also upgraded to a new hardware (Asus p5b board
> with
>
> on-board Realtek controller and dual-core processor) -- I use Fedora Core
> 6
> & samba version 3.0.23. Since the upgrade, samba hasn't worked the same..
> and it's painful since I have a lot of services that depend on samba
> shares.
>
> I would really appreciate any input / feedback / tips / work-arounds on
> this
>
> streaming issue..
>
> Regards
> Salman Moghal
>
> ----- Original Message -----
> From: "Salman Moghal" <smoghal at yahoo.com>
> To: <samba at lists.samba.org>
> Sent: Saturday, January 27, 2007 3:43 AM
> Subject: Re: Samba running slow
>
>
>>
>> I should have kept reading through the samba archive online. There was a
>> similar, very recent, reported problem:
>>
>>
>
http://groups.google.com/group/linux.samba/browse_frm/thread/8bf6e9791ae9b3c
> d/0a038c363be7ba2a#0a038c363be7ba2a
>>
>> After adding these lines in smb.conf, copying a file over samba share was
>> lightening fast (just as fast as over FTP/HTTP connection):
>>
>> socket options = TCP_NODELAY
>> oplocks = no
>> level2 oplocks = no
>>
>> My eventual goal is to be able to play mp3 and movies over LAN. And I've
>> run into the same problem with streaming a file across (as mentioned in
>> the thread) -- streaming a file is very choppy.
>>
>> Any ideas?
>>
>>
>> ----- Original Message -----
>> From: "Salman Moghal" <smoghal at yahoo.com>
>> To: <samba at lists.samba.org>
>> Sent: Saturday, January 27, 2007 2:48 AM
>> Subject: Re: Samba running slow
>>
>>
>>> Here's my samba version in FC6:
>>>
>>> samba-common-3.0.23c-2
>>> samba-3.0.23c-2
>>> samba-client-3.0.23c-2
>>>
>>>
>>> ----- Original Message -----
>>> From: "Salman Moghal" <smoghal at yahoo.com>
>>> To: <samba at lists.samba.org>
>>> Sent: Saturday, January 27, 2007 2:45 AM
>>> Subject: Samba running slow
>>>
>>>
>>>> Hello everyone:
>>>>
>>>> Over the past few years I have been a happy samba user, running samba
>>>> on
>
>>>> Redhat / FC platforms. Recently I upgraded hardware, and Samba hasn't
>>>> been performing well at all.. which makes me sad :-(
>>>>
>>>> The new hardware is Asus P5B board with a dual-core intel processor.
>>>> This board has an onboard Realtek RTL8111/8168B gigabit ethernet
>>>> controller, which was a hassle to setup. FC6 default kernel 2.6.18-x
>>>> doesn't have drivers for it. Upgrading to the latest kernel 2.6.19-1
>>>> fixed that. Since then I have verified that both web and ftp servers
>>>> are
>
>>>> functioning normally. I use apache 2.2.3-5 and vsftpd 2.0.5-8.
>>>> Downloading a 90MB file through apache and vsftp takes less than 1.5
>>>> minutes on my local LAN (LinkSys WRTGL router). However, if I mount a
>>>> drive in XP and try to copy the same file over samba.. it takes over
>>>> 20-25 minutes---weird! I looked through several online archives and
>>>> suggestions.. however none seemed to work. So I decided to ask for
>>>> help
>
>>>> here.. Please help!
>>>>
>>>>
>>>> Here are some details:
>>>>
>>>> Samba Server:
>>>> Platform: Fedora Core 6 - kernel 2.6.19-1.2895.fc6
>>>> Hardware: Asus P5B motherboard with on-board Realtek RTL8111/8168B
>>>> gigabit ethernet controller
>>>> Samba Client:
>>>> Windows XP Pro (SP2)
>>>> Router:
>>>> LinkSys WRTGL
>>>>
>>>> Note: FC6 kernel 2.6.19-x uses r8169 kernel modules for this realtek
>>>> ethernet controller..
>>>>
>>>> Samba config:
>>>> [global]
>>>> netbios name = JUPITER
>>>> workgroup = HOME.NET
>>>> server string = Linux Samba Server
>>>> security = share
>>>> encrypt passwords = yes
>>>> smb passwd file = /etc/samba/smbpasswd
>>>> hosts allow = 192.168.1. 127.
>>>> guest account = samba
>>>> log file = /var/log/samba/%m.log
>>>> max log size = 50
>>>> interfaces = 192.168.1.1/255.255.255.0
>>>> local master = yes
>>>> dns proxy = no
>>>>
>>>> # disable printing
>>>> load printers = no
>>>> printing = bsd
>>>> printcap name = /dev/null
>>>> disable spoolss = yes
>>>>
>>>> [scratch]
>>>> comment = Scratch Directory
>>>> path = /opt/scratch
>>>> read only = no
>>>> public = yes
>>>> writable = yes
>>>> guest ok = yes
>>>> group = samba
>>>> create mask = 0664
>>>> directory mask = 0775
>>>> ##write list = @root
>>>>
>>>> [web]
>>>> comment = Web Root
>>>> path = /var/www/html
>>>> read only = no
>>>> ##public = yes
>>>> writable = yes
>>>> group = samba
>>>> create mask = 0664
>>>> directory mask = 0775
>>>> ##guest ok = yes
>>>>
>>>>
>>>> ethtool info:
>>>> Settings for eth0:
>>>> Supported ports: [ TP ]
>>>> Supported link modes: 10baseT/Half 10baseT/Full
>>>> 100baseT/Half 100baseT/Full
>>>> 1000baseT/Full
>>>> Supports auto-negotiation: Yes
>>>> Advertised link modes: 10baseT/Half 10baseT/Full
>>>> 100baseT/Half 100baseT/Full
>>>> 1000baseT/Full
>>>> Advertised auto-negotiation: Yes
>>>> Speed: 100Mb/s
>>>> Duplex: Full
>>>> Port: Twisted Pair
>>>> PHYAD: 0
>>>> Transceiver: internal
>>>> Auto-negotiation: on
>>>> Supports Wake-on: pumbg
>>>> Wake-on: g
>>>> Current message level: 0x00000033 (51)
>>>> Link detected: yes
>>>>
>>>>
>>>>
>>>>
>>>>
>>>
>>
>
>
>
>
More information about the samba
mailing list