PSI idle-shutoff

From: Pavan Kondeti
Date: Tue Sep 13 2022 - 10:09:46 EST


Hi

The fact that psi_avgs_work()->collect_percpu_times()->get_recent_times()
run from a kworker thread, PSI_NONIDLE condition would be observed as
there is a RUNNING task. So we would always end up re-arming the work.

If the work is re-armed from the psi_avgs_work() it self, the backing off
logic in psi_task_change() (will be moved to psi_task_switch soon) can't
help. The work is already scheduled. so we don't do anything there.

Probably I am missing some thing here. Can you please clarify how we
shut off re-arming the psi avg work?

Thanks,
Pavan