posix_mq RubyGem user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
* Calculating the required value of "ulimit -q"
@ 2010-01-14 22:33 Iñaki Baz Castillo
  2010-01-14 22:55 ` Eric Wong
  0 siblings, 1 reply; 19+ messages in thread
From: Iñaki Baz Castillo @ 2010-01-14 22:33 UTC (permalink / raw)
  To: ruby.posix.mq

Hi, I create a mqueue with msgsize 1024 and maxmsg 5000, so in total:

  5120000 bytes

I set for root that value:

  ~# ulimit -q 5120000

However I get Errno::ENOMEM. In order it to work I must increase the ulimit to 
a value closed to 5160000.

Could I know which is the exact algorithm to calculate the required "ulimit -
q" value based on the desired msgsize and maxmsg?
I would like my application to suggest that value if it cannot start due to 
memory limitations when creating the mqueue.

Thanks a lot.


-- 
Iñaki Baz Castillo <ibc@aliax.net>

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2010-01-19  9:29 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-14 22:33 Calculating the required value of "ulimit -q" Iñaki Baz Castillo
2010-01-14 22:55 ` Eric Wong
2010-01-14 22:57   ` Iñaki Baz Castillo
2010-01-14 23:01     ` Iñaki Baz Castillo
2010-01-15 10:01       ` Iñaki Baz Castillo
2010-01-15 18:33         ` Iñaki Baz Castillo
2010-01-15 20:15         ` Eric Wong
2010-01-15 21:27           ` Iñaki Baz Castillo
2010-01-15 22:12             ` Eric Wong
2010-01-15 23:41               ` Iñaki Baz Castillo
2010-01-16  1:02                 ` Eric Wong
2010-01-16 13:08                   ` Iñaki Baz Castillo
2010-01-18 11:35                     ` Eric Wong
2010-01-18 12:05                       ` Iñaki Baz Castillo
2010-01-18 15:42                         ` Iñaki Baz Castillo
2010-01-18 15:55                           ` Iñaki Baz Castillo
2010-01-19  2:59                             ` Eric Wong
2010-01-19  9:29                               ` Iñaki Baz Castillo
2010-01-18 16:09                         ` Iñaki Baz Castillo

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).