François Lafont
2013-May-24 01:15 UTC
[Samba] [samba4] smbd processes never die after logoff
Hello,
I'm using Samba 4.0.5 in Debian Wheezy as a member server of a DC (in Debian
Wheezy too with Samba 4.0.5) and the clients are Windows7 Pro. The users use
shares in the member server.
Sometimes, after the logoff of the users in the Win7 clients, there are
connections with the member server whiches never stop. I can see it with the
"smbstatus" command which point PID out to me and indeed with the ? ps
aux | grep smbd ? I can see smbd processes whiches never die.
I have try this in the smb.conf file :
deadtime = 10
socket options = TCP_NODELAY SO_KEEPALIVE
But it doesn't work. This is a embarrassing problem for me because it takes
resources of the server.
Thanks in advande for your help.
PS: here is my smb.conf for the member server :
[global]
workgroup = MYDOMAIN
security = ADS
realm = MYDOMAIN.PRIV
encrypt passwords = yes
idmap config *:backend = tdb
idmap config *:range = 70001-80000
winbind trusted domains only = no
winbind use default domain = yes
winbind enum users = yes
winbind enum groups = yes
winbind cache time = 300
deadtime = 10
socket options = TCP_NODELAY SO_KEEPALIVE
[myhome]
path = /home/%U
hide files = *.ini/*.INI/*.bin/*.BIN/desktop - Raccourci.lnk/~*/
read only = No
browseable = Yes
[admhomes]
path = /home
read only = No
browseable = Yes
valid users = administrator
admin users = administrator
--
Fran?ois Lafont
François Lafont
2013-May-24 01:21 UTC
[Samba] [samba4] smbd processes never die after logoff
Just one detail, Le 24/05/2013 03:15, Fran?ois Lafont wrote :> indeed with the ? ps aux | grep smbd ? I can see smbd processes whiches never die.Of course, with: kill PID the processes die. But if I don't use the "kill" command some processes never die although all users are disconnected of the Windows seven clients. -- Fran?ois Lafont
Volker Lendecke
2013-May-24 10:42 UTC
[Samba] [samba4] smbd processes never die after logoff
On Fri, May 24, 2013 at 03:15:03AM +0200, Fran?ois Lafont wrote:> Hello, > > I'm using Samba 4.0.5 in Debian Wheezy as a member server of a DC (in Debian Wheezy too with Samba 4.0.5) and the clients are Windows7 Pro. The users use shares in the member server. > > Sometimes, after the logoff of the users in the Win7 clients, there are connections with the member server whiches never stop. I can see it with the "smbstatus" command which point PID out to me and indeed with the ? ps aux | grep smbd ? I can see smbd processes whiches never die. > > I have try this in the smb.conf file : > > deadtime = 10 > socket options = TCP_NODELAY SO_KEEPALIVECan you try to add the socket options TCP_KEEPIDLE=120 TCP_KEEPINTVL=10 TCP_KEEPCNT=5 This should make the sessions go away more quickly in case the clients just go away. Volker -- SerNet GmbH, Bahnhofsallee 1b, 37081 G?ttingen phone: +49-551-370000-0, fax: +49-551-370000-9 AG G?ttingen, HRB 2816, GF: Dr. Johannes Loxen http://www.sernet.de, mailto:kontakt at sernet.de
Reasonably Related Threads
- [samba4] Thank you to the Samba Team
- Newbie : bad uid in the smbpasswd file ?
- Samba4 member of an another « Samba4 » domain
- [samba4] "rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)" message with smbstatus command
- Re: [sqwebmail] vpopmail+mysql and sqwebmail authentication problems]