On Thu, Mar 7, 2013 at 8:51 PM, Ronny Meeus <[email protected]> wrote: > On Thu, Mar 7, 2013 at 4:56 PM, Philippe Gerum <[email protected]> wrote: >> On 03/07/2013 11:32 AM, Philippe Gerum wrote: >>> >>> On 03/07/2013 11:02 AM, Ronny Meeus wrote: >>>> >>>> >>>> thanks for the patch. >>>> With this patch the test application is working fine, no cpuload is >>>> observed anymore. >>>> Our real application on the other hand aborts after some time with >>>> this reporting: >>>> >>>> ------------------------------------------------------------------------------ >>>> >>>> [ ERROR BACKTRACE: thread root ] >>>> >>>> #0 EAGAIN in t_create(), task.c:320 >>>> #1 EAGAIN in copperplate_create_thread(), internal.c:138 >>>> >>>> ------------------------------------------------------------------------------ >>>> >>>> >>>> I did not observe this when running with the xenomai before the patch. >>>> Do you have a clue about why I see this? >>>> >>>> >>> >>> There is likely a resource leakage hiding somewhere. I'll have a look. >>> >> >> After hours running the test case, I didn't see any sign of leakage, same >> after code inspection. Maybe this bug is visible now that your app can run >> more code. There are several potential causes for EAGAIN, however assuming >> this is not a rlimit issue, checking /proc/vmstat while your app runs may >> give some hint. >> >> -- >> Philippe. > > I try to debug this issue tomorrow. > > Ronny
I found the issue, thanks to your /proc/vmstat hint. The problem was that the complete virtual address space was depleted and there was no space left to create some of the tasks. By reducing the memory configuration of our application the build starts up and the original load issue is resolved. In the coming days I will do some further testing on this Xenomai version and let you know the result later. In a comment in the code it is indicated that a timerwheel will be introduced later. To you have any plans for this in the near future? Our application is a legacy one and I think it has something like 50 timers running. Thanks for the great support. Ronny _______________________________________________ Xenomai mailing list [email protected] http://www.xenomai.org/mailman/listinfo/xenomai
