Repository navigation
nvidia: merge processes reported as both graphics and compute - #538
Open
wuzhonglijz wants to merge 2 commits into
Open
wuzhonglijz wants to merge 2 commits into
wuzhonglijz wants to merge 2 commits into
Conversation
A process that uses the GPU for graphics and compute is returned by both nvmlDeviceGetGraphicsRunningProcesses and nvmlDeviceGetComputeRunningProcesses, so it was listed twice with the same PID and memory. Utilization samples only matched the first entry, leaving the second one at 0%. Merge entries with the same PID and combine their type, which the interface already displays as "Both G+C". Fixes Syllo#530
"Both G+C" is the only process type label that uses single-letter abbreviations, while the others spell out "Graphic" and "Compute". "Gfx+Comp" names both types in the same 8-character column.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A process using the GPU for both graphics and compute is returned by
nvmlDeviceGetGraphicsRunningProcessesandnvmlDeviceGetComputeRunningProcesses, so it was listed twice with the same PID and memory. Utilization samples only matched the first entry, so the second always showed 0%.The first commit merges entries with the same PID and ORs their type, the same way the fdinfo/xe/msm backends already do.
The second commit renames the combined type label from "Both G+C" to "Gfx+Comp", which is more in line with "Graphic" and "Compute" and still fits the 8-character TYPE column. It's separate so it can be dropped if you prefer the current label. The JSON output (
graphic & compute) is unchanged.Tested on an RTX 4090 with KDE Plasma (Wayland):
kwin_waylandand 3 other processes were listed as bothgraphicandcompute. With this PR the list goes from 15 rows to 11, each of those shown once asGfx+Compwith unchanged memory.Fixes #530