POSIX message queues
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. Can somebody tell me where we can setup the maximum number of queues?
Thank you in advance,
Andreas
Quoted 7 lines · Andreas Schwark
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?
Signature · 1 line
Gilles.
Quoted 13 lines · Andreas Schwark
Am 13.01.2014 13:38, schrieb Gilles Chanteperdrix:
Quoted 11 lines · Andreas Schwark
Quoted 7 lines
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_opendocumentation for the error you get?
Quoted 5 lines
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.
Signature · 1 line
Gilles.