Results 1 to 2 of 2
Hello I am using an IBM p550 system with POWER5 cpus. In this arch, which has SMT (hyperthreading) enabled, one is allowed to set the logical processors priorities. These are ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 05-24-2006 #1
- Join Date
- Dec 2005
Hardware thread priority in PPC64 linux
I am using an IBM p550 system with POWER5 cpus. In this arch, which has SMT (hyperthreading) enabled, one is allowed to set the logical processors priorities. These are macros in include/asm-ppc64/processor.h like HMT_low(), which are really just OR instructions asm_volatile("or 1,1,1").
I have seen these macros used in the kernel 2.6 distro's for spin locks. However when I use them in my program I am not able to see any effect. The desired effect is that given two logical processors mapped to the same physical cpu, the one with higher priority will get more decode cycles and hence will execute programs faster.
The code is something like this and runs in user space:
and use taskset to bind the PID of this process to a particular CPU, and run the same code but without HMT_* macros on another CPU.
Can some one help me with:
1) Has any one be successful in using these macros in user space
2) How can I execute this app in kernel space, I am not sure of how Kernel modules can be used in this regards.
Thanks for any help
- 05-24-2006 #2Originally Posted by mrmeswani
Originally Posted by mrmeswani