Posted in

Linux on Power and SMT – Close Encounters of the Third Thread

This time, a less serious article, meant to be treated as a fun fact 😉


Every AIX administrator knows the available multithreading settings, which are:

  • SMT=off
  • SMT=2
  • SMT=4
  • SMT=8

But how does this look in the case of Linux on a Power10 server?

It turns out that SMT settings can be configured not only to 1, 2, 4, and 8 threads but also to 3, 5, 6, and 7 threads (!!)

Many people might ask, “Why do this??”

I have no idea. 😊

I don’t think anyone has a practical need for such an unconventional configuration, but I’m sharing this information as an interesting fact. I was quite surprised to learn that such a setting is even possible.

Maybe it’s also doable in AIX? Below is an example of my attempt:

I only confirmed what was already known.

So, how do you change the setting in the case of RHEL9 on a Power10 server?

To change the setting, I used the ppc64_cpu command, which can be installed along with the powerpc-utils-core package (# dnf install powerpc-utils-core).

To change the SMT setting, you can simply run the following command:

First, let’s compare the standard settings for SMT=8 (default)

Default settings: SMT=8

Below is an example of changing SMT to an “unusual” value and checking the current configuration.

SMT=7

For testing purposes, I put a bit of load on the system.

In the screenshot below, you can see the utilization of all threads in the NMON program. The current SMT setting (SMT=7) is also visible.

Treść artykułu
NMON

SMT=6

SMT=5

Treść artykułu

SMT=3

Summary

This publication is not particularly useful, and I don’t expect it to help you in your work with Power servers, but I hope at least it was something a little interesting 😊

Thank you for reading!