From: Philippe Gerum <rpm@xenomai.org>
To: Laurent.POYART@fr.thalesgroup.com
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Pool Size of RT queues
Date: Wed, 12 Dec 2007 10:17:39 +0100 [thread overview]
Message-ID: <475FA733.6070706@domain.hid> (raw)
In-Reply-To: <2F8EE677D406514ABE53EF9C0934A666042ABE0C@anubis2.clb.tcfr.thales>
Laurent.POYART@fr.thalesgroup.com wrote:
> Hi,
>
> I'm using xenomai 2.4-rc5 with a linux kernel 2.6.23. I have got a problem
> with a simple test in which I try to create a RT queue using the native API:
> RT_QUEUE theQueue;
> int err = rt_queue_create(&theQueue,"myRtQueue",2048,10,Q_FIFO);
> With the previous parameters, I get an error err=-EINVAL. I have
> instrumented the xenomai code to find the problem. rt_queue_create calls
> the function xnheap_init_mapped with my poolsize of 2048 and with a
> PAGE_SIZE of 4096. The xnheap_init_mapped function calls xnheap_init which
> generates the EINVAL when running the following test (extrated from
> ksrc/nucleus/heap.c):
> if(hdrsize + 2 * pagesize > heapsize) return -EINVAL;
> I have extracted the values of the local variables: hdrsize=32, pagesize =
> 4096, heapsize = 8192.
> I succeed in creating the queue by using a big poolsize. I don't really
> understand if there is a constraint when creating a queue or if I get the
> error because of a bad configuration. I just find this strange to have to
> create the queue with a big pool even if I just need a small one.
> Does anybody already encounter this kind of problem?
>
Upgrade to 2.4.0.
> L.Poyart
>
>
> _______________________________________________
> Xenomai-help mailing list
> Xenomai-help@domain.hid
> https://mail.gna.org/listinfo/xenomai-help
>
--
Philippe.
prev parent reply other threads:[~2007-12-12 9:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-12 7:51 [Xenomai-help] Pool Size of RT queues Laurent.POYART
2007-12-12 9:17 ` Philippe Gerum [this message]
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=475FA733.6070706@domain.hid \
--to=rpm@xenomai.org \
--cc=Laurent.POYART@fr.thalesgroup.com \
--cc=xenomai@xenomai.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.