Häufig gestellte Fragen

Brauchen Sie technischen Support?

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

Frage

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

Antwort

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

Brauchen Sie technischen Support?
  • Datum: 14.01.2020
  • Produkt: CarMaker/HIL
  • Version: 8.1
  • Komponente: Simulation Framework (CM VVE)
  • Sprache: Englisch

Tags

XPack4
Xeno