magv / hypothread

Hypothread modifies CPU affinity to effectively disable hyperthreading for a given command.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hypothread

Hypothread executes the command it was given as arguments, but modifies its CPU affinity by selectively disabling logical CPUs belonging to identical physical processor cores, so that hyperthreading is avoided. If your program really performs badly with hyperthreading, use hypothread to effectively disable it.

Hypothread relies on sched_setaffinity() function and /proc/cpuinfo file. Because of this it will only work on Linux with GNU libc.

You can build hypothread with just:

make

To use it on a given command run:

hypothread command [argument] ...

About

Hypothread modifies CPU affinity to effectively disable hyperthreading for a given command.


Languages

Language:C 97.1%Language:Makefile 2.9%