Linux 6.6 To Make It Easier To Enable Partial SMT For POWER
While Simultaneous Multi-Threading (SMT) on Intel/AMD x86_64 processors is limited to providing one additional thread per core, SMT on IBM POWER hardware can provide 4-way and even 8-way SMT for some processor models. With Linux 6.6 the /sys/devices/system/cpu/smt/control interface is being extended to allow greater control over managing partial SMT states in cases of the CPUs supporting more than 2-way SMT at Linux run-time.
The /sys/devices/system/cpu/smt/control sysfs interface currently allows for forcing SMT on/off from user-space. But with patches set to go into Linux 6.6, it will allow for partial SMT states in the event of processors supporting multi-way SMT like with IBM processors.
Rather than the sysfs interface being used for just turning SMT on/off, an integer value can be specified for the number of SMT threads per processor to utilize.
This support was queued into tip/tip.git's smp/core branch ahead of the Linux 6.6 merge window opening in a few weeks. See that patch for more details on the updated SMT control sysfs interface.
The /sys/devices/system/cpu/smt/control sysfs interface currently allows for forcing SMT on/off from user-space. But with patches set to go into Linux 6.6, it will allow for partial SMT states in the event of processors supporting multi-way SMT like with IBM processors.
Rather than the sysfs interface being used for just turning SMT on/off, an integer value can be specified for the number of SMT threads per processor to utilize.
This support was queued into tip/tip.git's smp/core branch ahead of the Linux 6.6 merge window opening in a few weeks. See that patch for more details on the updated SMT control sysfs interface.
8 Comments