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.

_______________________________________________
Xenomai mailing list
[email protected]
http://www.xenomai.org/mailman/listinfo/xenomai

Reply via email to