View previous topic :: View next topic |
Author |
Message |
DawgG l33t
Joined: 17 Sep 2003 Posts: 874
|
Posted: Sat Jul 09, 2005 2:42 pm Post subject: SAMBA as domain-member horribly slow [solved (workrnd)] |
|
|
i (want to) use a gentoo-box as a member of an NT-domain so authenticated windoze-users can work on some files via windoze-network-shares.
everything works but samba is HORRIBLY (unacceptably!) slow; in file-browsing as well as in file-opening; accessed either via network-nhood or as "mapped drives."
i tested with an without winbindd, but the problem persists. there's an NT4-PDC and winbindd seems to qwork fine with it.
everything theoretically works, but it's just TOO slow (HOW MANY times did i have to kill the f**ing windoze explorer!?! ).
samba is version 3.0.14a,
here's the smb.conf:
Code: |
[global]
# 1. Server Naming Options:
workgroup = STB
netbios name = STB-WIKI
server string = Windows 2003 Server
# this tells Samba to use a separate log file for each machine
log file = /var/log/samba/%m-log
# Put a capping on the size of the log files (in Kb).
max log size = 50
# Set the log (verbosity) level (0 <= log level <= 10)
log level = 3
map to guest = bad user
# Security mode. Most people will want user level security. See
# security_level.txt for details.
security = domain
password server = CAMILLO PEPPONE
# WINBIND-stuff
idmap uid = 10000-11000
idmap gid = 10000-11000
winbind enum users = yes
winbind enum groups = yes
encrypt passwords = yes
#smb passwd file = /etc/samba/private/smbpasswd
# 5. Browser Control and Networking Options:
# Most people will find that this option gives better performance.
# socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
local master = no
os level = 2
wins server = 10.163.14.152
dns proxy = no
dos charset = 850
unix charset = ISO8859-15
# war -1 statt -15
#============================ Share Definitions ==============================
[tmp]
comment = Temp
path = /tmp/smb-tmp
read only = no
public = yes
# das wiki
[wiki]
comment = Wiki-Dateien
path = /var/www/wiki-db
#read only = no
public = yes
writeable = Yes
|
(tried with the socket options on and off)
the logs show nothing that seems unusual to me.
also, i don't think it's a hardware-/network-problem:
ping from windoze-box TO the samba-box: Code: | Antwort von 150.160.59.152: Bytes=32 Zeit<10ms TTL=63 |
ping from samba-box to PDC: Code: | 64 bytes from camillo (150.160.59.111): icmp_seq=1 ttl=128 time=0.292 ms
|
please help me speed up SAMBA!
=============================================
UPDATE
the problem is not solved, but worked around:
i changed to machine the stuff runs on and now samba runs fast.
old box: P2 200; 32mb ram
new box: P4 2,4g; 256mb ram
i am still certain that pure hardware power isn't the (real) reason for this (samba and thttpd with perl-cgi the only services on this box), but i just had to make it work.
(too bad i couldn't do better than "just use better hardware")
Last edited by DawgG on Tue Aug 02, 2005 8:17 am; edited 1 time in total |
|
Back to top |
|
|
jmbsvicetto Moderator
Joined: 27 Apr 2005 Posts: 4735 Location: Angra do Heroísmo (PT)
|
Posted: Sat Jul 09, 2005 7:04 pm Post subject: |
|
|
Hi.
I didn't understand if the problem is from a Windows client to your gentoo server or the other way. However, could it be a problem with oplocks? I remember reading in the Samba3 by example several warnings about the use of oplocks and the consequences for performance. You could also look at the The Official Samba 3 How-to and Reference Guide (TOSHARG). _________________ Jorge.
Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
|
|
Back to top |
|
|
Tun n00b
Joined: 19 Jan 2004 Posts: 58 Location: Stockport, England
|
Posted: Sun Jul 10, 2005 3:22 pm Post subject: |
|
|
This thread might help
https://forums.gentoo.org/viewtopic-t-114837-highlight-winbind.html
I'm having similar problems myself. Browsing a samba share with XP is horrendous, hangs all the time, browsing the same share with 98 is fine.
I set up the samba server as domain controller, added the xp box to this domain and still nothing.
I'm now looking into recompiling samba with the winbind flag. Just about giving up on it though, wasted all day on the f**king thing ! |
|
Back to top |
|
|
DawgG l33t
Joined: 17 Sep 2003 Posts: 874
|
Posted: Mon Jul 11, 2005 12:38 pm Post subject: more tests - remains unsolved |
|
|
i've done a couple a more tests with different configs, the problem remains unsolved.
Code: | kernel oplocks = yes/no | ->the same (btw, i think that's only when operating on files, not just getting browselists)
Code: | security = user # not domain | (and some variations with users/passwds) ->the same (i thought maybe the windoze-dom-auth-shit takes too long)
winbindd works flawlessly, i get all the info about the windoze-domain i want
the only thing i think that might NOT be correct is a couple of errors in smb-packets i captured (only about 1 in 400) (sent from the connecting widoze-client to the samba-box) Code: | Password Length: 1
Byte Count (BCC): 39
Password: 00
Path: \\STB-WIKI\IPC$
Service: ?????
|
(but that might just mean nothing at al....
almost forgot to mention that a connection with smbclient from my other gentoo-boxes hapens in a fraction of a second |
|
Back to top |
|
|
jpl888 Guru
Joined: 13 Apr 2005 Posts: 337 Location: Piltown, Co. Kilkenny, Ireland.
|
Posted: Mon Jul 11, 2005 1:40 pm Post subject: |
|
|
I'm probably just poking my nose in where it's not wanted but if it appears to work on a w98 machine and then is really slow on XP it is probably something to do with DNS. Afterall 2000 and XP try to use DNS instead of NETBIOS for alot of stuff.
Alot of the problems I have had with Samba and XP are related to this. |
|
Back to top |
|
|
dewke Tux's lil' helper
Joined: 01 Jun 2004 Posts: 77 Location: The sunshine state
|
Posted: Mon Jul 11, 2005 4:56 pm Post subject: |
|
|
I have no noticable delay on my samba shares. I do have a line in my smb.conf that you don't so you can try it:
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 _________________ Oderint dum metuant
-Caligula |
|
Back to top |
|
|
gpeangel Tux's lil' helper
Joined: 02 Jan 2003 Posts: 132 Location: Colorado, USA
|
Posted: Mon Aug 15, 2005 8:10 pm Post subject: |
|
|
dewke wrote: | I have no noticable delay on my samba shares. I do have a line in my smb.conf that you don't so you can try it:
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 |
What version of samba are you using. This slow down appeared after I upgraded from 3.0.10 to 3.0.14a and I already had the "socket options" parameter set as you suggest. _________________ Gregory Engel
Web Master
www.javazen.com
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
My other computer is spongy gray matter. |
|
Back to top |
|
|
TheJester n00b
Joined: 08 Dec 2002 Posts: 9
|
|
Back to top |
|
|
|