LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-13-2003, 10:25 AM   #1
raees
Member
 
Registered: Nov 2003
Posts: 65

Rep: Reputation: 15
Increasing Number of message queues systemwide


Hi All

My program failed while trying to open 10 diff message queues on a linux box. It was failing for the 10th message queue . Also i tried opening 5 msg queues each from 2 processes, but the tenth failed.

It looks like there is a limit specified somewhere on how many message queues that can be opened.

How do we solve this ? Where is it specified how many msgqueueus can be opened for per user or per system ?

Thanks
Raees
 
Old 01-09-2004, 02:25 AM   #2
devershetty
LQ Newbie
 
Registered: Jun 2003
Location: Gangavathi, Karnataka(state), INDIA
Distribution: Redhat 7.3
Posts: 28

Rep: Reputation: 15
Hi there..
Yes there is a limit in aggregrate sizeof messages in bytes.
here is explaination in man page.

few lines in man msgctl:

Appropriate (probably, root) privileges are required to raise
the msg_qbytes value beyond the system parameter MSGMNB.

and few lines in man msgget:
msg_qbytes is set to the system limit MSGMNB.

The default value of MSGMNB is 16384 bytes.
usr/include/linux/msg.h:#define MSGMNB 16384 /* <= INT_MAX */ /* default max size of a message queue */


Perhaps I guess...
you are trying to send messages above MSGMNB limit.


-Kotrappa
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
POSIX message queues(Solaris) to SYS V message queues(Linux) devershetty Programming 1 01-22-2007 10:15 AM
Posix Message queues? gdipierro Programming 20 07-26-2005 04:59 PM
Message Queues rag_mg Programming 1 05-08-2005 08:00 AM
POSIX message queues... infamous41md Programming 6 05-25-2004 02:53 PM
Message Queues BoldKiller Programming 1 05-28-2003 05:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration