diff options
author | Srikar Dronamraju <[email protected]> | 2023-10-19 14:44:52 +0530 |
---|---|---|
committer | Michael Ellerman <[email protected]> | 2023-10-19 23:25:59 +1100 |
commit | efce8422dd53fae6cdbd37741034ac4eb4730819 (patch) | |
tree | 4cfb435563dad09f5d3e3f89d7210440354df577 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | e08c43e6c3eb5d805b61d981f1e8286ee0dc6d1a (diff) |
powerpc/paravirt: Improve vcpu_is_preempted
PowerVM Hypervisor dispatches on a whole core basis. In a shared LPAR, a
CPU from a core that is CEDED or preempted may have a larger latency. In
such a scenario, its preferable to choose a different CPU to run.
If one of the CPUs in the core is active, i.e neither CEDED nor
preempted, then consider this CPU as not preempted.
Also if any of the CPUs in the core has yielded but OS has not requested
CEDE or CONFER, then consider this CPU to be preempted.
Correct detection of preempted CPUs is important for detecting idle
CPUs/cores in task scheduler.
Tested-by: Aboorva Devarajan <[email protected]>
Reviewed-by: Shrikanth Hegde <[email protected]>
Signed-off-by: Srikar Dronamraju <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://msgid.link/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions