Noticing this odd spike in processor usage for the past few days. Is there an app or an add-on that will show which task is using the resources? like CPU, GPU, Ram etc. I have Glances installed but may be i didnt spend time with it much but it looks like it is just giving the snapshot of whats currently happening rather than giving us a graph or a more detailed info. Also its difficult to read? May be its just me whos finding it difficult? for all you pros out there how are u monitoring your system? Thanks for listening. 🙂
#Best System monitoring app/add-on?
1 messages · Page 1 of 1 (latest)
Glances can store this data in the InfluxDB addon which you can then graph with the grafana addon. Not exactly trivial though.
What makes it hard to read for you?
but it still does not tell us what exactly is using the resources does it?
Can you share a picture of your glances?
See pictures here for example: https://grafana.com/grafana/dashboards/21147-glances-2024/
thats still better monitoring. but does not tell me task specific issues?
I'm guessing it's frgate/go2rtc. CPU utilization can go over 100% depending how it's computed. I.e 8 cores at 100% = 800%.
so what I can tell is that its a wrapper to diaplay info from glance?
That's a pre made dashboard for grafana.
Basically glances ships the data you see into the database and grafana can graph that data.
ah ok. Yeah Frigate is my latest add on and it was hogging all the resources. but its better now that i have the cameras and settings tweaked.
Have you set up hardware acceleration for frigate? https://docs.frigate.video/configuration/hardware_acceleration/
Also make sure you calibrate detection properly.
yes and OpenVino
By the way if you press / or wherever that key would be on a english keyboard you can see the command args in glances.
Frigate also has its own stats in the GUI.
can u explain this part?
Take a look at the bottom right. You see ffmpeg but not the rest of the arguments of that command. That key will show them.
Frigate stats
Oh this worked!
Hmm that looks okay to me. I'm guessing it's go2rtc related then? Not a frigate expert.
I am using go2rtc
So looks like its always this camera that is using the CPU the most.
Can you scroll to the side so the full command is visible?
Would you mind sharing your sanitized config?
ffmpeg -hide_banner -v error -fflags nobuffer -flags low_delay -timeout 5000000 -user_agent go2rtc/ffmpeg -rtsp_flags prefer_tcp -i rtsp://MyIP/camera_high?video&source=ffmpeg:front_door_camera_high%23video%3Dh264%23rotate%3D90 -c:v libx264 -g 50 -profile:v high -level:v 4.1 -preset:v superfast -tune:v zerolatency -pix_fmt:v yuv420p -an -vf transpose=1 -user_agent ffmpeg/go2rtc -rtsp_transport tcp -f rtsp rtsp://MyIp/849bcddabb736b06
this is the full log
for frigate?
I am also rotating that camera 90 degrees so that also contributes but that much?
Yep. I likely can't help much with it but maybe nick will find its way here and would probaby ask for it anyways.
nick?
A well known frigate contributor: https://github.com/blakeblackshear/frigate/graphs/contributors
Hmm. I see no HW acceleration args in that command and your CPU isn't exactly fast. Can you share the frigate config?
So i am using "ffmpeg: hwaccel_args: preset-vaapi" as a general frigate setting
camera:
ffmpeg:
inputs:
- path: rtsp://IP/camera_low_rotated
roles:
- detect
- path: rtsp://IP/camera_high_rotated
roles:
- record
detect:
width: 720 # update to match your camera
height: 1280 # update to match your camera
fps: 5
snapshots:
enabled: true
timestamp: true
bounding_box: true
retain:
default: 2
record:
enabled: true
retain:
days: 1
alerts:
retain:
days: 5
detections:
retain:
days: 5
motion:
mask:
- 0,0.667,0.559,0.677,0.528,0.2,0,0.161
- 0,0.187,0.528,0.227,1,0.118,1,0,0,0
zones:
front_door:
coordinates: 0,0.672,0.595,0.682,0.565,0.28,1,0.184,1,1,0,1
loitering_time: 0
inertia: 3
Maybe it has to do with how the stream is created in your case. I run frigate standalone as a docker container. Config files like that need code blocks so the formatting is preserved.
To format your text as code, enter three backticks on the first line, press Enter for a new line, paste your code, press Enter again for another new line, and lastly three more backticks.
```yaml
example: here
```
Don't forget you can edit your post rather than repeatedly posting the same thing.
'''
mqtt:
host: ip
port: 1883
topic_prefix: frigate
client_id: frigate
user: username
password: password
stats_interval: 300
ffmpeg:
hwaccel_args: preset-vaapi
detectors:
ov:
type: openvino
device: GPU
model:
width: 300
height: 300
input_tensor: nhwc
input_pixel_format: bgr
path: /openvino-model/ssdlite_mobilenet_v2.xml
labelmap_path: /openvino-model/coco_91cl_bkgr.txt
cameras:
front_door_camera:
ffmpeg:
inputs:
- path: rtsp://IP/camera_low_rotated
roles:
- detect
- path: rtsp://IP/camera_high_rotated
roles:
- record
detect:
width: 720 # update to match your camera
height: 1280 # update to match your camera
fps: 5
snapshots:
enabled: true
timestamp: true
bounding_box: true
retain:
default: 2
record:
enabled: true
retain:
days: 1
alerts:
retain:
days: 5
detections:
retain:
days: 5
motion:
mask:
- 0,0.667,0.559,0.677,0.528,0.2,0,0.161
- 0,0.187,0.528,0.227,1,0.118,1,0,0,0
zones:
front_door:
coordinates: 0,0.672,0.595,0.682,0.565,0.28,1,0.184,1,1,0,1
loitering_time: 0
inertia: 3
version: 0.15-1
camera_groups: {}'''
this is the full code
Backticks, not apostrophes 🙂
Looks okay to me but I can't give much more specific advice here.