Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1420549

Re: [PATCH v5 3/3] sched/cputime: Add steal time support to full dynticks CPU time accounting

From Paolo Bonzini <pbonzini@redhat.com>
Newsgroups linux.kernel
Subject Re: [PATCH v5 3/3] sched/cputime: Add steal time support to full dynticks CPU time accounting
Date 2016-06-13 10:00 +0200
Message-ID <rJuWR-3i5-15@gated-at.bofh.it> (permalink)
References <rHC2t-2WJ-3@gated-at.bofh.it> <rHC2t-2WJ-1@gated-at.bofh.it> <rHIKC-7iL-31@gated-at.bofh.it> <rJqTf-GE-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw



On 13/06/2016 05:38, Wanpeng Li wrote:
> + delta_jiffies = jiffies_to_cputime(now - tsk->vtime_snap);
> + steal_jiffies = jiffies_to_cputime(steal_account_process_tick(delta_jiffies));

Without jiffies_to_cputime here.  Apart from this, yes, this is what I
meant.

Paolo

>   WARN_ON_ONCE(tsk->vtime_snap_whence == VTIME_INACTIVE);
>   tsk->vtime_snap = now;
> 
> - return jiffies_to_cputime(delta);
> + return jiffies_to_cputime(delta_jiffies - steal_jiffies);

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Re: [PATCH v5 3/3] sched/cputime: Add steal time support to full  dynticks CPU time accounting Wanpeng Li <kernellwp@gmail.com> - 2016-06-13 05:40 +0200
  Re: [PATCH v5 3/3] sched/cputime: Add steal time support to full  dynticks CPU time accounting Paolo Bonzini <pbonzini@redhat.com> - 2016-06-13 10:00 +0200
    Re: [PATCH v5 3/3] sched/cputime: Add steal time support to full  dynticks CPU time accounting Wanpeng Li <kernellwp@gmail.com> - 2016-06-13 10:10 +0200

csiph-web