The raw data of tegrastats output data

I wonder that I can use the raw data such as CPU usage, GPU/CPU teperature not only output to terminal.
For example, in case cpu temperature, there is raw data in this path "/sys/devices/virtual/thermal/thermal_zone0/temp’. So, I can use this data on my application code.

Where can I find the raw data of tegrastats output data?

Hi,
Please share which release you are using and what system status you need. The device nodes may be different between releases and we implement tegrastats for convenience. Please let us know what information is required in your use-case so that we can check further.

Hi, thank you for your reply.

Because I don’t know exactly what “release” you need, I share everything below.

  1. module : Jetson AGX Xavier
  2. JetPack version: JetPack 4.6.2
  3. kernel version: Linux version 4.9.253-tegra
  4. OS version: Ubuntu 18.04

And I need the system status information below.

  1. Amount of RAM in use in MB.
  2. CPU load statistics for each of the CPU cores
  3. GPU and CPU temperature(+what part each zone means)

For your understanding, I extracted what I need from tegrastats output data.

RAM 1903/15692MB (lfb 3251x4MB) CPU [1%@1190,1%@1190,2%@1190,0%@1190,0%@1190,0%@1190,0%@1190,0%@1190] GPU@32C CPU@33.5C

Hi,
You can check the device nodes for information:

[memory usage]
# cat /proc/meminfo
[CPU load]
# cat /proc/stat
[GPU thermal]
# cat /sys/devices/virtual/thermal/thermal_zone1/temp

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.