https://bugs.kde.org/show_bug.cgi?id=529221
Bug ID: 529221
Summary: Set CPU affinity dialog does not account for offline
CPUs
Classification: Applications
Product: plasma-systemmonitor
Version First unspecified
Reported In:
Platform: Fedora RPMs
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: general
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Target Milestone: ---
Created attachment 198733
--> https://bugs.kde.org/attachment.cgi?id=198733&action=edit
Screenshot of CPU affinity dialog
DESCRIPTION
My CPU is a AMD Ryzen 7 1700 which has 8 physical cores and 16 logical cores
with SMT. I have SMT disabled with the nosmt=force kernel argument to work
around a hardware bug in Zen 1.
This leaves me with 0,2,4,6,8,10,12,14 as my online CPUs while the oddly
numbered CPUs (SMT siblings) are offline.
The system monitor gets confused by this and shows CPUs 1-8 as checkboxes with
1,3,5,7 as checked. Screenshot attached showing this. The actual affinity for
this example process as shown by taskset is 0-14:2 or a mask of 0x5555.
STEPS TO REPRODUCE
1. Set the nosmt=force kernel argument or manually offline some CPU cores.
2. Right click a process or application and click "Set Affinity"
3. Observe that the shown affinity in the dialog does not match what the
taskset CLI command shows.
OBSERVED RESULT
CPUs 1-8 shown in the dialog with the 4 oddly numbered CPUs checked.
EXPECTED RESULT
All online CPUs should be checked. The example process has affinity for all 8
online CPU cores. The system monitor displays this incorrectly.
SOFTWARE/OS VERSIONS
Operating System (available in the Info Center app, or by running `kinfo` in a
terminal window):
KDE Plasma Version: 6.8.3
KDE Frameworks Version: 6.32.0
Qt Version: 6.11.2
--
You are receiving this mail because:
You are watching all bug changes.