public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Christoffer Dall <christoffer.dall@linaro.org>
To: Andrew Jones <drjones@redhat.com>
Cc: Shih-Wei Li <shihwei@cs.columbia.edu>,
	kvm@vger.kernel.org, kvmarm@lists.cs.columbia.edu,
	Marc Zyngier <marc.zyngier@arm.com>,
	Paolo Bonzini <pbonzini@redhat.com>
Subject: Re: [kvm-unit-tests PATCH] Support micro operation measurement on arm64
Date: Thu, 21 Dec 2017 12:31:50 +0100	[thread overview]
Message-ID: <20171221113150.GC29301@cbox> (raw)
In-Reply-To: <20171220162254.dp5vok6lgbxyo5od@hawk.localdomain>

On Wed, Dec 20, 2017 at 05:22:54PM +0100, Andrew Jones wrote:
> On Tue, Dec 19, 2017 at 02:07:06PM +0100, Christoffer Dall wrote:
> > On Tue, Dec 19, 2017 at 01:11:09PM +0100, Andrew Jones wrote:
> > > On Tue, Dec 19, 2017 at 10:06:20AM +0100, Christoffer Dall wrote:
> > > > On Mon, Dec 18, 2017 at 03:58:49PM -0500, Shih-Wei Li wrote:
> > > > > 
> > > > > I have only tested the code by invoking test directly using make
> > > > > standalone like the following. I did notice that it took ~90 seconds
> > > > > to finish the test itself.
> > > > > ./"tests/micro-cost"
> > > 
> > > standalone still uses timeout with 90 seconds. So your hardware was just
> > > faster than mine, I guess :-)
> > > 
> > 
> > [indentation confusion?]
> 
> Actually I was just lazily replying to both you and Shih-Wei in the same
> mail.
> 

Ah, well the result had a clash with my OCD.

> > 
> > You're responding to something Shih-Wei wrote here, but I didn't
> > understand Shih-Wei's answer, and I think he ran the work on Seattle, so
> > not sure what the difference was.
> 
> It turns out the problem was just the opposite of what I say above. My
> hardware must be faster. While testing v2 of the patch I still got
> timeouts, so I decided to actually try to figure out what's going on.
> The eoi_test() test is so fast that c1 always equals c2, so we always
> assume an overflow occurred and keep trying to get a better sample.

Ah, I should have read this before responding to the other thread...

> 
> I guess we need two changes to the patch. We need to handle c1 == c2
> differently, probably just assume the measurement is smaller than the
> timer frequency and report 1 tick instead of zero. 

Yeah, things are different when using the generic timer counter instead
of the cycle counter in that sense.

Perhaps we should just have an initial assert of "is this thing on"
which does something that should register a moving count on even a slow
clocked arch counter, and then only check for overflow in the general
case?

> We should also
> have a way out of loop_test() when the test is constantly returning
> zero.
> 

Indeed, seems reasonable.

Thanks,
-Christoffer

  reply	other threads:[~2017-12-21 11:32 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-15 21:15 [kvm-unit-tests PATCH] Support micro operation measurement on arm64 Shih-Wei Li
2017-12-15 21:15 ` [kvm-unit-tests PATCH] arm64: add micro test Shih-Wei Li
2017-12-18 17:31   ` Yury Norov
2017-12-18 21:32     ` Shih-Wei Li
2017-12-19  9:12     ` Christoffer Dall
2017-12-19 10:05       ` Yury Norov
2017-12-19 13:04         ` Christoffer Dall
2017-12-18 19:10   ` Andrew Jones
2017-12-18 21:58     ` Shih-Wei Li
2017-12-19 12:00       ` Andrew Jones
2017-12-20 17:00     ` Andrew Jones
2018-05-01 14:57       ` Kalra, Ashish
2018-05-02  9:23         ` Marc Zyngier
2018-05-03 11:12           ` Kalra, Ashish
2018-05-03 16:24             ` Marc Zyngier
2018-05-03 18:08               ` Kalra, Ashish
2017-12-18 22:17   ` Kalra, Ashish
2017-12-18 22:18   ` Kalra, Ashish
2017-12-18 22:31   ` Kalra, Ashish
2017-12-18 18:14 ` [kvm-unit-tests PATCH] Support micro operation measurement on arm64 Andrew Jones
2017-12-18 20:58   ` Shih-Wei Li
2017-12-19  9:06     ` Christoffer Dall
2017-12-19 12:11       ` Andrew Jones
2017-12-19 13:07         ` Christoffer Dall
2017-12-20 16:22           ` Andrew Jones
2017-12-21 11:31             ` Christoffer Dall [this message]
2017-12-21 14:32               ` Andrew Jones

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=20171221113150.GC29301@cbox \
    --to=christoffer.dall@linaro.org \
    --cc=drjones@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=kvmarm@lists.cs.columbia.edu \
    --cc=marc.zyngier@arm.com \
    --cc=pbonzini@redhat.com \
    --cc=shihwei@cs.columbia.edu \
    /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