Linux IPC parameter settings

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.