Bug 508087

Summary: Total disk space under-reported
Product: [Frameworks and Libraries] ksystemstats Reporter: Mark Stanton <mark>
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: 6.4.4   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Exported page

Description Mark Stanton 2025-08-10 15:14:05 UTC
SUMMARY
The new version of the system monitor overview reports my internal disk size as 1G when in fact it's 465Gb (ish, as correctly reported by the old interface

OBSERVED RESULT
Free space correct (203Gb).  Total space incorrect (1G)

EXPECTED RESULT
Free space 203Gb, total space 465Gb.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora 42/
KDE Plasma Version: 6.4.4
KDE Frameworks Version: 6.17.0
Qt Version: 9.9.1

ADDITIONAL INFORMATION
"Add attachment" doesn't allow me to add an attachment.
Comment 1 TraceyC 2025-08-11 22:55:23 UTC
Can you please export the page in System Monitor where you're seeing the incorrect disk space total and attach the .page file to this report?

I see that you weren't able to attach anything when you submitted this. Hopefully that was a temporary problem.

Thanks!
Comment 2 Mark Stanton 2025-08-12 07:51:09 UTC
Created attachment 183982 [details]
Exported page

Page exported from system monitor showing faulty disk size report, "1Gb internal drive".
Comment 3 Nate Graham 2025-08-12 16:31:19 UTC
Relevant part:


[Face-106123488899456][Appearance]
Title=Disks
chartFace=org.kde.ksysguard.horizontalbars

[Face-106123488899456][SensorColors]
disk/82bf82d5-9595-4d51-9cd5-05f3a2c82cc5/used=61,174,233
disk/86c43389-91a5-4f27-890c-92723ca52c85/used=233,120,61

[Face-106123488899456][Sensors]
highPrioritySensorIds=["disk/(?!all).*/used"]



Can you paste the output of:

kstatsviewer --details disk/82bf82d5-9595-4d51-9cd5-05f3a2c82cc5/total
kstatsviewer --details disk/86c43389-91a5-4f27-890c-92723ca52c85/total
Comment 4 Mark Stanton 2025-08-12 16:38:46 UTC
kstatsviewer --details disk/82bf82d5-9595-4d51-9cd5-05f3a2c82cc5/total gives

disk/82bf82d5-9595-4d51-9cd5-05f3a2c82cc5/total 1073741824
disk/82bf82d5-9595-4d51-9cd5-05f3a2c82cc5/total
    Name:        1.0 GiB Internal Drive (nvme0n1p3) Total Space
    Short Name:  Total
    Description: 
    Unit:        B
    Minimum:     0
    Maximum:     0

and kstatsviewer --details disk/86c43389-91a5-4f27-890c-92723ca52c85/total gives

disk/86c43389-91a5-4f27-890c-92723ca52c85/total 498626199552
disk/86c43389-91a5-4f27-890c-92723ca52c85/total
    Name:        fedora_localhost-live Total Space
    Short Name:  Total
    Description: 
    Unit:        B
    Minimum:     0
    Maximum:     0
Comment 5 Nate Graham 2025-08-13 18:23:00 UTC
Thanks. Seems like the stats themselves are wrong here.