Linux: Setting shared memory options

You can use shared memory communications between clients and servers on the same system. To use shared memory, TCP/IP Version 4 must be installed on the system.

About this task

The following example shows a shared memory setting:
commmethod     sharedmem
   shmport     1510
In this example, SHMPORT specifies the TCP/IP port address of a server when using shared memory. Use the SHMPORT option to specify a different TCP/IP port. The default port address is 1510.
COMMMETHOD can be used multiple times in the Tivoli® Storage Manager server options file, with a different value each time. For example, the following example is possible:
commmethod tcpip
commmethod sharedmem
Linux operating systemsYou might receive the following message from the server when using shared memory:
ANR9999D shmcomm.c(1598): ThreadId<39>
Error from msgget (2), errno = 28 
The message means that a message queue must be created but the system limit for the maximum number of message queues (MSGMNI) would be exceeded.
Linux operating systemsTo find out the maximum number of message queues (MSGMNI) on your system, issue the following command:
cat /proc/sys/kernel/msgmni 
To increase the MSGMNI value on your system, issue the following command:
sysctl -w kernel.msgmni=n
where n is the maximum number of message queues that you want the system to allow.