Re: [PATCH v2 2/2] sched/fair: Advance global expiration when period timer is restarted

2018-06-20 Thread bsegall
Xunlei Pang writes: > When period gets restarted after some idle time, start_cfs_bandwidth() > doesn't update the expiration information, expire_cfs_rq_runtime() will > see cfs_rq->runtime_expires smaller than rq clock and go to the clock > drift logic, wasting needless cpu cycles on the schedule

[PATCH v2 2/2] sched/fair: Advance global expiration when period timer is restarted

2018-06-20 Thread Xunlei Pang
When period gets restarted after some idle time, start_cfs_bandwidth() doesn't update the expiration information, expire_cfs_rq_runtime() will see cfs_rq->runtime_expires smaller than rq clock and go to the clock drift logic, wasting needless cpu cycles on the scheduler hot path. Update the global