Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[Samba] [samba4] smbd processes never die after logoff

1 view
Skip to first unread message

François Lafont

unread,
May 23, 2013, 9:15:03 PM5/23/13
to
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
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba

François Lafont

unread,
May 23, 2013, 9:21:20 PM5/23/13
to
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.

Volker Lendecke

unread,
May 24, 2013, 6:42:28 AM5/24/13
to
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_KEEPALIVE

Can 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:kon...@sernet.de

François Lafont

unread,
May 26, 2013, 10:45:04 AM5/26/13
to
Le 24/05/2013 12:42, Volker Lendecke wrote :

> Can 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.

Thanks for your help. I will try.


--
François Lafont

0 new messages