Re: [PATCH v5 2/3] sched/cputime: Fix prev steal time accouting during cpu hotplug

2016-06-08 Thread Wanpeng Li
2016-06-08 18:01 GMT+08:00 Paolo Bonzini : > > > On 08/06/2016 05:05, Wanpeng Li wrote: >> From: Wanpeng Li >> >> Commit e9532e69b8d1 ("sched/cputime: Fix steal time accounting vs. CPU >> hotplug") >> set rq->prev_* to 0 after a cpu hotplug comes back in order to fix the >> scenario: >> >> | ste

Re: [PATCH v5 2/3] sched/cputime: Fix prev steal time accouting during cpu hotplug

2016-06-08 Thread Paolo Bonzini
On 08/06/2016 05:05, Wanpeng Li wrote: > From: Wanpeng Li > > Commit e9532e69b8d1 ("sched/cputime: Fix steal time accounting vs. CPU > hotplug") > set rq->prev_* to 0 after a cpu hotplug comes back in order to fix the > scenario: > > | steal is smaller than rq->prev_steal_time we end up wit

[PATCH v5 2/3] sched/cputime: Fix prev steal time accouting during cpu hotplug

2016-06-07 Thread Wanpeng Li
From: Wanpeng Li Commit e9532e69b8d1 ("sched/cputime: Fix steal time accounting vs. CPU hotplug") set rq->prev_* to 0 after a cpu hotplug comes back in order to fix the scenario: | steal is smaller than rq->prev_steal_time we end up with an insane large | value which then gets added to rq->pre