Bug 489321

Summary: Total VRAM is reported incorrectly with resizeable BAR enabled
Product: [Frameworks and Libraries] ksystemstats Reporter: dirleyjordan
Component: GeneralAssignee: Plasma Bugs List <plasma-bugs-null>
Status: REPORTED ---    
Severity: normal CC: ahiemstra, kdedev, nate, plasma-bugs-null
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description dirleyjordan 2024-06-27 16:19:22 UTC
SUMMARY
The GPU "Total Video Memory" sensor reports the sum of the VRAM and system RAM when resizeable BAR is enabled.
For example, my desktop has 32GB of RAM and a GPU with 24GB VRAM. I expected the "Total Video Memory" sensor to report 24GB but it instead reports 56GB.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: CachyOS
(available in About System)
KDE Plasma Version: 6.1.1
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.2

ADDITIONAL INFORMATION
Nvidia proprietary drivers.
Comment 1 Arjen Hiemstra 2024-06-28 07:56:06 UTC
For NVidia, we rely on data from `nvidia-smi` for these values. You may want to run that directly to see what it reports, but presumably that reports the total memory incorrectly.
Comment 2 dirleyjordan 2024-06-28 09:56:16 UTC
(In reply to Arjen Hiemstra from comment #1)
> For NVidia, we rely on data from `nvidia-smi` for these values. You may want
> to run that directly to see what it reports, but presumably that reports the
> total memory incorrectly.

I thought that was the case but nvidia-smi actually does report it correctly oddly enough.