Sponsored Content
Operating Systems Linux maximun number of message queues Post 302088147 by grial on Saturday 9th of September 2006 02:20:56 AM
Old 09-09-2006
As far as I know, there is no command for that. Nevertheless, you can tune kernel parameters modifyig the files located at /proc/sys/kernel. In your case, there are three files regarding to IPC messages: msgmni (maximum number of message queue identifiers), msgmnb (maximum number of bytes in a single message queue) and msgmax (maximum size of a message). So, you should change msgmni (defaults to 16).
Notice you'll need to modify this every time you reboot so, for instance, add a script to the boot process so that it's configured every reboot. Perhaps theres is another way to do it, but I do not know it.

Regards.
 

10 More Discussions You Might Find Interesting

1. Programming

Message queues

Hi all, I've been trying for hours to figure out how to turn my 2-program (one to send and one to receive) "chat system" using message queues, into a single program where each concurrent component (entity) will both send and receive messages. PLEASE give me a hand with this, I'm starting to... (9 Replies)
Discussion started by: mgchato
9 Replies

2. UNIX for Dummies Questions & Answers

message queues

let 3 processes a, b and c are sharing msgs using msg queues.process 'a' sending msg to 'c' and in turn 'c' send sthat msg to 'b'.if something happens to c how can 'a' and 'b' know that 'c' is not available?????? (2 Replies)
Discussion started by: sukaam
2 Replies

3. Solaris

rogue message queues solaris 9

We have message queues created from our ERP system to our tax system via an application api written by the ERP software vendor. Occasionally when a user does not gracefully exit the ERP application, the message queue hangs. After a few months, this becomes a problem as the queues are all used... (2 Replies)
Discussion started by: MizzGail
2 Replies

4. UNIX for Advanced & Expert Users

UNIX Message Queues vs. Sockets

If I use sockets for IPC, and can easily distribute my applications. UNIX Message Queues are local to the processor. As I understand it, Message Queues still incur system call overhead, just like socket calls. What advantage does a UNIX Message Queue provide versus a TCP or UDP Socket,... (2 Replies)
Discussion started by: zen29sky
2 Replies

5. Programming

message queues and multi-process

Hi, Am supposed to use message queues to send and receive messages between the processes. when i was working on that i realised that the message qid and the message queue related data should be maintained in a shared memory so that it can be accessed by all the processes. Could anybody refer... (10 Replies)
Discussion started by: rvan
10 Replies

6. UNIX for Advanced & Expert Users

message queues

#include <sys/ipc.h> #include <sys/msg.h> int main() { int qid; int t; struct msgbuf mesg; qid=msgget(IPC_PRIVATE,IPC_CREAT); mesg.mtype=1L; mesg.mtext=1; t=msgsnd(qid,&mesg,1,0); printf("%d",t); } the program prints -1 as the result of msgsnd ,which means that msgsnd doesn't... (1 Reply)
Discussion started by: tolkki
1 Replies

7. UNIX for Dummies Questions & Answers

message queues

can any body provide a tutorial that explains the concept of message queues in UNIX in great detail (1 Reply)
Discussion started by: asalman.qazi
1 Replies

8. Programming

Persisting message queues to disk

Hi, I have searched the forums and could not find a relavant thread discussing my use case, hence the new post. Basically am trying to pass on work to dummy worker instances from controller which will pass on work to workers (client) To make use of host capacity, am planning to serialize... (2 Replies)
Discussion started by: matrixmadhan
2 Replies

9. Shell Programming and Scripting

Cleaning Message Queues

i have an application installed on AIX 5.3 and i have made a script that shutdown a proccesses that exceeded 10000kb of memory usage but i have a problem with cleaning the message queues of these proccesses after shutting them down. Is there any way to clean the message queues for this particular... (8 Replies)
Discussion started by: Portabello
8 Replies

10. UNIX for Advanced & Expert Users

Performance calculation for Message Queues

i have a program(C++ Code) that sends/receives information through queue's (Uses MQ) Is there any UNIX/LINUX tool that calculates the load and performance time for the same. If not how do i design the program that calculates the performance time. i know that time.h can be used but it gives... (2 Replies)
Discussion started by: vkca
2 Replies
msgmni(5)							File Formats Manual							 msgmni(5)

NAME
msgmni - maximum number of system-wide System V IPC message queues (IDs) allowed VALUES
Default Failsafe Allowed Values DESCRIPTION
The tunable specifies the maximum number of system-wide System V IPC message queue identifiers (one per queue). Each message queue created has an identifier (ID) and there is an upper limit of identifiers. Applications use the system call to create new queues. If all IDs have been used, will return If a process acquires a message queue, but the process terminates without removing it, the queue and all its messages remain. Abandoned message queues can be removed with the command. Message queue status can be monitored using the command. For more information about System V message queues, refer to the section of the mesg(5) manpage. Who Is Expected to Change This Tunable? Anyone. Restrictions on Changing This tunable is dynamic. Changes to to this tunable take effect immediately. When Should the Value of This Tunable Be Raised? Raise this tunable when applications require more queues. When Should the Value of This Tunable Be Lowered? Lower this tunable when the requirement for queues has diminished. What are the Side Effects of Lowering the Value? Lowering the value increases the risk of application failure due to the inability to create more message queues. Lowering the tunable has no effect on any active message queues, even if the new tunable value is less than the number of queues created in the system. However, no new queues may be created until the number of active queues falls below the setting of What Other Tunable Values Should Be Changed at the Same Time? All the System V message queue tunables are interrelated and should be treated as independent variables. The set must be evaluated as a system to ensure the tunables reflect the application requirements. The message tunables include and Specifically, and tunables may need adjustment along with changes to the tunable. WARNINGS
All HP-UX kernel tunable parameters are release specific. This parameter may be removed or have its meaning changed in future releases of HP-UX. Installation of optional kernel software, from HP or other vendors, may cause changes to tunable parameter values. After installation, some tunable parameters may no longer be at the default or recommended values. For information about the effects of installation on tun- able values, consult the documentation for the kernel software being installed. For information about optional kernel software that was factory installed on your system, see at AUTHOR
was developed by AT&T. SEE ALSO
ipcrm(1), ipcs(1), msgget(2), mesg(5), msgmnb(5), msgtql(5), msgmbs(5). Tunable Kernel Parameters msgmni(5)
All times are GMT -4. The time now is 12:59 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy