Eric Boehm
2008-Mar-13 12:55 UTC
[Samba] Is there a maximum number of shares samba can serve?
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. Personally, I don't think this is a good idea. Clients will go from having a single connection to a single share to 50-300 connections to multiple shares. That can't be good for performance or load. I've searched the mailing list, the web, the documentation, the wiki and the source code. I haven't been able to determine the maximum, if any. Of course, I may have missed it. Feel free to point me to the correct documentation or source file. I've seen some references that you can't have either more than 145 or 165 shares per samba server. However, if there is anyone running such a large number of shares and has advice, I am happy to listen. -- Eric M. Boehm /"\ ASCII Ribbon Campaign boehm@nortel.com \ / No HTML or RTF in mail X No proprietary word-processing Respect Open Standards / \ files in mail
Marcello Romani
2008-Mar-13 14:10 UTC
[Samba] Is there a maximum number of shares samba can serve?
Eric Boehm ha scritto:> 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. > > Personally, I don't think this is a good idea. Clients will go from > having a single connection to a single share to 50-300 connections to > multiple shares. That can't be good for performance or load. > > I've searched the mailing list, the web, the documentation, the wiki > and the source code. I haven't been able to determine the maximum, if > any. Of course, I may have missed it. Feel free to point me to the > correct documentation or source file. > > I've seen some references that you can't have either more than 145 or > 165 shares per samba server. > > However, if there is anyone running such a large number of shares and > has advice, I am happy to listen. >Hi, I found some docs about this smb.conf parameter: usershare max shares which specifies the maximum number of shares that the samba admin will allow non-root users to create via the command net usershare add ( read for example http://us1.samba.org/samba/docs/man/manpages-3/net.8.html ) The example value given in the docs for the usershare max shares parameter is 100, which makes me think that a samba server should cope with a number of shares in the hundreds. I know it's not much, but I HTH nonetheless. -- Marcello Romani Responsabile IT Ottotecnica s.r.l. http://www.ottotecnica.com
webster@lexmark.com
2008-Mar-13 15:10 UTC
[Samba] Is there a maximum number of shares samba can serve?
I currently have a server with 1,885 shares. It is running Samba version 3.0.20b-3.11-SUSE Gary R. Webster "Eric Boehm" <boehm@nortel.com> Sent by: samba-bounces+webster=lexmark.com@lists.samba.org 03/13/2008 08:23 AM Please respond to Eric Boehm <boehm@nortel.com> To samba@lists.samba.org cc Subject [Samba] Is there a maximum number of shares samba can serve? 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. Personally, I don't think this is a good idea. Clients will go from having a single connection to a single share to 50-300 connections to multiple shares. That can't be good for performance or load. I've searched the mailing list, the web, the documentation, the wiki and the source code. I haven't been able to determine the maximum, if any. Of course, I may have missed it. Feel free to point me to the correct documentation or source file. I've seen some references that you can't have either more than 145 or 165 shares per samba server. However, if there is anyone running such a large number of shares and has advice, I am happy to listen. -- Eric M. Boehm /"\ ASCII Ribbon Campaign boehm@nortel.com \ / No HTML or RTF in mail X No proprietary word-processing Respect Open Standards / \ files in mail -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba