Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

URGENT-- error ENOSPC to open a queue message

39 views
Skip to first unread message

M.A. Belda

unread,
Jun 2, 2004, 8:31:38 AM6/2/04
to
Anybody know how can I to increase the queues messages in LynxOS V3.0.0?
I have a lot of messages queues and when I try to open a new queue with the
mq_open instruction I recive an error (ENOSPC).
I have tried to change the NMSGS parameter in /sys/lynx.os/uparam.h file but
after kernel relink and reboot the operating system I have the same problem.
What can I do?
Thanks for your help..


Steve Watt

unread,
Jun 2, 2004, 11:47:02 AM6/2/04
to
In article <c9khbb$en5$1...@news.mch.sbs.de>,

There are a number of resources that queues consume. Assuming you're using
the mq_open() call, those things are:
- Shared memory space; each queue needs max messages * max message size bytes
- A name server name slot
- One name server PID entry per process that has the queue open

I've forgotten the exact names for those tunables, but I distinctly
remember documenting all of it; maybe check the mq_open man page?
--
Steve Watt KD6GGD PP-ASEL-IA ICBM: 121W 56' 57.8" / 37N 20' 14.9"
Internet: steve @ Watt.COM Whois: SW32
Free time? There's no such thing. It just comes in varying prices...

Cyril Novikov

unread,
Jun 3, 2004, 8:08:08 PM6/3/04
to
Steve Watt wrote:
> In article <c9khbb$en5$1...@news.mch.sbs.de>,
> M.A. Belda <mangel...@siemens.com> wrote:
>
>>Anybody know how can I to increase the queues messages in LynxOS V3.0.0?
>>I have a lot of messages queues and when I try to open a new queue with the
>>mq_open instruction I recive an error (ENOSPC).
>>I have tried to change the NMSGS parameter in /sys/lynx.os/uparam.h file but
>>after kernel relink and reboot the operating system I have the same problem.
>>What can I do?
>>Thanks for your help..
>
>
> There are a number of resources that queues consume. Assuming you're using
> the mq_open() call, those things are:
> - Shared memory space; each queue needs max messages * max message size bytes
> - A name server name slot
> - One name server PID entry per process that has the queue open
>
> I've forgotten the exact names for those tunables, but I distinctly
> remember documenting all of it; maybe check the mq_open man page?

M.A.: File descriptors, too. Check USR_NFDS and NFILES in uparam.h.

NMSGS is sysV IPC, by the way. mq_open() is POSIX. Look a little bit
below in the uparam.h for POSIX.1b settings.

Cyril

0 new messages