diff options
author | Andi Kleen <ak@linux.intel.com> | 2019-11-20 16:15:17 -0800 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2019-11-29 12:20:45 -0300 |
commit | 7736627b865defff2430e95df235b4aa2450bc37 (patch) | |
tree | 525853a8ed36f1cc6f373b7952ee4a2aa0d45eab /scripts | |
parent | 99d6141d677a8cd0b35390a29527c8def42538b1 (diff) | |
download | linux-stable-7736627b865defff2430e95df235b4aa2450bc37.tar.gz linux-stable-7736627b865defff2430e95df235b4aa2450bc37.tar.bz2 linux-stable-7736627b865defff2430e95df235b4aa2450bc37.zip |
perf stat: Use affinity for closing file descriptors
Closing a perf fd can also trigger an IPI to the target CPU.
Use the same affinity technique as we use for reading/enabling events to
closing to optimize the CPU transitions.
Before on a large test case with 94 CPUs:
% time seconds usecs/call calls errors syscall
------ ----------- ----------- --------- --------- ----------------
32.56 3.085463 50 61483 close
After:
10.54 0.735704 11 61485 close
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Link: http://lore.kernel.org/lkml/20191121001522.180827-8-andi@firstfloor.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions