author | Vincent Brillault <git@lerya.net> | |
Sat, 23 Aug 2014 13:35:59 +0000 (15:35 +0200) | ||
committer | Vincent Brillault <git@lerya.net> | |
Sat, 28 Feb 2015 06:35:41 +0000 (07:35 +0100) | ||
commit | 8892d5bf56624cc69c78e474d83d2bf498d8a6f2 | |
tree | 42fc3cfc09e54f86020e7410b8f71f3000872236 | tree | snapshot |
parent | 43922127f300cb53bf26ad0a0515ba6721725368 | commit | diff |
Turbostat: Fix sched affinity mess
get_msr doesn't need to be run on the CPU targetted. However, when run
on another CPU, perfomances will decrease as task have to be scheduled
on another CPU. Migrating to another CPU during the setup (where only a
few get_msr are done) is probably not worth it. However, in the
get_counters function, the large number of get_msr query makes it
potentially important.
This patch also introduce the restoration of the scheduling affinity as
it was before the plugin invocation.
get_msr doesn't need to be run on the CPU targetted. However, when run
on another CPU, perfomances will decrease as task have to be scheduled
on another CPU. Migrating to another CPU during the setup (where only a
few get_msr are done) is probably not worth it. However, in the
get_counters function, the large number of get_msr query makes it
potentially important.
This patch also introduce the restoration of the scheduling affinity as
it was before the plugin invocation.
src/turbostat.c | diff | blob | history |