From: Manfred Spraul <manfred@colorfullife.com>
To: Cedric Roux <Cedric.Roux@lip6.fr>, linux-kernel@vger.kernel.org
Subject: Re: ipc - msg : memory usage too big ?
Date: Thu, 03 Oct 2002 18:39:00 +0200 [thread overview]
Message-ID: <3D9C72A4.1090504@colorfullife.com> (raw)
> If it is seen as a problem, a solution might be to add
> the memory overhead usage into the queue size, or add a
> variable that counts the real memory used, and limits it
> to a reasonable amount.
>
The limit in the number of messages was added a few years ago, older
linux kernels [2.0, early 2.2] contain no limit at all :-(
The implementation was choosen to avoid breaking apps that relied on the
old behaviour: by default send x-byte messages, but if the queue is
full, send a 0-byte, msgtype > 0 message that notifies a supervisor
process that the queue is full.
SUS permits a global system imposed limit on the number of messages, but
IMHO 9 MB is not excessive [actually, 16*9MB, once for each queue] -
root can reduce the limit further, if users abuse it.
--
Manfred
next reply other threads:[~2002-10-03 16:33 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-03 16:39 Manfred Spraul [this message]
2002-10-03 17:38 ` ipc - msg : a race bug ? (kernel 2.4.19) Cedric Roux
-- strict thread matches above, loose matches on Subject: below --
2002-10-03 14:51 ipc - msg : memory usage too big ? Cedric Roux
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=3D9C72A4.1090504@colorfullife.com \
--to=manfred@colorfullife.com \
--cc=Cedric.Roux@lip6.fr \
--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®