Closed reef-actor closed 1 year ago
This is most likely a bug in the top output or the way top is being read, intel_gpu_top won't affect how much the CPU is working.
just a theory: the cpu percentage can increase due to the cpu scaling (cpu governor). if when idling with frigate running, the CPU might be running at let's say 800MHz, but when you run intel-gpu-top, it might increase to 1500MHz and then reduce the %, however it will draw more power.
you can check which governor is active:
cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
you can try to set it to performance
and check if the same happens
Thanks @NickM-27 @andre-pt , I suspect what I was seeing was indeed the cpu scaling impacting the percentages. Interestingly my ffmpeg usage is now about 8% after a reboot (first in >1yr) without the intel tool running 🤷
Describe the problem you are having
I am using
hwaccel_args: preset-vaapi
on an intel J5005 cpu. The ffmpeg takes uses 15% cpu. However if I run the intel_gpu_top tool the cpu usage for the ffmpeg process immediately drops to around 5% (gpu top shows 5% use of the video engine). Higher cpu usage returns on closing the tool.I am unsure if this is just an artifact in the measurement or does it suggest hw acceleration is not being properly used unless the tool is open?
Version
0.12.0-DA3E197
Frigate config file
docker-compose file or Docker CLI command
Relevant log output
FFprobe output from your camera
Operating system
Debian
Install method
Docker Compose
Network connection
Wired
Camera make and model
YI Outdoor 1080p (9CUS)
Any other information that may be helpful
No response