常见问题

Need technical support?

Check the CPU Usage in the Xpack4 using a linux/Xeno command

Question

How can I check the CPU Usage in the Xpack4 using a linux/Xeno command?

Solution

cat /proc/xenomai/stat : → The command to know the statistics of the process such as CPU usage in the computer.
cat /proc/xenomai/sched : → The command to know the list of tasks, its priority, and timeout in the computer.

In the screenshot below PID 40 shows the highest priority and the timeout: 745 microseconds < 1 ms:

To use the command dynamically/loop during the process, provide the command inside the while loop

while 1; do cat /proc/xenomai/stat; sleep 1; done

Need technical support?
  • Date: 14.01.2020
  • Product: CarMaker/HIL
  • Version: 8.1
  • Component: Simulation Framework (CM VVE)
  • Language: English

Tags

XPack4
Xeno