Linux IPC parameter settings
Msgmnb
Maximum byte limit for each message queue.
Msgmni
The maximum number of message queues of the entire system.
Msggsz
The size (in bytes) of the message segment ). Messages greater than this value are divided into multiple segments.
Msgseg
The maximum number of message segments that can exist in a single queue.
Msgtql
The maximum number of messages in the system.
Msgmax
The maximum size of a single message. In some operating systems such as BSD, you do not need to set this. BSD automatically sets it to msgssz * msgseg. In other operating systems, you may need to change the default value of this parameter. You can set it to be the same as msgmnb.
Shmseg
The maximum number of shared memory segments for each process.
Shmmni
System-level limit on the number of shared memory segments.
Shmmax
The maximum size of a single shared memory segment.
Shmall
System-level limit on the number of allocable shared memory. In some systems, Shmall may indicate the number of pages rather than the number of bytes.
Configure the message queue in Linux and add the following lines to/etc/sysctl. conf:
For example:
Kernel. msgmnb = 8192
Kernel. msgmni = 40
Kernel. msgmax = 8192
Kernel. Shmall = 2097152
Kernel. shmmni = 32
Kernel. shmmax = 16777216
Run:
Insserv boot. sysctl
Boot. sysctl start