Skip to content
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

Reduce CPU usage to get process "Status" on Windows #3980

Merged

Conversation

pjanotti
Copy link
Contributor

Description:
The duration to compute the "Status" of Windows processes is the bottle neck of the processlist monitor on Windows. This change delegates the evaluation of the thread status to the WMI query reducing the amount of data marshalled back to golang. On my dev box this reduced memory and cpu usage, the duration was reduced to about 30% of the original code.

Link to Splunk idea:
N/A

Testing:
Updated the tests.

Documentation:
N/A

@pjanotti pjanotti self-assigned this Nov 28, 2023
@pjanotti pjanotti changed the title [DO NOT MERGE] Reduce CPU usage to get process "Status" on Windows Reduce CPU usage to get process "Status" on Windows Nov 29, 2023
@pjanotti pjanotti marked this pull request as ready for review November 29, 2023 17:28
@pjanotti pjanotti requested review from a team as code owners November 29, 2023 17:28
@pjanotti pjanotti merged commit b23b937 into signalfx:main Nov 29, 2023
44 checks passed
@pjanotti pjanotti deleted the improve-windows-process-list-performance branch November 29, 2023 17:29
@github-actions github-actions bot locked and limited conversation to collaborators Nov 29, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants