diff options
author | Davidlohr Bueso <[email protected]> | 2014-02-25 15:01:45 -0800 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2014-02-25 15:25:45 -0800 |
commit | f3713fd9cff733d9df83116422d8e4af6e86b2bb (patch) | |
tree | 58a1a64720424b7a4b32bc6d26ca23000c2ce414 /tools/perf/util/trace-event-scripting.c | |
parent | 08088cb9ac0a9c28d4cf3efa4f6848a9b053ccfd (diff) |
ipc,mqueue: remove limits for the amount of system-wide queues
Commit 93e6f119c0ce ("ipc/mqueue: cleanup definition names and
locations") added global hardcoded limits to the amount of message
queues that can be created. While these limits are per-namespace,
reality is that it ends up breaking userspace applications.
Historically users have, at least in theory, been able to create up to
INT_MAX queues, and limiting it to just 1024 is way too low and dramatic
for some workloads and use cases. For instance, Madars reports:
"This update imposes bad limits on our multi-process application. As
our app uses approaches that each process opens its own set of queues
(usually something about 3-5 queues per process). In some scenarios
we might run up to 3000 processes or more (which of-course for linux
is not a problem). Thus we might need up to 9000 queues or more. All
processes run under one user."
Other affected users can be found in launchpad bug #1155695:
https://bugs.launchpad.net/ubuntu/+source/manpages/+bug/1155695
Instead of increasing this limit, revert it entirely and fallback to the
original way of dealing queue limits -- where once a user's resource
limit is reached, and all memory is used, new queues cannot be created.
Signed-off-by: Davidlohr Bueso <[email protected]>
Reported-by: Madars Vitolins <[email protected]>
Acked-by: Doug Ledford <[email protected]>
Cc: Manfred Spraul <[email protected]>
Cc: <[email protected]> [3.5+]
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions