HP CIFS Server Administrator Guide Version A.02.04.04 (5070-6710, October 2011)

To resolve the above errors, you must increase the value of fixed mmap size in smb.conf
accordingly and then restart the HP CIFS Server.
Memory-mapped access fails when the system is low on memory resources. In this case, the
HP CIFS Server will terminate the connection and log the following error messages:
"ERROR. Abort due to munmap failure."
"ERROR. Abort due to tdb_mmap failure."
To resolve the above errors, you can turn off the memory map feature by setting the value of
use mmap to no and then restart the HP CIFS Server.
Constraints
The HP CIFS Server TDB memory map support has the following constraints:
NOTE: Do not have binaries from mixed versions of mmap and non-mmap daemons/utilities
of CIFS Server in the /opt/samba/bin subdirectory.
You must use the tdbbackup utility to backup TDB files, do not use the cp command to
backup TDB files.
Overview of Kernel Configuration Parameters
The kernel configuration parameters, maxuser, nproc, ninode, nflocks and nfile are described
below. These are the kernel parameters that you must adjust to support a large number of clients
on HP CIFS.
maxusers: the name of this kernel parameter is a misnomer as it does not directly control the
number of UNIX users that can logon to HP-UX. However, this kernel parameter is used in
various formulae throughout the kernel. In fact, the default values for nproc, nfiles and ninodes
are expressed in terms of maxusers.
nproc: this kernel parameter controls the size of the process table. Its default formula is
(20+8*maxusers). On most systems the default value for this parameter is 21, which yields
a default value of 20+8*32 or 276 maximum processes supported. When this table fills up
prior to launching a process, the error message "proc: table is full" will appear on the console.
It will be viewable via the dmesg command.
nfiles: this kernel parameter controls the size of the system file table and limits the total number
of open files in the system. Note that this affects each instance of an open file since the same
file opened twice would take up 2 entries in the system file table. This default formula is
(16*(nproc+16+maxusers)/10+32+2*(npty+nstrpty+nstrtel)). When this tables becomes full,
the console message “file: table is full” will appear on the console.
ninode: this kernel parameters controls the size of the in-core inode table or the inode cache.
To improve performance, the most recently accessed inodes are kept in memory. The default
formula for this parameter is ((nproc+16+maxusers)+32+(2*npty)). Attempts to open a file
beyond the capacity of this table will result in the message “inode table full” being displayed
on the console.
nflocks: defines the maximum combined total number of file locks that are available system-wide
to all processes at any given time. The default value of 200 will need to be increased for HP
CIFS Servers.
Configuring Kernel Parameters for HP CIFS
The first step in configuring HP-UX to be able to support a large number of clients on a HP CIFS
server is to adjust the maxusers kernel parameter.
158 HP-UX Configuration for HP CIFS