All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wanpeng Li <kernellwp@gmail.com>
To: linux-kernel@vger.kernel.org, kvm@vger.kernel.org
Cc: Wanpeng Li <wanpeng.li@hotmail.com>
Subject: [PATCH v6 0/3] Sched, KVM: st: Add steal time support to full dynticks CPU time accounting
Date: Mon, 13 Jun 2016 18:32:43 +0800	[thread overview]
Message-ID: <1465813966-3116-1-git-send-email-wanpeng.li@hotmail.com> (raw)

Periodic/NOHZ idle which don't use vtime have logic account steal time,
however, vtime(depends on context tracking) which is just used in full 
dynticks doesn't account steal time, this patchset adds the steal time 
acccount support in vtime which will be used in full dynticks guest.

Patch 1 and patch 2 fix steal clock warp and prev steal time account 
during cpu hotplug bugs.
Patch 3 adds the steal time support to full dynticks CPU time accounting.

N.B. This version of patchset drops previous Acked-by and Reviewed-by since 
they are different from earlier version. :)

v5 -> v6:
 * improve commit message of patch 2/3, 3/3
 * fix account st twice 
v4 -> v5:
 * improve commit message of patch 1/3
 * revert commit e9532e69b8d1 
 * apply same logic to account_idle_time, so change get_vtime_delta instead
v3 -> v4:
 * fix grammar errors, thanks Ingo
 * cleanup fragile codes, thanks Ingo
v2 -> v3:
 * fix the root cause
 * convert steal time jiffies to cputime
v1 -> v2:
 * update patch subject, description and comments
 * deal with the case where steal time suddenly increases by a ludicrous amount
 * fix divide zero bug, thanks Rik

Wanpeng Li (3):
  KVM: fix steal clock warp during guest cpu hotplug
  sched/cputime: Fix prev steal time accouting during cpu hotplug
  sched/cputime: Add steal time support to full dynticks CPU time
    accounting

 arch/x86/kernel/kvm.c  |  2 --
 kernel/sched/core.c    |  1 -
 kernel/sched/cputime.c | 16 +++++++++-------
 kernel/sched/sched.h   | 13 -------------
 4 files changed, 9 insertions(+), 23 deletions(-)

-- 
1.9.1

             reply	other threads:[~2016-06-13 10:32 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-13 10:32 Wanpeng Li [this message]
2016-06-13 10:32 ` [PATCH v6 1/3] KVM: fix steal clock warp during guest cpu hotplug Wanpeng Li
2016-06-13 10:44   ` Paolo Bonzini
2016-06-13 11:28     ` Peter Zijlstra
2016-06-13 11:31     ` Wanpeng Li
2016-06-14 11:26   ` [tip:sched/core] KVM: Fix steal clock warp during guest CPU hotplug tip-bot for Wanpeng Li
2016-06-13 10:32 ` [PATCH v6 2/3] sched/cputime: Fix prev steal time accouting during cpu hotplug Wanpeng Li
2016-06-13 10:44   ` Paolo Bonzini
2016-06-14 11:26   ` [tip:sched/core] sched/cputime: Fix prev steal time accouting during CPU hotplug tip-bot for Wanpeng Li
2016-06-13 10:32 ` [PATCH v6 3/3] sched/cputime: Add steal time support to full dynticks CPU time accounting Wanpeng Li
2016-06-13 10:44   ` Paolo Bonzini
2016-06-14 11:27   ` [tip:sched/core] " tip-bot for Wanpeng Li
2016-06-13 11:28 ` [PATCH v6 0/3] Sched, KVM: st: " Wanpeng Li

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1465813966-3116-1-git-send-email-wanpeng.li@hotmail.com \
    --to=kernellwp@gmail.com \
    --cc=kvm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=wanpeng.li@hotmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.