* [Xenomai-help] Pool Size of RT queues
@ 2007-12-12 7:51 Laurent.POYART
2007-12-12 9:17 ` Philippe Gerum
0 siblings, 1 reply; 2+ messages in thread
From: Laurent.POYART @ 2007-12-12 7:51 UTC (permalink / raw)
To: xenomai
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?
L.Poyart
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Xenomai-help] Pool Size of RT queues
2007-12-12 7:51 [Xenomai-help] Pool Size of RT queues Laurent.POYART
@ 2007-12-12 9:17 ` Philippe Gerum
0 siblings, 0 replies; 2+ messages in thread
From: Philippe Gerum @ 2007-12-12 9:17 UTC (permalink / raw)
To: Laurent.POYART; +Cc: xenomai
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-12-12 9:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-12 7:51 [Xenomai-help] Pool Size of RT queues Laurent.POYART
2007-12-12 9:17 ` Philippe Gerum
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.