From: "Martijn Sipkema" <m.j.w.sipkema@student.tudelft.nl>
To: <linux-kernel@vger.kernel.org>
Subject: POSIX message queues should not allocate memory on send
Date: Fri, 14 May 2004 11:30:53 +0100 [thread overview]
Message-ID: <000701c4399e$88a3aae0$161b14ac@boromir> (raw)
There is a problem with the current POSIX message queue
implementation. mq_send()/mq_timedsend() may not return
ENOMEM and this means memory for mq_maxmsg*mq_msgsize
will have to be allocated on queue creation. I think POSIX MSG
message passing being part of the REALTIME extensions this
makes sense. I've already mentioned this once to the implementors
of the current implementation, but they did not agree with my
reading of the standard.
The default mq_msgsize also seems a little large to me, but
I don't see why defaults are needed; if I understand the standard
correctly then creating a new message queue without mq_attr
should create an empty queue, which thus cannot be used to
pass messages.
--ms
next reply other threads:[~2004-05-14 9:31 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-14 10:30 Martijn Sipkema [this message]
2004-05-14 9:51 ` POSIX message queues should not allocate memory on send Jakub Jelinek
2004-05-14 11:09 ` Martijn Sipkema
2004-05-14 10:40 ` Jakub Jelinek
2004-05-14 12:42 ` Martijn Sipkema
2004-05-14 15:57 ` Ulrich Drepper
2004-08-15 0:12 ` Martijn Sipkema
2004-05-14 16:58 ` 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='000701c4399e$88a3aae0$161b14ac@boromir' \
--to=m.j.w.sipkema@student.tudelft.nl \
--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