diff options
| author | Daniel Thompson <[email protected]> | 2015-03-26 12:23:23 -0700 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2015-03-27 08:33:57 +0100 |
| commit | cf7c9c170787d6870af54684822f58acc00a966c (patch) | |
| tree | 7fc5b9fe286c4f7fb5a8b54031b4dbffd9f228ac /tools/perf/scripts/python/syscall-counts-by-pid.py | |
| parent | 8710e914027e4f64058ebbf0501cc6db3cc8454f (diff) | |
timers, sched/clock: Optimize cache line usage
Currently sched_clock(), a very hot code path, is not optimized
to minimise its cache profile. In particular:
1. cd is not ____cacheline_aligned,
2. struct clock_data does not distinguish between hotpath and
coldpath data, reducing locality of reference in the hotpath,
3. Some hotpath data is missing from struct clock_data and is marked
__read_mostly (which more or less guarantees it will not share a
cache line with cd).
This patch corrects these problems by extracting all hotpath
data into a separate structure and using ____cacheline_aligned
to ensure the hotpath uses a single (64 byte) cache line.
Signed-off-by: Daniel Thompson <[email protected]>
Signed-off-by: John Stultz <[email protected]>
Reviewed-by: Stephen Boyd <[email protected]>
Acked-by: Peter Zijlstra (Intel) <[email protected]>
Cc: Catalin Marinas <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Russell King <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Will Deacon <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions