Max messages in Message Queue

Samuel Bitton S.Bitton at sstl.co.uk
Tue Jun 16 07:20:12 UTC 2009


It cannot be too many queues as I can create the queue ok with 100
messages in it.
Note that I get the error when I call create with 500 messages.
Also note that I don't think it is a memory issue as for 100 messages
the message size is set to 33 bytes and for the 500 messages case, I set
the message size to 5 bytes only. So in theory this would require as
much memory (unless RTEMS uses a lot of overhead on a per message
bases).

So to me there is a limiting factor for the number of messages per
queue?

-----Original Message-----
From: Joel Sherrill [mailto:joel.sherrill at oarcorp.com] 
Sent: 15 June 2009 17:49
To: Samuel Bitton
Cc: rtems-users at rtems.org
Subject: Re: Max messages in Message Queue

Samuel Bitton wrote:
> I have a local message queue defined with the maximum number of
messages
> set to 100 and the max size for each message set to 33 bytes.
> All is fine so far. But when I try to increase the max number of
> messages to 500 I get an RTEMS_TOO_MANY error.
>
> In the manual I can't find a configuration constant that would limit
the
> size of message queues.
> I've tried increasing the task stack size accordingly but no luck.
>
> Any suggestion as to what my might the source of my problem?
>
>   
You didn't add memory for the additional messages but
RTEMS_TOO_MANY indicates that there are either too
many queues (returned from create) or too many messages
in the queue -- full (returned from send).

Maybe something didn't get recompiled.

--joel
> Many thanks
> Sam
>
>
> This e-mail and any attachments may contain confidential and
> privileged information. If you are not the intended recipient,
> please notify the sender immediately by return e-mail, delete this
> e-mail and destroy any copies. Any dissemination or use of this
> information by a person other than the intended recipient is
> unauthorized and may be illegal.
> _______________________________________________
> rtems-users mailing list
> rtems-users at rtems.org
> http://www.rtems.org/mailman/listinfo/rtems-users
>   


-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel.sherrill at OARcorp.com        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
   Support Available             (256) 722-9985



This e-mail and any attachments may contain confidential and
privileged information. If you are not the intended recipient,
please notify the sender immediately by return e-mail, delete this
e-mail and destroy any copies. Any dissemination or use of this
information by a person other than the intended recipient is
unauthorized and may be illegal.



More information about the users mailing list