understanding /proc/xenomai/stat
Hi all,
Can someone explain the fileds in /proc/xenomai/stat?
To be more specific, I get this output :
0 0 0 16722526 0 00500080 70.2 ROOT/0 1 0 0 1 0 00500080 99.9 ROOT/1 0 0 0 9248781 0 00000082 6.7 rtnet-stack
[.....]
0 2190 1 8280188 1 00300186 10.0 PtpHandlerTask
[.....]
I can see that my xenomai code occupies about 30% CPU, the Linux occupies about 4%
What is the connection between xenomai and linux? Does it means that my code total CPU usage is 34%?
Thanks,
Sagi Maimon
Manager R&D Software Oscilloquartz SA.
ADVA Optical Networking
Phone: +972 9 775 0124
Mobile: +972 54 5662632
e-mail: [email protected]<mailto:[email protected]> [ADVA_OSA_Logo] www.oscilloquartz.com<http://www.oscilloquartz.com/> www.advaoptical.com<http://www.advaoptical.com/>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 4482 bytes
Desc: image001.jpg
URL: <http://xenomai.org/pipermail/xenomai/attachments/20160517/9a7e32ed/attachment.jpg>
Quoted 7 lines · Sagi Maimon
Hi all,
Can someone explain the fileds in/proc/xenomai/stat?To be more specific, I get this output :
0 0 0 16722526 0 00500080 70.2 ROOT/0 1 0 0 1 0 00500080 99.9 ROOT/1 0 0 0 9248781 0 00000082 6.7 rtnet-stack
Quoted 7 lines
[.....]
0 2190 1 8280188 1 00300186 10.0 PtpHandlerTask
[.....]I can see that my xenomai code occupies about 30% CPU, the Linux occupies about 4%
What is the connection between xenomai and linux? Does it means that my code total CPU usage is 34%?
Since ROOT got 170.1 out of 200, then xenomai did use 29.9. You would have to ask linux how much of the 170.1 it actually used and how much was idle. Xenomai doesn't look at the scheduler in linux for you.
Now if linux says it was idle 50% of the time, then your total would be 30 for xenomai, and 50% of 170 linux, so 85 for linux, leaving 85 idle.
I am pretty sure that is how it works out.
Signature · 1 line
Len Sorensen