HP (Hewlett-Packard) CIFS Server and Terminal Server Server User Manual


 
17
Using the [homes] share definition, Terminal Server sees the service name as
\\EMONSTER\BUFFY. File access and file locking tasks perform correctly.
When configuring Samba for home shares with Terminal Server usage, it is best to avoid defining
a share mnemonic with a substitution variable in the path (previous example). The standard
Samba [homes] feature is a more reliable option when used with Terminal Server.
5.4 MAX_CONNECTIONS
MAX_CONNECTIONS is a Samba static data structure that defines the number of services that
any one smbd process can have open simultaneously. The default value is 128, which means
that no client can have more than 128 shares open. In most cases this is a reasonable limit, but
for Terminal Server connections it can be exhausted. An actual case example of 32 clients on a
single Terminal Server was discovered when each client opened 4 shares at startup (the Terminal
Server client session startup). The 33
rd
user could not connect because MAX_CONNECTIONS had
been exhausted for that smbd process:
32(clients) * 4(shares) = 128(MAX_CONNECTIONS)
Users of open source Samba will have to recompile with MAX_CONNECTIONS (in conn.c) set to a
larger number. Hewlett-Packard has contributed code for Samba 2.2.8a on HP-UX that provides
a smb.conf configuration variable called “max connections per client =.” This allows the user to
specify a customized connection limit without recompiling. The default value for “max
connections per client =” is 128. This smb.conf parameter should not be confused with “max
connections =”, which limits the number of smbd processes concurrently connected to any one
service (share) on the server. Samba 3.0.2 has been enhanced to automatically increase
MAX_CONNECTIONS when the default limit is exhausted.