From: "Iñaki Baz Castillo" <ibc@aliax.net>
To: ruby.posix.mq@librelist.com
Subject: Re: Errno::ENOMEM (but now with no reason)
Date: Sun, 10 Jan 2010 02:38:43 +0100 [thread overview]
Message-ID: <201001100238.43736.ibc@aliax.net> (raw)
In-Reply-To: 201001100221.14255.ibc@aliax.net
El Domingo, 10 de Enero de 2010, Iñaki Baz Castillo escribió:
> Hi, sometimes hen I change the name of the queue I get this error:
>
> Cannot allocate memory - mq_open (Errno::ENOMEM)
>
> It would make sense if I haven't unlinked previous mqueues but I did it. In
> fact I mount /tmp/mqueue to display the existing mqueues and I can't see
> the previous one (as I deleted it with "POSIX_MQ.unlink(name)".
>
> More data:
> - The user running the command has "ulimit -q => 819200".
> - Queues default values (prox/sys/fs/mqueue) are:
> - queues_max = 256
> - msgsize_max = 8192
> - msg_max = 50
>
> So 50x8192 = 409600 < 819200.
>
> Even more annoying: Being root I set "ulimit -q unlimited" and cannot
> create the queue (being /tmp/mqueue empty, for sure I unlinked the queue
> previously). But I become a normal user "ibc" (the user who created the
> first queue) and I *can* create the mqueue!!
>
> These days I've detected it randonly and I'm very confused. Do I miss
> something?
Hummm, I ""think"" (not 100% sure yet) that it occurs always that I delete and
try to create again a mqueue that was being used by other process (for
writting). But why Errno::ENOMEM?
--
Iñaki Baz Castillo <ibc@aliax.net>
next prev parent reply other threads:[~2010-01-10 1:39 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-10 1:21 Errno::ENOMEM (but now with no reason) Iñaki Baz Castillo
2010-01-10 1:38 ` Iñaki Baz Castillo [this message]
2010-01-10 1:47 ` Iñaki Baz Castillo
2010-01-10 5:51 ` Eric Wong
2010-01-10 12:18 ` Iñaki Baz Castillo
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
List information: https://yhbt.net/ruby_posix_mq/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201001100238.43736.ibc@aliax.net \
--to=ibc@aliax.net \
--cc=ruby.posix.mq@librelist.com \
/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.
Code repositories for project(s) associated with this public inbox
https://yhbt.net/ruby_posix_mq.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).