-
-
Notifications
You must be signed in to change notification settings - Fork 319
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
Systeminformation.graphics This function will cause high CPU utilization #932
Comments
@BlockCnFuture Yes, on Windows the overhead calling Opening a PowerShell process is really high. I do not suggest calling this every 2 seconds. I already mentioned the whole situation in this issue: #616 For version 6.0 I am working on something where we spin up a pool of PowerShell processes and they can then be used by each function ... |
@sebhildebrandt Do you also not recommend calling every second graphics if |
@TheRedfoox You are right, even when using |
@sebhildebrandt I did not find a way to call only some GPU metrics (only GPU usage) that allowed to lighten the call. Do you confirm to me that it is not possible at the moment or did I miss something in the document? |
@TheRedfoox Yes I can confirm that (for now). The only way would be probably to write C++ or C# code ... |
Describe the bug
When calling the Systeminformation.graphics function, especially when calling it within an interval, you will see high CPU utilization.
To Reproduce
Steps to reproduce the behavior:
Current Output
This function will cause high CPU utilization
Expected behavior
Should not cause high CPU utilization
Environment (please complete the following information):
To get all needed environment information, please run the following command:
Additional context
This problem is probably caused by using promise.all to execute multiple PowerShell commands concurrently under Windows. You can change it to execute one by one. The execution will not be much slower, but the CPU utilization problem should be optimized a lot.
The text was updated successfully, but these errors were encountered: