-
Notifications
You must be signed in to change notification settings - Fork 3
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
pg_gpu_info
to get NVIDIA-related information like with nvidia-smi
#5
base: main
Are you sure you want to change the base?
Conversation
pg_gpu_info
to get NVIDIA-related information like with nvidia-smi
Good start! Do you think it could be possible to make those metrics part of the Also curious, how fast is it to query this as compared to our |
|
||
```sql | ||
---- | ||
SELECT device_id, device_name, total_memory_mb, used_memory_mb, temperature_c from pg_gpu_info(); |
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.
We want to namespace this function to this extension as well, if we are to use this approach. Like we do with PostgresML, it should be something like SELECT * FROM pg_stat_sysinfo.gpu_metrics()
or similar.
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.
Hey @levkk! I will look at the performance of getting the gpu_metrics vs. the others. Namespacing the function is also a good idea.
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.
We should also update the pgrx
dependencies. I didn't right off the bat because I was getting some errors, but we definitely should.
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.
Ah yeah, good call. Would be great to match the pgrx version here with what we have in postgresml/postgresml.
Adding
pg_gpu_info
to get NVIDIA-related information like withnvidia-smi