From: Ian Campbell <Ian.Campbell@citrix.com>
To: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Cc: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>,
"marc.zyngier@arm.com" <marc.zyngier@arm.com>,
"konrad.wilk@oracle.com" <konrad.wilk@oracle.com>,
"will.deacon@arm.com" <will.deacon@arm.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>
Subject: Re: [Xen-devel] [PATCH RFC v2 4/4] xen/arm: account for stolen ticks
Date: Tue, 7 May 2013 13:56:41 +0100 [thread overview]
Message-ID: <1367931401.26321.118.camel@zakaz.uk.xensource.com> (raw)
In-Reply-To: <alpine.DEB.2.02.1305071252350.4147@kaball.uk.xensource.com>
> > > @@ -301,6 +320,10 @@ static int __init xen_init_events(void)
> > >
> > > on_each_cpu(xen_percpu_init, NULL, 0);
> > >
> > > + pv_time_ops.steal_clock = xen_stolen_accounting;
> > > + static_key_slow_inc(¶virt_steal_enabled);
> > > + static_key_slow_inc(¶virt_steal_rq_enabled);
> >
> > We don't seem to do this on x86 -- is that a bug on x86 on Xen?
>
> On x86 we do all the accounting in do_stolen_accounting, called from our
> own interrupt handler (xen_timer_interrupt).
> I don't think we would gain anything by using the common infrastructure,
> we would actually loose the idle ticks accounting we do there.
>
> Speaking of which, I don't think that pv_time_ops.steal_clock would
> properly increase CPUTIME_IDLE the way we do in do_stolen_accounting.
>
> How much of an issue is that?
Doesn't the generic account_idle_time handle this?
Ian.
next prev parent reply other threads:[~2013-05-07 12:56 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-06 14:50 [PATCH RFC v2 0/4] xen/arm: CONFIG_PARAVIRT and stolen ticks accounting Stefano Stabellini
2013-05-06 14:51 ` [PATCH RFC v2 1/4] xen: move xen_setup_runstate_info and get_runstate_snapshot to drivers/xen/time.c Stefano Stabellini
2013-05-06 14:51 ` [PATCH RFC v2 2/4] arm: introduce CONFIG_PARAVIRT and pv_time_ops Stefano Stabellini
2013-05-07 9:23 ` [Xen-devel] " Ian Campbell
2013-05-07 12:15 ` Stefano Stabellini
2013-05-07 12:56 ` Ian Campbell
2013-05-07 13:34 ` Stefano Stabellini
2013-05-06 14:51 ` [PATCH RFC v2 3/4] kernel: missing include in cputime.c Stefano Stabellini
2013-05-06 14:51 ` [PATCH RFC v2 4/4] xen/arm: account for stolen ticks Stefano Stabellini
2013-05-07 9:17 ` [Xen-devel] " Ian Campbell
2013-05-07 11:58 ` Stefano Stabellini
2013-05-07 12:56 ` Ian Campbell [this message]
2013-05-07 13:49 ` Stefano Stabellini
2013-05-07 13:33 ` Konrad Rzeszutek Wilk
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=1367931401.26321.118.camel@zakaz.uk.xensource.com \
--to=ian.campbell@citrix.com \
--cc=konrad.wilk@oracle.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=marc.zyngier@arm.com \
--cc=stefano.stabellini@eu.citrix.com \
--cc=will.deacon@arm.com \
--cc=xen-devel@lists.xensource.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®