<div dir="ltr"><div>Hello,</div><div><br></div><div>would it be possible to allow users
 to disable SMT (a.k.a. hyperthreading) temporarily on one cpu core? 
This would be useful for doing timing runs that are not affected by 
other processes running on another logical cpu on the same physical 
core.</div><div><br></div><div>This can be accomplished by taking all but one logical cpu on a physical core offline via <br></div><div>/sys/devices/system/cpu/cpu*/online</div><div>For example, on gcc121,<br></div><div>$ head /sys/devices/system/cpu/cpu??/topology/thread_siblings_list | tail -n 2</div><div>==> /sys/devices/system/cpu/cpu31/topology/thread_siblings_list <==<br>15,31</div><div>shows that logical cpus 15 and 31 are on the same physical core. With</div><div># echo 0 > /sys/devices/system/cpu/cpu31/online</div><div>as
 root, logical cpu 31 can be taken offline, so that processes on logical
 core 15 run effectively without SMT interference until  logical core 31
 is put online again.</div><div><br></div><div>Is there any interest in allowing such a mechanism?</div><div><br></div><div>All the best,</div><div>Alex</div></div>