On 2015-04-17 19:34, Jan Kiszka wrote: > Hi, > > analyzing page faults of an application that prefers to set its own > stacks, I noticed a problem in Xenomai (2 and 3), at least from the > usability POV: We document the minimum stack stack as PTHREAD_STACK_MIN > + 1 page, at least in Xenomai 3, and we enforce that on thread creation. > However, enforcement is doomed to fail if the stack is preallocated (and > that too small).
Another aspect in this: I just realized that the glibc tends to ignore our "+ getpagesize()" in the stack calculation. That's at least true for the x86-64 systems with glibc 2.19 on which I tested. Jan -- Siemens AG, Corporate Technology, CT RTC ITP SES-DE Corporate Competence Center Embedded Linux _______________________________________________ Xenomai mailing list Xenomai@xenomai.org http://www.xenomai.org/mailman/listinfo/xenomai