How to interpret /proc/xenomai/stat CPU time of threads with priority 0
Hi all,
I was wondering if the displayed CPU time was, for these particular threads, the only time spent in primary mode, of the total amount of time spent on the CPU.
I am namely currently debugging an application which has such kind of thread,
with a period of 50ms, and that takes up to 23% of the CPU.
That is bad, but not a real issue if that time is spent only in secondary mode, but I do not know how to figure it out.
The mode switches frequency is equal to the period of my thread, since it uses rt_task_wait_period
I am a little bit concerned, my fear is that secondary mode time would be counted in the ROOT task ... BTW, I am using version 2.5.2 (I know, it's old ;-) ).
Any help would be appreciated.
Thanks
Thierry
Quoted 16 lines · Thierry Bultel
Hi all,
I was wondering if the displayed CPU time was, for these particular threads,
the only time spent in primary mode, of the total amount of time spent on the CPU.I am namely currently debugging an application which has such kind of thread,
with a period of 50ms, and that takes up to 23% of the CPU. That is bad, but not a real issue if that time is spent only in secondary mode,
but I do not know how to figure it out.
The mode switches frequency is equal to the period of my thread, since it usesrt_task_wait_period
Quoted 3 lines
I am a little bit concerned, my fear is that secondary mode time would be counted in the ROOT task ...
BTW, I am using version 2.5.2 (I know, it's old ;-) ).
23% is the time spent by your thread in primary mode, secondary mode is indeed charged to the root thread.
Quoted 9 lines
Any help would be appreciated.
Thanks
Thierry
_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help
Signature · 1 line
Philippe.