-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add GPU stats to the /stats API and debug screen #3931
Conversation
Added intel_gpu_top for now, need to verify if it can work in the container: |
✅ Deploy Preview for frigate-docs canceled.
|
85baa38
to
f140dfd
Compare
0425a36
to
3ed0409
Compare
"""Get stats for cpu / gpu.""" | ||
|
||
async def run_tasks() -> None: | ||
await asyncio.wait( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the only reason to introduce asyncio stuff here so we can wait for these to run in parallel?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, with the cpu and 2 gpus my production server takes ~ 7-10 seconds and with this it's more like 3-5 seconds. There definitely may be better ways to parallelize it or run the actual checks in the background and cache / average the returned results so when /stats is called it can return without waiting.
4b3e124
to
fa7a362
Compare
Add the ability to view current GPU utilization and GPU memory utilization from hwaccel args.
Unfortunately each GPU API has a different set of features so there will be some difference (for example nvidia-smi can return the model GPU).
To - Do:
intel_gpu_top