C Posix queues message size

Hi Folks,

What are the message limits for mq_open() system call? I.e. What is the max size of bytes on message (mq_msgsize attr)? What is max number of posix queues mq_maxmsg attr?

Where can I configure these limits?

Thanks a lot in advance,
Madars
 
In my case I cannot run messages bigger with than 32KB, then I get invalid argument error from mq_open.
 
Hi jimbo7777 ,

What is the max size of bytes on message (mq_msgsize attr)? What is max number of posix queues mq_maxmsg attr?

The system wide default values for [FONT=Courier New]mq_maxmsg[/FONT] and [FONT=Courier New]mq_msgsize[/FONT] are 100 and 16384 respectively.

Where can I configure these limits?
These values can be altered by using the sysctl variables [FONT=Courier New]kern.mqueue.maxmsg[/FONT] and [FONT=Courier New]kern.mqueue.maxmsgsize.[/FONT]
 
Back
Top