On Wed, Mar 03, 2021 at 11:46:57AM +0800, Chengming Zhou wrote: > 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 ? > Signed-off-by: Muchun Song <[email protected]> > Signed-off-by: Chengming Zhou <[email protected]>
- [PATCH v2 0/4] psi: Add PSI_CPU_FULL state an... Chengming Zhou
- [PATCH v2 4/4] psi: Optimize task switch... Chengming Zhou
- Re: [PATCH v2 4/4] psi: Optimize tas... Johannes Weiner
- Re: [PATCH v2 4/4] psi: Optimize tas... Peter Zijlstra
- Re: [External] Re: [PATCH v2 4/4... Muchun Song
- [tip: sched/core] psi: Optimize task... tip-bot2 for Chengming Zhou
- [PATCH v2 2/4] psi: Use ONCPU state trac... Chengming Zhou
- Re: [PATCH v2 2/4] psi: Use ONCPU st... Johannes Weiner
- Re: [PATCH v2 2/4] psi: Use ONCPU st... Peter Zijlstra
- [tip: sched/core] psi: Use ONCPU sta... tip-bot2 for Chengming Zhou
- [PATCH v2 1/4] psi: Add PSI_CPU_FULL sta... Chengming Zhou
- [tip: sched/core] psi: Add PSI_CPU_F... tip-bot2 for Chengming Zhou
- [PATCH v2 3/4] psi: pressure states are ... Chengming Zhou
- [tip: sched/core] psi: Pressure stat... tip-bot2 for Johannes Weiner
- Re: [PATCH v2 0/4] psi: Add PSI_CPU_FULL... Johannes Weiner
- Re: [PATCH v2 0/4] psi: Add PSI_CPU_... Peter Zijlstra
- Re: [PATCH v2 0/4] psi: Add PSI_... Peter Zijlstra
- Re: [PATCH v2 0/4] psi: Add ... Johannes Weiner
- Re: [External] Re: [PATCH v2... Chengming Zhou

