From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <475FA733.6070706@domain.hid> Date: Wed, 12 Dec 2007 10:17:39 +0100 From: Philippe Gerum MIME-Version: 1.0 References: <2F8EE677D406514ABE53EF9C0934A666042ABE0C@anubis2.clb.tcfr.thales> In-Reply-To: <2F8EE677D406514ABE53EF9C0934A666042ABE0C@anubis2.clb.tcfr.thales> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: Philippe Gerum Subject: Re: [Xenomai-help] Pool Size of RT queues Reply-To: rpm@xenomai.org List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Laurent.POYART@fr.thalesgroup.com Cc: xenomai@xenomai.org 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.