Re: [PATCH v2 0/9] Introduce SMT level and add PowerPC support

From: Sachin Sant
Date: Thu Jun 29 2023 - 09:32:01 EST



>>
>> Without this option but changing SMT level during runtime using
>> ppc64_cpu —smt=<level>, the SMT level is not retained after
>> cpu core add.
>
> That's because ppc64_cpu is not using the sysfs SMT control file, it's
> just onlining/offlining threads manually.
>
> If you run:
> $ ppc64_cpu --smt=4
>
> And then also do:
>
> $ echo 4 > /sys/devices/system/cpu/smt/control
>
> It should work as expected?

Thanks Michael. Yes this works. The SMT level is preserved
after a core add.

- Sachin