From: Clem Taylor <clem.taylor@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: mq_open() fails with ENOMEM for 'large' message sizes?
Date: Mon, 10 Oct 2005 16:51:30 -0400 [thread overview]
Message-ID: <ecb4efd10510101351q7264f104gdfd1b03085b42062@mail.gmail.com> (raw)
I've been having problems with mq_open() returning ENOMEM when trying
to allocate a large message queue (I want to open a queue with 3
1mbyte messages).
I increased the size of the sysctl limits:
fs.mqueue.msgsize_max = 1052672 (1M+4K)
fs.mqueue.msg_max = 256
fs.mqueue.queues_max = 256
On a 2.6.12 (i686) system with 2G of memory (with large swap), I can't
seem to create a single message queue with a message larger then 799K
and a 3 message queue with a message larger then 266K.
On a 2.6.13 (mips32) system with 64M of memory (no swap), I can't seem
to create a single message queue with a message larger then about
606K.
Any ideas where this limit is coming from? The maximum message size
doesn't seem to be proportional to the amount of physical memory. Is
there some additional tunable I need to adjust that would allow me to
create a message queue with larger messages?
Thanks,
Clem Taylor
next reply other threads:[~2005-10-10 20:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-10 20:51 Clem Taylor [this message]
2005-10-10 21:19 ` Chris Wright
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=ecb4efd10510101351q7264f104gdfd1b03085b42062@mail.gmail.com \
--to=clem.taylor@gmail.com \
--cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®