nicolargo / glances

Glances an Eye on your system. A top/htop alternative for GNU/Linux, BSD, Mac OS and Windows operating systems.
http://nicolargo.github.io/glances/
Other
26.97k stars 1.54k forks source link

GPU Monitoring (ARM / RaspberryPi) #1048

Open nicolargo opened 7 years ago

nicolargo commented 7 years ago

Description

Monitor ARM GPU thanks to the vcdbg command line.

Have a look on the following Python code: https://github.com/MilhouseVH/bcmstat/blob/master/bcmstat.sh Especial:

nicolargo commented 7 years ago

Man page for vcgencmd: http://www.elinux.org/RPI_vcgencmd_usage

Measure clock:

OpenELEC:~ # for src in arm core h264 isp v3d uart pwm emmc pixel vec hdmi dpi
> do
> echo -e "$src:\t$(vcgencmd measure_clock $src)"
> done
arm:    frequency(45)=600000000      <=== CPU
core:   frequency(1)=250000000        <=== GPU
h264:   frequency(28)=250000000
isp:    frequency(42)=250000000
v3d:    frequency(43)=0
uart:   frequency(22)=47999000
pwm:    frequency(25)=0
emmc:   frequency(47)=250000000
pixel:  frequency(29)=85500000
vec:    frequency(10)=0
hdmi:   frequency(9)=163683000
dpi:    frequency(4)=0

Memory:

OpenELEC:~ # vcgencmd get_mem gpu
gpu=256M

Temperature (to be added to the sensor module ?)

vcgencmd measure_temp
temp=49.4'C
nicolargo commented 7 years ago

No current consumption...

nicolargo commented 5 months ago

NVtop support the following GPUs:

NVTOP supports Adreno GPUs using the msm linux driver.

msm introduced the fdinfo interface in kernel 6.0 (browse kernel source). Hence, you will need a kernel with a version greater or equal to 6.0 to see the processes using Adreno GPUs.

Ciantic commented 2 weeks ago

NVtop got a Raspberry Pi's V3D support few weeks ago: https://github.com/Syllo/nvtop/pull/315