aarron-lee / SimpleDeckyTDP

Decky TDP plugin for alternative PC handhelds
Other
51 stars 8 forks source link

Not an issue, enhancement. Cpu core count with correct topology #10

Open adolfotregosa opened 11 months ago

adolfotregosa commented 11 months ago

You are only missing this for feature completion ! Good work, thank you.

Be aware of the topology for 7840U if you decide to implement this.

grep -H . /sys/devices/system/cpu/cpu*/topology/thread_siblings_list

/sys/devices/system/cpu/cpu0/topology/thread_siblings_list:0,8 /sys/devices/system/cpu/cpu1/topology/thread_siblings_list:1,9 /sys/devices/system/cpu/cpu2/topology/thread_siblings_list:2,10 /sys/devices/system/cpu/cpu3/topology/thread_siblings_list:3,11 /sys/devices/system/cpu/cpu4/topology/thread_siblings_list:4,12 /sys/devices/system/cpu/cpu5/topology/thread_siblings_list:5,13 /sys/devices/system/cpu/cpu6/topology/thread_siblings_list:6,14 /sys/devices/system/cpu/cpu7/topology/thread_siblings_list:7,15 /sys/devices/system/cpu/cpu8/topology/thread_siblings_list:0,8 /sys/devices/system/cpu/cpu9/topology/thread_siblings_list:1,9 /sys/devices/system/cpu/cpu10/topology/thread_siblings_list:2,10 /sys/devices/system/cpu/cpu11/topology/thread_siblings_list:3,11 /sys/devices/system/cpu/cpu12/topology/thread_siblings_list:4,12 /sys/devices/system/cpu/cpu13/topology/thread_siblings_list:5,13 /sys/devices/system/cpu/cpu14/topology/thread_siblings_list:6,14 /sys/devices/system/cpu/cpu15/topology/thread_siblings_list:7,15

this means that disabling SMT, actual cores should be from 0 to 7 (not 0 2 4 6 8 etc) and with SMT threads from 8 to 15