Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 10-04-2010, 06:54 AM   #16
Registered: Dec 2008
Location: Germany/Poland
Distribution: CentOS / Debian / Solaris / RedHat
Posts: 266

Rep: Reputation: 19

This is a problem with finding proper netbios name. Thats why is so slow.

First check Your netbios name.

in my case it is:

[root@b1 ~]
In /etc/smb.conf in section [global]

addopt this line

netbios name = b1
Ofcourse instead of b1 please put Your netbios name.

Please do not forget to put the same name in URL (this is important!! )


Samba is not slow and doesnt need extremly fast hardware. It needs proper configuration. Here You have example of perfect working configuration.

   workgroup = BGROUP
   interfaces = eth1
   server string = NewFileServer
#   bind interfaces only = true
   netbios name = b1
   security = user
   encrypt passwords = yes
   smb passwd file = /etc/samba/smbpasswd
   writable = Yes
   inherit permissions = Yes
   name resolve order = lmhosts host wins bcast

   comment = Home Directories
   valid users = %S
   browseable = Yes
   read only = No
   comment = shared zone
   path = /home/share-zone
   writeable = Yes
   create mode = 0775
   inherit permissions = No
   writable = Yes

Last edited by dlugasx; 10-04-2010 at 07:00 AM.
Old 10-05-2010, 03:26 AM   #17
Registered: May 2009
Location: Leeds Uk
Distribution: Linux Mint 18
Posts: 111

Rep: Reputation: 12
Thanks for the reply.
About 6 years ago I had a FreeBSD samba server and the speed was impressive especially with media files.
It's such a long time since set one of these up that I opted to use the "Samba Server Configuration tool" which left out the NetBios name.
I think I'm going to go back and do this the old fashioned way.


Old 01-29-2011, 10:31 PM   #18
LQ Newbie
Registered: Nov 2005
Location: Idaho
Distribution: Mandrake/Mandriva
Posts: 5

Rep: Reputation: 0
I hope so because my problem is even a weirder issue.....

Machine 1: Ubuntu 10.04
Machine 2: Suse 11.3
Machine 3: FreeNAS (FreeBSD 7.3)

Samba transfers across a gigabit link:
Machine 1 -> Machine 2 : 300 Mb/s
Machine 2 -> Machine 3 : 300 Mb/s
Machine 1 -> Machine 3 : 10 Mb/s

All three systems have the same version of Samba and socket options = TCP_NODELAY with receive and transmit windows at 64240.

I don't believe it's the network or the NIC because I can mount the file system from Machine 3 onto Machine 1 and get 300 Mb/s.

This is so strange!!
Old 01-30-2011, 11:56 AM   #19
Registered: May 2009
Location: Leeds Uk
Distribution: Linux Mint 18
Posts: 111

Rep: Reputation: 12
When I first asked about speed issues I was using system-config-samba to configure samba with mixed results.
I consider the issue as resolved because of the following lines.

workgroup = BGROUP
server string = NewFileServer
netbios name = b1

They are significant but they don't seem to be managed by some of the configuration tools. I manualy edited the config file and Tada works fine now.

Oh by the way. Well done with the base config dlugasx. It works a treat.
jstaffon I think you will probably need to take another look at your smb.conf and leave the configuration tools alone.

I would wish you luck but I don't think you will need it.

Old 01-30-2011, 05:42 PM   #20
LQ Newbie
Registered: Nov 2005
Location: Idaho
Distribution: Mandrake/Mandriva
Posts: 5

Rep: Reputation: 0
Thanks for the reminder about the config tools. I always configure the smb.conf with vi but in the case of the machine in question, I've just tweaked the original config file. I think I'll strip out all of the crap thats commented out and not necessary. A smaller, simplified config file is always better. Great idea! Thanks.
Old 03-01-2011, 02:41 AM   #21
LQ Newbie
Registered: Mar 2011
Posts: 1

Rep: Reputation: 0
Samba itself isn't necessarily to blame, I had a 550mb file I needed to transfer from my Kubuntu system (a fresh install of Kubuntu 10.10 Maverick less than a week old, but with all updates installed) to my Windows XP system and when I initially started the transfer the time was reported at about 2 hours, even after letting it go for a few seconds it still was reported at around 1 hour and 50 seconds. I've done transfers around this size from Windows to Windows systems and usually it takes around 10 minutes or so (depending on whether I'm surfing the web at the same time or not), so I knew something was really screwed up here. I had been originally using the onboard VIA 6103 NIC ,which was giving me excellent torrent download results and excellent web download results as well, but I decided to try some of the other PCI bus NIC cards I had lying around. Below are the results I obtained with each card WITHOUT modifying my samba configuration at all.
1) Linksys LNE-100TX Ver. 5.1 - Transfer reported approximate time at about the same as VIA 6103
2) D-Link DFE-530TX+ Rev-F1 - Again almost the exact same results as the VIA 6103
3) Unbranded card with MX98713FC Chipset - Caused system to hang a few seconds into transfer
4) 3Com 3C905B (tried and true card supported by pretty much every PC operating system in the world) - knocked about 10 seconds off the reported transfer rate.
5) Unbranded RTL8139D Chipset based card - Apparently not supported by Kubuntu for some reason or bad card.
6) Farallon RTL8139C Chipset based card - Transfer time dropped to about 7 Minutes instead of around 2 hours!!!!
AFIK all of these cards are 10/100 cards, the 3Com, Linksys, D-Link and MX98713FC based card are definitely supposed to be capable of 100mbs connections, as is the Farallon card (indicated by the presence of a 100mbs indicator LED on some of them).

To me this indicates a pretty serious problem with the default configuration of a number of the kernel modules/drivers/etc.. that are used to support some of the cards above, it's pretty sad when a generic cheapo RTL8139C based card can blow some of those other major brand name cards out of the water the way it did.

The specs of the system I did this on are as follows:
CPU: AMD Athlon XP 2400+ w/266mhz FSB
RAM: 1.5Gb PC3200 (DDR-400) running at 400mhz
Video: nVidia MX-4000 PCI card w/128mb memory
Audio: Onboard VIA 8237 integrated audio
HD: 160Gb Western Digital IDE (PATA) hard drive UDMA5
DVD: Samsung SH-S222A 22X DVD burner

I admit this was by no means a scientifically conducted test but the results do seem to speak for themselves indicating a problem with the default configuration of the various kernel modules.

Last edited by bartman2589; 03-01-2011 at 02:47 AM.
Old 03-03-2011, 05:04 PM   #22
LQ Newbie
Registered: Feb 2006
Posts: 1

Rep: Reputation: 0
Hi there,

Someone else here with the same issue... In my case I have a RTL 8139.

I'm trying to move files from a hard disk connected to a media server (WD TV Live) to an Ubuntu box. I also have the speed issue, usually less than 1 MB/s.

The thing is that if I move more than one file at the same time, I get a much higher speed. So it seems like the limitation is at one file at the time.

I have changed the samba conf file as pointed out, but in my case it does not apply, as I'm using smbclient... any hints? (samba config on the server cannot be modified, in any case, from a windows box it goes pretty fast).


Old 09-27-2011, 03:19 AM   #23
Registered: Jul 2011
Location: Delhi
Distribution: Cent OS/RHEL
Posts: 37

Rep: Reputation: Disabled
Extremly Slow Samba


Its a bug in ubuntu.
you can check it out here

Old 01-31-2012, 08:58 AM   #24
LQ Newbie
Registered: Jan 2012
Posts: 1

Rep: Reputation: Disabled
I cannot post URLs since this I am new. Shame. Google "samba performance" and read up on how to tune samba.

For ubuntu 10 or 11 I suggest:

socket options = TCP_NODELAY
write_raw = no
read_raw = no

read/write_raw may make things worse. It depends how fast your network is compared to the servers HDD and how much "risk" you are willing to take. For example, I use them for a server with a huge RAID that has 8GB of memory and is backed up with UPS.
Old 01-06-2013, 12:50 PM   #25
LQ Newbie
Registered: Jan 2013
Posts: 1

Rep: Reputation: Disabled
Ubuntu 12.10 server with OS X 10.7 client

I'm running ubuntu 12.10 and was connecting to samba share with MBPro 10.7 (os x) and experiencing a max transfer rate of 80/kps, suuuuuuuper slooooooow.

After reading endless posts on the matter and trying all sorts of other clients to connect with (as well as servers) none of them were anything like the native smb connection on os x (command K to connect to server) transfer rate i had with ubuntu 11.10.

My socket options for this uber fast transfer rate with my 11.04 smb server were as such:

I've been using this setting for about 5 years across multiple server installs so one would think it'd be just fine for ubuntu 12.10 .... wrong! fortunately I came across this thread bc 1 simple change fixed it for me.

My new socket options in my smb.conf on ubuntu 12.10 are now as such:

bla dow! uber fast once again - MASSIVE PROPS ELECTRO! TY


cifs, fstab, mount, realtek, samba, smbfs

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
extremly urgent spinal2 Programming 17 10-30-2006 08:37 AM
wireless, extremly slow, tons of DNS query true_atlantis Linux - Wireless Networking 2 06-01-2006 10:26 PM
extremly slow login cbriscoejr Fedora 0 11-08-2004 10:31 AM --> EXTREMLY SLOW /etc/rc.d/rc.hotplug start carboncopy Slackware 10 09-30-2004 03:40 PM
External 56k Modem EXTREMLY slow on Fedora Core 2... Elite_Gamer04 Linux - Hardware 1 07-15-2004 03:11 AM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:54 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