Hello,
I am using Jetson Orin Nano and making a lightweight system logger that reads runtime metrics directly from user space using sysfs and /proc interfaces.
For example, CPU frequency can be obtained via:
/sys/devices/system/cpu/cpu%d/cpufreq/scaling_cur_freq
and similar interfaces exist for GPU frequency, CPU utilization, memory usage, and thermal sensors.
However, for EMC (External Memory Controller), I can only find frequency information, and the utilization percentage appears to be available only through sudo tegrastats output (e.g., EMC_FREQ 0%@2133, see attached screenshot).
Is there an official or supported way to obtain EMC utilization without parsing tegrastats output?
If not, are there any plans to expose this metric to user space in future Jetson Linux releases?
Thank you.
Hi, thanks for the pointer to the jtop source code.
I checked jtop/core/memory.py in the jetson_stats repository and found how EMC utilization is computed. In read_emc(), the code reads the current EMC frequency from /sys/kernel/debug/bpmp/debug/clk/emc/rate (in Hz, then divided by 1000 to get kHz), then reads a utilization value from /sys/kernel/debug/cactmon/mc_all or /sys/kernel/actmon_avg_activity/mc_all. On my Jetson Orin Nano (Jetson Orin Nano Super), the available node is /sys/kernel/debug/cactmon/mc_all rather than actmon_avg_activity/mc_all. It then computes the EMC “percent” value with
emc['val'] = utilization // emc['cur']
so effectively the mc_all value is normalized by the current EMC frequency. The file I referenced is here: jetson_stats/jtop/core/memory.py at master · rbonghi/jetson_stats · GitHub.