From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: schwark@espera.de, Xenomai <xenomai@xenomai.org>
Subject: Re: [Xenomai] POSIX message queues
Date: Mon, 13 Jan 2014 21:18:41 +0100 [thread overview]
Message-ID: <52D44A21.9060604@xenomai.org> (raw)
In-Reply-To: <52D3EF5E.9090803@espera.de>
On 01/13/2014 02:51 PM, Andreas Schwark wrote:
> Am 13.01.2014 13:38, schrieb Gilles Chanteperdrix:
>> On 01/09/2014 02:42 PM, Andreas Schwark wrote:
>>> Hi all,
>>>
>>> we are working with Orocos-Toolchain on a PC with Lubuntu Version 12.04
>>> patched with Xenomai. For inter-process communication between Orocos
>>> processes we use POSIX messages queues. The communication works fine
>>> with less then 60 message queues. If we want to use more than 60 message
>>> quess, than we are not able to create more than 60 queues.
>> Have you checked mq_open documentation for the error you get?
>>
>>
>
> Yes I've checked that document. If I try to open more then 60 queues, I
> got the errno EMFILE ("Too many message queue descriptors or file
> descriptors are currently in use by this process."). My problem is, that
> I don't know where I can set set maximum number of file or queue
> descriptors or how to check how many descriptors are in use.
The maximum number of mq descriptors is set at compilation-time to be
128. Since the descriptors are allocated in increasing order, the last
queue descriptor value should be something like 127. To increase this
value of 128, you have to modify, in ksrc/skins/posix/module.c the call
to pse51_reg_pkg_init. Yes, there is a FIXME at this point, telling that
we should have added a Kconfig option, but I am afraid you are the first
that hits the issue and reports it. It will be fixed in the next release.
Regards.
--
Gilles.
prev parent reply other threads:[~2014-01-13 20:18 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-09 13:42 [Xenomai] POSIX message queues Andreas Schwark
2014-01-13 12:38 ` Gilles Chanteperdrix
[not found] ` <52D3EF5E.9090803@espera.de>
2014-01-13 20:18 ` Gilles Chanteperdrix [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=52D44A21.9060604@xenomai.org \
--to=gilles.chanteperdrix@xenomai.org \
--cc=schwark@espera.de \
--cc=xenomai@xenomai.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.