diff options
author | Chengming Zhou <[email protected]> | 2021-03-03 11:46:57 +0800 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2021-03-06 12:40:22 +0100 |
commit | 7fae6c8171d20ac55402930ee8ae760cf85dff7b (patch) | |
tree | 20d9f241fb2f7d4cff8517b0749acf3c8aca3b4d /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | e7fcd762282332f765af2035a9568fb126fa3c01 (diff) |
psi: Use ONCPU state tracking machinery to detect reclaim
Move the reclaim detection from the timer tick to the task state
tracking machinery using the recently added ONCPU state. And we
also add task psi_flags changes checking in the psi_task_switch()
optimization to update the parents properly.
In terms of performance and cost, this ONCPU task state tracking
is not cheaper than previous timer tick in aggregate. But the code is
simpler and shorter this way, so it's a maintainability win. And
Johannes did some testing with perf bench, the performace and cost
changes would be acceptable for real workloads.
Thanks to Johannes Weiner for pointing out the psi_task_switch()
optimization things and the clearer changelog.
Co-developed-by: Muchun Song <[email protected]>
Signed-off-by: Muchun Song <[email protected]>
Signed-off-by: Chengming Zhou <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Acked-by: Johannes Weiner <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions