-
Notifications
You must be signed in to change notification settings - Fork 20
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
Visualize performance of the NPU device #22
Comments
The utilization is not available, but it is a feature that we plan to add. No deadline for it for today What do you mean by |
@jwludzik Thanks for the information. I am looking to view the utilization of NPU. Please let me know if the feature is available. |
Would be great to have an |
Can we at least get a single int based utilization rate exposed in sys fs? |
There is work in progress in nokyan/resources#302 to get a tool to show the utilization lately. You can get utilization using sys fs today, it is explained in nokyan/resources#302 (comment) |
The nokyan/resources today offers the utilization monitor in Ubuntu24.10 for NPU |
@jwludzik Can the NPU utilization be reflected by sys_fs counting npu busytime? Can the memory usage of the NPU be reflected? If we want to monitor how much NPU computing power/memory the model occupies, how should we do? |
I don't think so. The method used here to calculate utilization is
Yes, it can. There needs to be either a driver feature for it or external tool used like some tracing tool. |
@m-falkowski Thanks for your explanation! Can I understand that the increment of sys_fs reflects the utilization of the NPU, which is similar to the cpu utilization seen by the top command. But the memory usage function reflects the memory water level. Is NPU memory shared with CPU memory? For example, my host has 16G of memory. Is part of it reserved for the NPU? |
@junruizh2021 The NPU does not have it's own Memory like a dedicated GPU, but works similar to a iGPU, which has a dedicated/reserved part of the RAM and can "swap out" to regular RAM (GTT/GART). |
Yes, they share host memory.
There is no memory reserved for the NPU, it is allocated when needed. There is a bit of memory allocated during NPU initialization for a firmware and data structures. |
How can I get the utilizations or log for the NPU device?
The text was updated successfully, but these errors were encountered: