All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dario Faggioli <dario.faggioli@citrix.com>
To: Julien Grall <julien.grall@arm.com>,
	Stefano Stabellini <sstabellini@kernel.org>,
	xen-devel@lists.xen.org
Cc: george.dunlap@eu.citrix.com, edgar.iglesias@xilinx.com, nd@arm.com
Subject: Re: Xen on ARM IRQ latency and scheduler overhead
Date: Sat, 18 Feb 2017 01:59:11 +0100	[thread overview]
Message-ID: <1487379551.6732.117.camel@citrix.com> (raw)
In-Reply-To: <69783c6d-1e65-3fa4-8b71-8c99d9e23eb6@arm.com>


[-- Attachment #1.1: Type: text/plain, Size: 2087 bytes --]

On Fri, 2017-02-17 at 19:44 +0000, Julien Grall wrote:
> On 02/17/2017 06:40 PM, Dario Faggioli wrote:
> > Does ARM
> > have frequency scaling (I did remember something on xen-devel, but
> > I am
> > not sure whether it landed upstream)?
> 
> I guess you mean the series sent by globallogic ([1])? If so, it was 
> never upstreamed.
> 
Yep, that one. I was quite sure it did not went in, but was in hurry,
and could not double check the code. Sorry.

> However the frequency scaling may depend on the processor used and 
> sometimes implemented using big.LITTLE (e.g the task has to switch).
> 
> I am not sure why it would matter in this case.
> 
It's hard to tell whether or not (and if yes, how much) it matter in
this specific case. In general, when I was working on squeezing latency
on bare-metal Linux, disabling scaling was one of the steps.

It depends on quite a few different factors, but, roughly, during the
time you're idle waiting for the interrupt, you're running at low
frequency.

When the interrupt comes, what happens depends on the governor, but you
usually don't immediately jump to the highest frequency, because that
happens gradually. And if all you do is something quick, in response to
the timer interrupt (like in this and similar cases), you most likely
end up doing that running at low frequency, which may impact latency
(at least the latency of the completion of the work that the timer
triggered).

But I was also referring to the fact that the app is using some
hardware counters, and a frequency value for updating them, and for
converting their value to time. So I was wondering how the fact that
frequency may be changing dynamically may interact with that (and
that's because I'm pretty ignorant about ARM internals, I know :-/).

Regards,
Dario
-- 
<<This happens because I choose it to happen!>> (Raistlin Majere)
-----------------------------------------------------------------
Dario Faggioli, Ph.D, http://about.me/dario.faggioli
Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK)

[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

[-- Attachment #2: Type: text/plain, Size: 127 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

  parent reply	other threads:[~2017-02-18  0:59 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-10  0:54 Xen on ARM IRQ latency and scheduler overhead Stefano Stabellini
2017-02-10  8:40 ` Dario Faggioli
2017-02-10 18:32   ` Stefano Stabellini
2017-02-16 12:20     ` Dario Faggioli
2017-02-16 19:52       ` Stefano Stabellini
2017-02-16 23:07         ` Stefano Stabellini
2017-02-17 11:02           ` Dario Faggioli
2017-02-17 19:34             ` Julien Grall
2017-02-17 23:14               ` Stefano Stabellini
2017-02-18  0:02                 ` Stefano Stabellini
2017-02-18  0:47                   ` Dario Faggioli
2017-02-17 18:40 ` Dario Faggioli
2017-02-17 19:44   ` Julien Grall
2017-02-17 22:55     ` Stefano Stabellini
2017-02-18  0:59     ` Dario Faggioli [this message]
2017-02-20 12:18       ` Punit Agrawal
2017-02-18  0:41   ` Stefano Stabellini
2017-02-20 11:04     ` George Dunlap
2017-02-20 11:40       ` Dario Faggioli

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=1487379551.6732.117.camel@citrix.com \
    --to=dario.faggioli@citrix.com \
    --cc=edgar.iglesias@xilinx.com \
    --cc=george.dunlap@eu.citrix.com \
    --cc=julien.grall@arm.com \
    --cc=nd@arm.com \
    --cc=sstabellini@kernel.org \
    --cc=xen-devel@lists.xen.org \
    /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.