how to run a benchmark only on core 0 of the cpu (single-core)?

Viewed 19

What should I do in Ubuntu when we want to run a benchmark only on core 0 of the cpu for example?

So that when I run perf stat, the number of instructions does not change.

And on the other hand, do not run another program on core 0?

thanks

0 Answers
Related