Comment 12 for bug 1155695

Revision history for this message
Arto Bendiken (artob) wrote :

Michael, I tested your patch against Ubuntu 12.10's 3.5.0-26-generic kernel, applied after `apt-get source`. Your patch does apply and build cleanly (offset 1 line compared to the 3.9 sources).

However, it unfortunately does not fix the issue. sysctl still cannot be used to raise the message queue limit above 1024. Given this, ipc_ns->mq_queues_max is still initialized to DFLT_QUEUESMAX (256) and ultimately limited by HARD_QUEUESMAX (1024), even if that's not being tested for directly in mqueue_create().

I've attached a simpler, one-line patch that I've confirmed does fully solve the problem for us; it just raises the HARD_QUEUESMAX constant from 1K to 1M. I believe this would be the least intrusive change to make, just restoring a sufficient amount of the capacity that the kernel used to provide back in the pre-3.5 days of an INT_MAX limit.