diff options
| author | Aravind Gopalakrishnan <[email protected]> | 2015-08-11 01:20:48 +0000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2015-08-12 10:06:08 +0000 |
| commit | e237882b8f83dd1a0eece1608bcb689d4f4b221b (patch) | |
| tree | 96e25518f0f22929bb00c89d010f1e58780cdf37 /tools/perf/util/scripting-engines/trace-event-perl.c | |
| parent | tile: Reorganize _switch_to() (diff) | |
| download | kernel-e237882b8f83dd1a0eece1608bcb689d4f4b221b.tar.gz kernel-e237882b8f83dd1a0eece1608bcb689d4f4b221b.zip | |
sched/numa: Fix NUMA_DIRECT topology identification
Systems which have all nodes at a distance of at most 1 hop should be
identified as 'NUMA_DIRECT'.
However, the scheduler incorrectly identifies it as 'NUMA_BACKPLANE'.
This is because 'n' is assigned to sched_max_numa_distance but the
code (mis)interprets it to mean 'number of hops'.
Rik had actually used sched_domains_numa_levels for detecting a
'NUMA_DIRECT' topology:
http://marc.info/?l=linux-kernel&m=141279712429834&w=2
But that was changed when he removed the hops table in the
subsequent version:
http://marc.info/?l=linux-kernel&m=141353106106771&w=2
Fixing the issue here.
Signed-off-by: Aravind Gopalakrishnan <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Reviewed-by: Rik van Riel <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Mike Galbraith <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-perl.c')
0 files changed, 0 insertions, 0 deletions
