Samba Limitations...

Andrew Bartlett abartlet at pcug.org.au
Fri May 4 03:21:00 GMT 2001


Chris G Haravata wrote:
> 
> Frank wrote:
> 
> > We are investigating a rather large Samba implementation (15.000
> users).
> >
> > Is there any built'in limit in Samba we should be aware of ?
> >
> > Max sessions, max shares...
> 
> Frank, the max sessions is covered by your kernel, not by Samba.

Watch out, there is now a hard-coded limit of 3000 valid logged in users
at a time.  It was added becouse of the way we allocate 'terminal names'
for PAM and utmp.  Also, the way these are allocated is by attempting to
insert numbered records into a tdb sequential from zero.  (ie highly
inefficeint).  If your running massive numbers of concurrent users you
may wish to look at the code in smbd/session.c.

Technicly, PAM does not need the terminal name, but it gets it becouse
much of the time we are going to calculate it for utmp anyway.  

Andrew Bartlett

> 
> For the max shares, you have a "max connections = " on the [global]
> section of smb.conf that you can use.  Mine is max connections = o <the
> default>, meaning, there's no limitation on connections to the share...
> 
> hope i've helped...
> 


-- 
Andrew Bartlett
abartlet at pcug.org.au




More information about the samba mailing list