HP-UX HB v13.00 Ch-20 - CIFS

HP-UX Handbook Rev 13.00 Page 36 (of 40)
Chapter 20 CIFS
October 29, 2013
Recommendations for kernel parameters
Requirement
for each client connection
PA System
IA System
A.01.05
A.01.07
A.01.08
A.01.08
Memory space
0.789MB
0.799MB
1.173MB
1.08MB
Swap space
1.9MB
1.9MB
2.0MB
2.0MB
nproc
1
1
1
1
nfile
7
7
20
20
nflocks
10
10
Besides the new features of CIFS-Server 2.2 (A.01.08 and later) some server requirements have
changed. Each smbd takes now approx 10 unix locks. CIFS-Server A.01.08 (Samba2.2) uses as
well more file-handles approximately three times as much as before. Also remember that each
smbd consumes one entry in the process table. You may rule this by the kernel tunable
maxusers. maxusers affects nproc, nfile and others. The previous recommendation for CIFS
Server A.01.07 was to increase maxusers by the number of estimated samba users. So we will
keep this as basic thought for the recommendation here. (The notation used is "#(variable)" =
value .)
maxusers:
maxusers = #(samba-user) + #(unix-user)
So the recommendation could be to increase maxusers by #(of estimated simultanious logged in
samba-users) or by #(of estimated smbd's). As nproc and nfile depend on maxusers they
increase rapidly and it might be too much although it is simple.
If you consider not to increase maxusers, you could as well change the formulas for nproc and
nfile. Adapting the formulas might still be better than setting a fixed value.
nproc:
nproc needs to be increased at least by #(estimated smbd's):
nproc = (20+8*MAXUSERS) + #(estimated smbd's)
nflock:
The use of unix locks has increased with Samba 2.2, therefore increase nflock by "10 *
#(estimated smbd's)". nflock is usually a fixed number, you could think of relating it to
maxusers if maxusers is defined as above, e.g.:
nflock = #(prev. nflock) + 10*#(estimated smbd's)
nfile: