Power consumption monitoring

I am trying to monitor power consumption of jetson nano using TEGRASTATS.I want to know what exactly is shown in tegrastats specilly POM_5V_IN,POM_5V_GPU and POM_5V_CPU.I also want to know what Integrated power consumption monitoring tool is used on jetson nano.

RAM 1698/3965MB (lfb 99x4MB) CPU [16%@921,10%@921,10%@921,11%@921] EMC_FREQ 0% GR3D_FREQ 0% PLL@32.5C CPU@36C PMIC@100C GPU@33.5C AO@42.5C thermal@34.75C POM_5V_IN 2915/2915 POM_5V_GPU 40/40 POM_5V_CPU 319/319
2 Likes

Hi thohtdelta,

Please refer to the details in [url]Welcome — Jetson Linux<br/>Developer Guide 34.1 documentation

Thanks

1 Like

<VDD_name> X/Y
<VDD_name> is power consumption (mW) for certain module “name”'s rail. X is current value and Y is average value.

This is same for POM_5V_name.

2 Likes

Thanks kayccc

I tried to save the data from tegrastats and ended up saving the whole line.
It will be helpful if i can only save the power and temperature,please tell me where do tegrastats take those values from(like a file?),if so tell me the path.

Hi thohtdelta,

Install the strace package:

apt install strace

Output used files:

strace tegrastats 2>&1 | grep openat | grep sys

You will get something like that:

openat(AT_FDCWD, “/sys/bus/i2c/devices/6-0040/iio_device/rail_name_0”, O_RDONLY) = 4
openat(AT_FDCWD, “/sys/bus/i2c/devices/6-0040/iio_device/in_power0_input”, O_RDONLY) = 4

openat(AT_FDCWD, “/sys/devices/virtual/thermal/thermal_zone1/temp”, O_RDONLY) = 4
openat(AT_FDCWD, “/sys/devices/virtual/thermal/thermal_zone1/type”, O_RDONLY) = 4

Ctrl+C for drop

The file /sys/bus/i2c/devices/6-0040/iio_device/in_power0_input is current POM_5V_IN value
The file /sys/devices/virtual/thermal/thermal_zone1/temp is current CPU-therm value
and so on (/sys/devices/virtual/thermal/thermal_zone1/type is a sensor type as you understood)

That was helpful @fedormelexin,
I also wanted to know one more thing
https://docs.nvidia.com/jetson/l4t/index.html#page/Tegra%2520Linux%2520Driver%2520Package%2520Development%2520Guide%2FAppendixTegraStats.html%23wwpID0E0SB0HA

After checking this link i am still confused whether POM_5V_IN is the total power consumed by the whole board or we need to ADD all the three likePOM_5V_IN+POM_5V_GPU+POM_5V_CPU to get the total power consumed the motherboard.

This is the reading we got while the strip camera was running

RAM 1698/3965MB (lfb 99x4MB) CPU [16%@921,10%@921,10%@921,11%@921] EMC_FREQ 0% GR3D_FREQ 0% PLL@32.5C CPU@36C PMIC@100C GPU@33.5C AO@42.5C thermal@34.75C POM_5V_IN 2915/2915 POM_5V_GPU 40/40 POM_5V_CPU 319/319

This is the reading we got while running TensorRT

RAM 3100/3957MB (lfb 18x1MB) SWAP 535/4096MB (cached 22MB) IRAM 0/252kB(lfb 252kB) CPU [79%@1428,100%@1428,81%@1428,83%@1428] EMC_FREQ 22%@1600 GR3D_FREQ 99%@844 APE 25 PLL@44.5C CPU@48.5C PMIC@100C GPU@43.5C  AO@51C thermal@46C POM_5V_IN 7700/4490 POM_5V_GPU 2408/523 POM_5V_CPU 1224/613

This sums up to more than 11 watts and sometimes even 13 watts ,thus my doubt.
Is this normal? Will this affect the board if it runs for a long time??

I do not know which option is correct.

Supply 4 Amps at 5 Volts through the Barrel Jack connector is 5V*4A = 20 Watts (MAX). 13 watts seems to be acceptable consumption.
With sufficient cooling, the runs for a long time should not affect the board.

POM_5V_IN measures the overall 5V input to the board, it represents the total power consumption. You don’t need to add POM_5V_GPU and POM_5V_CPU to it. The GPU/CPU rails are provided for extra reference.

3 Likes

Just an observation:

Jetson Nano without any peripherals with full CPU (no GPU) load seems to consume aroung 4.5W.

@nanom Could you please share what monitoring tool/setup do you use on your screenshot?

Not sure, but it might be jtop:

1 Like

Hi @damian.bucha,

yes the monitor is jtop (shared from @Honey_Patouceul)
jtop from release 2.0 have fix the issue in this topic.

Now from jetson nano show properly the total power consumption (in bold POM_5V_IN)

Best,
Raffaello

1 Like

Thank you very much for the info. I will check it out right away :)