sebhildebrandt / systeminformation

System Information Library for Node.JS
MIT License
2.7k stars 307 forks source link

Add Tegra stats support #800

Open sheldonmaschmeyer opened 1 year ago

sheldonmaschmeyer commented 1 year ago

Currently systeminfomration only supports 'nvidia-cli' for GPU stats. Device that uses the NVidia Tegra do not have nvidia-cli but use tegrastats for GPU stats.

sebhildebrandt commented 1 year ago

@sheldonmaschmeyer ... can you provide sample data from tegrastats and how to call it from command line?

sheldonmaschmeyer commented 1 year ago

From tegrastats (included with all Jetson images):

RAM 7742/31929MB (lfb 4568x4MB) SWAP 0/15964MB (cached 0MB) CPU [37%@2265,40%@2265,31%@2265,29%@2265,42%@2265,47%@2265,49%@2265,35%@2265] EMC_FREQ 0% GR3D_FREQ 98% AO@49.5C GPU@55.5C Tdiode@50.25C PMIC@50C AUX@50C CPU@52.5C thermal@51.95C Tboard@46C

There is also jtop (JetsonStats) but it is not included by default on tegra devices.