Linux 6.6 To Make It Easier To Enable Partial SMT For POWER

Written by Michael Larabel in Hardware on 2 August 2023 at 10:19 AM EDT. 8 Comments
HARDWARE
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.

IBM POWER9 CPU in socket


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.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week