Re: [PATCH v3] sched/cputime: add steal time support to full dynticks CPU time accounting

From: Rik van Riel
Date: Tue May 24 2016 - 15:22:56 EST


On Wed, 2016-05-18 at 20:27 +0800, Wanpeng Li wrote:
> From: Wanpeng Li <wanpeng.li@xxxxxxxxxxx>
>
> This patch adds steal guest time support to full dynticks CPUÂ
> time accounting. After 'commit ff9a9b4c4334 ("sched, time: SwitchÂ
> VIRT_CPU_ACCOUNTING_GEN to jiffy granularity")', time is jiffyÂ
> based sampling even if it's still listened to ring boundaries, soÂ
> steal_account_process_tick() is reused to account how much 'ticks'Â
> are steal time after the last accumulation.Â
>
> Suggested-by: Rik van Riel <riel@xxxxxxxxxx>
> Cc: Ingo Molnar <mingo@xxxxxxxxxx>
> Cc: Peter Zijlstra (Intel) <peterz@xxxxxxxxxxxxx>
> Cc: Rik van Riel <riel@xxxxxxxxxx>
> Cc: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
> Cc: Frederic Weisbecker <fweisbec@xxxxxxxxx>
> Cc: Paolo Bonzini <pbonzini@xxxxxxxxxx>
> Cc: Radim <rkrcmar@xxxxxxxxxx>
> Signed-off-by: Wanpeng Li <wanpeng.li@xxxxxxxxxxx>

This also nicely fixes upÂf9c904b7613b ("sched/cputime:Â
Fix steal_account_process_tick() to always return jiffies"),
which relies on a bool function returning a certain number
of jiffies :)

Reviewed-by: Rik van Riel <riel@xxxxxxxxxx>

--
All rights reversed

Attachment: signature.asc
Description: This is a digitally signed message part