Repository navigation
Conversation
print_processes_on_screen built every column of a process row inline. Extract the GPU, encoder, decoder, memory, CPU and CPU memory columns into format_process_numeric_fields and move the all_processes and gpuid_and_process types into interface_common.h so they can be shared. No behavior change.
Append a TOTAL row as the last entry in the scrollable process list that sums the per-process GPU, encoder, decoder, memory, CPU and CPU memory values. The row reuses the process column formatting so it aligns with the header and scrolls together with the rest of the list. It is only shown when there are processes. Scrolling counts the TOTAL row as a real entry and shifts the window up by one line when the last process is visible, so the row stays on screen. sum_processes and the scroll helpers live in interface_layout_selection.c where they can be unit tested. Each process reports gpu_memory_percentage of its own device, so the summed value can exceed 100% on a multi-GPU system.
The row is off by default so the process list keeps looking exactly like it did before, and can be turned on from the command line with --total-row (long-only, no short option taken), from the config file with the ShowTotalRow key, and from the Processes section of the setup window.
Describes --total-row, the setup-window entry, the fact that the summed percentages are per device and can exceed 100, and that the row needs room of its own.
zarbis
force-pushed
the
feat/total-row
branch
from
November 10, 2026 06:56
a6b7bbe to
5562c5d
Compare
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.
What
Append a TOTAL row as the last entry in the scrollable process list that sums the per-process GPU, encoder, decoder, memory, CPU, and CPU memory values across all processes.
Notes
Testing
Tested on Linux 7.3.1-1-cachyos Nvidia 615.78.08 RTX 5080:
AI Usage
I used agent to write the code. Grilled it to explain it to me to the point I can write this description by hand.