[Samba] Is there a maximum number of shares samba can serve?

Volker Lendecke Volker.Lendecke at SerNet.DE
Thu Mar 13 17:40:49 GMT 2008


On Thu, Mar 13, 2008 at 03:03:24PM +0100, Marcello Romani wrote:
> >I am being asked to determine the feasibility of serving hundreds
> >(300-400) of directories as individual shares instead of sharing a single
> >parent directory.

There is no limit in the number of shares Samba can serve.
If you list them all in smb.conf, you will however see
increased memory usage, because all share definitions are
loaded individually in all smbd processes. A single share
definition takes around 3k (we're working on reducing that).
So multiply the number of shares defined with the number of
concurrent clients and you might see some memory footprint.

So if you want to go REALLY large, in the order of
thousands, you might want to look at the user shares. If the
configuration options you can set in the user shares are
sufficient for your needs, then these are much more
memory-efficient because the definitions are only loaded in
smbd on demand.

Volker
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba/attachments/20080313/a3a3e248/attachment.bin


More information about the samba mailing list