Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
SAMBA as domain-member horribly slow [solved (workrnd)]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
DawgG
l33t
l33t


Joined: 17 Sep 2003
Posts: 874

PostPosted: Sat Jul 09, 2005 2:42 pm    Post subject: SAMBA as domain-member horribly slow [solved (workrnd)] Reply with quote

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
View user's profile Send private message
jmbsvicetto
Moderator
Moderator


Joined: 27 Apr 2005
Posts: 4735
Location: Angra do Heroísmo (PT)

PostPosted: Sat Jul 09, 2005 7:04 pm    Post subject: Reply with quote

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
View user's profile Send private message
Tun
n00b
n00b


Joined: 19 Jan 2004
Posts: 58
Location: Stockport, England

PostPosted: Sun Jul 10, 2005 3:22 pm    Post subject: Reply with quote

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
View user's profile Send private message
DawgG
l33t
l33t


Joined: 17 Sep 2003
Posts: 874

PostPosted: Mon Jul 11, 2005 12:38 pm    Post subject: more tests - remains unsolved Reply with quote

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
View user's profile Send private message
jpl888
Guru
Guru


Joined: 13 Apr 2005
Posts: 337
Location: Piltown, Co. Kilkenny, Ireland.

PostPosted: Mon Jul 11, 2005 1:40 pm    Post subject: Reply with quote

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
View user's profile Send private message
dewke
Tux's lil' helper
Tux's lil' helper


Joined: 01 Jun 2004
Posts: 77
Location: The sunshine state

PostPosted: Mon Jul 11, 2005 4:56 pm    Post subject: Reply with quote

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
View user's profile Send private message
gpeangel
Tux's lil' helper
Tux's lil' helper


Joined: 02 Jan 2003
Posts: 132
Location: Colorado, USA

PostPosted: Mon Aug 15, 2005 8:10 pm    Post subject: Reply with quote

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
View user's profile Send private message
TheJester
n00b
n00b


Joined: 08 Dec 2002
Posts: 9

PostPosted: Thu Feb 09, 2006 10:28 am    Post subject: any luck ? Reply with quote

Hi,

Any luck in solving this thing.
Seems i have the problem.
All problems started after i made the gentoo data server into a domain member.

see other post : https://forums.gentoo.org/viewtopic-t-114837-postdays-0-postorder-asc-highlight-samba+domain+member+slow-start-125.html

best regards,
TJ
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum