Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

in Linux I know that you can tweak the maximum buffer size per socket connection, but is there a system wide limit to the amount of space the buffers can take up and does this apply equally to the size of message queues?

share|improve this question

type: cat /proc/sys/kernel/msgmni This file defines the system-wide limit on the number of message queue identifiers.
To set it to a new value for this running session with: # echo 2048 > /proc/sys/kernel/msgmni , which takes effect immediately.
The system wide default maximum size in bytes of a message queue: 16384 bytes, this can be read from cat /proc/sys/kernel/msgmnb

share|improve this answer
I'm after determining if there is system wide limit of ALL queues and sockets in total. Or can I have, say, 16384 bytes of queue for every descriptor in the system. Or can I just keep having buffers until the system runs out of memory? – Joe Feb 16 '12 at 9:09

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.