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.
04-28-2006, 03:21 AM
#1
Member
Registered: Sep 2005
Location: Europe
Distribution: debian sarge
Posts: 65
Rep:
Samba - slow as hell
hey
someone an idea what's going wrong in the following setup?
We are running a basic samba on ubuntu 5.10. when one person connects, it's going very very slow, maximum 300kBps. When a second user starts a filetransfer while user1 is busy with his filetransfer, he gets high speeds, and the first one, with his slow connection, has also a speedboost to full speed (8MBps). When one of the 2 users disconnect, the other one drops again to very low speeds... verrrry strange.
We do not use rocket-science configfiles, the default one, with following extension:
[fileserver]
comment = A office fileserver
guest ok = yes
guest only = yes
path = /fileserver
browseable = yes
writable = yes
create mask = 0700
directory mask = 0700
04-28-2006, 07:26 AM
#2
Senior Member
Registered: Feb 2004
Location: England
Distribution: Slackware 11, Sabayon 3.1
Posts: 1,463
Rep:
you need to post the "global" section of your file.....
05-03-2006, 05:17 AM
#3
Member
Registered: Sep 2005
Location: Europe
Distribution: debian sarge
Posts: 65
Original Poster
Rep:
hey
hope this is helpfull. thx.
Quote:
#======================= Global Settings =======================
[global]
workgroup = TEST
server string = %h server (a Samba Fileserver)
dns proxy = no
log file = /var/log/samba/log.%m
max log size = 1000
syslog = 0
panic action = /usr/share/samba/panic-action %d
security = share
encrypt passwords = true
passdb backend = tdbsam guest
obey pam restrictions = yes
guest account = ftp
invalid users = root
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n .
socket options = TCP_NODELAY
[fileserver]
comment = A Q-tastic office fileserver
guest ok = yes
guest only = yes
path = /fileserver
browseable = yes
writable = yes
create mask = 0700
directory mask = 0700
Last edited by rubella; 05-03-2006 at 08:18 AM .
05-03-2006, 06:39 AM
#4
Senior Member
Registered: Feb 2004
Location: England
Distribution: Slackware 11, Sabayon 3.1
Posts: 1,463
Rep:
could you maybe do "grep -v "#" smb.conf on the file... so we can see without all the comment lines....
05-03-2006, 08:19 AM
#5
Member
Registered: Sep 2005
Location: Europe
Distribution: debian sarge
Posts: 65
Original Poster
Rep:
Quote:
Originally Posted by satinet
could you maybe do "grep -v "#" smb.conf on the file... so we can see without all the comment lines....
et voila
05-03-2006, 08:34 AM
#6
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 10,456
Let's hope that was "^#" ...
(and yes, I have nothing constructive to contribute)
05-03-2006, 08:43 AM
#7
Senior Member
Registered: Feb 2004
Location: England
Distribution: Slackware 11, Sabayon 3.1
Posts: 1,463
Rep:
just wondering why you're using "share level" security....
what version of samba is it?
i'm not sure about the "obey pam restrictions" and how that is relevant to share level security.
05-03-2006, 10:31 AM
#8
Member
Registered: Sep 2005
Location: Europe
Distribution: debian sarge
Posts: 65
Original Poster
Rep:
Quote:
Originally Posted by satinet
just wondering why you're using "share level" security....
what version of samba is it?
i'm not sure about the "obey pam restrictions" and how that is relevant to share level security.
i am working with version 3.0.14a, distributed with ubuntu 5.10.
we are using share level cause everyone in the office has full access on it.
i have commented out following params, without any success:
encrypt passwords = true
passdb backend = tdbsam guest
obey pam restrictions = yes
socket options = TCP_NODELAY
05-03-2006, 10:37 AM
#9
Senior Member
Registered: Feb 2004
Location: England
Distribution: Slackware 11, Sabayon 3.1
Posts: 1,463
Rep:
it does seem very strange...... i really can't offer much insight. sorry....
05-03-2006, 01:49 PM
#10
Member
Registered: Sep 2005
Distribution: Debian
Posts: 304
Rep:
I advice you to try this.
Put on [global] ok?
Code:
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
read raw = yes
write raw = yes
oplocks = yes
max xmit = 65535
dead time = 15
getwd cache = yes
05-03-2006, 08:06 PM
#11
Senior Member
Registered: Sep 2003
Posts: 3,171
Rep:
Yes, I was going to focus on sockets and oplocks, but stormrider beat me to it.
05-04-2006, 05:43 AM
#12
Member
Registered: Sep 2005
Location: Europe
Distribution: debian sarge
Posts: 65
Original Poster
Rep:
hey guys, thx for the replies! unfortunatly, it did not fix the problem...
05-04-2006, 10:06 AM
#13
Member
Registered: Sep 2005
Distribution: Debian
Posts: 304
Rep:
Did you restarted samba after making those changes?
05-04-2006, 02:07 PM
#14
Member
Registered: Oct 2003
Location: King George, VA
Distribution: RHEL/CentOS/Scientific/Fedora, LinuxMint
Posts: 359
Rep:
just a thought What duplex mode is your NIC? might be on half
do this just to see if its set on half duplex
if it is try this
Code:
ethtool -s eth0 speed 100 duplex full autoneg off
05-05-2006, 02:06 AM
#15
Member
Registered: Sep 2005
Location: Europe
Distribution: debian sarge
Posts: 65
Original Poster
Rep:
yes, i've restarted samba everytime i made some changes to the config.
output of ethtool:
Quote:
Settings for eth0:
Supported ports: [ MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Advertised auto-negotiation: Yes
Speed: 1000Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 1
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: g
Wake-on: d
Current message level: 0x000000ff (255)
Link detected: yes
so, it's on full duplex...
should it be a bug in samba, or something else? thx guys for all of your advices!
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 01:49 AM .
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