[SOLVED] samba connections do not expire, server freezes becauise of too many samba processes

Issues related to configuring your network
Post Reply
Rick_Smith
Posts: 87
Joined: 2011/10/07 11:32:23

[SOLVED] samba connections do not expire, server freezes bec

Post by Rick_Smith » 2013/09/05 15:29:20

HI,

We are running CentOS 6.4, and too many samba processes are created which lead to server freezing, we have to reset the system, is there a graceful workaround?

Thanks in advance.

Rick_Smith
Posts: 87
Joined: 2011/10/07 11:32:23

Re: [SOLVED] samba connections do not expire, server freezes becauise of too many samba processes

Post by Rick_Smith » 2013/09/05 22:44:18

Figured it out:

Two things:

deadtime
This global option sets the number of minutes that Samba will wait for an inactive client before closing its session with the Samba server. A client is considered inactive when it has no open files and no data is being sent from it. The default value for this option is 0, which means that Samba never closes any connection, regardless of how long they have been inactive. This can lead to unnecessary consumption of the server's resources by inactive clients. We recommend that you override the default as follows:
[global]
deadtime = 10
This tells Samba to terminate any inactive client sessions after 10 minutes. For most networks, setting this option as such will not inconvenience users because reconnections from the client are generally performed transparently to the user. See also the keepalive parameter.


AND

The parameter “max smbd processes“ limits the maximum number of smbd processes concurrently running on a system and is intended as a stopgap to prevent degrading service to clients in the event that the server has insufficient resources to handle more than this number of connections. Remember that under normal operating conditions, each user will have an smbd associated with him or her to handle connections to all shares from a given host.

Default: max smbd processes = 0

Example: max smbd processes = 1000

We can reduce this to a more manageable value.

Post Reply

Return to “CentOS 6 - Networking Support”