From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Jones Subject: Re: [PATCH kvm-unit-tests 2/2] arm64: add micro-bench Date: Mon, 3 Sep 2018 16:59:40 +0200 Message-ID: <20180903145940.7dbpbooniudx3zpg@kamzik.brq.redhat.com> References: <20180830141733.21725-1-drjones@redhat.com> <20180830141733.21725-3-drjones@redhat.com> <20180903111236.GH4029@e113682-lin.lund.arm.com> <20180903121130.uhkkz2avwknhxobs@kamzik.brq.redhat.com> <20180903131431.GL4029@e113682-lin.lund.arm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: Christoffer Dall , kvm@vger.kernel.org, marc.zyngier@arm.com, ynorov@caviumnetworks.com, kvmarm@lists.cs.columbia.edu, shihwei@cs.columbia.edu To: Christoffer Dall Return-path: Content-Disposition: inline In-Reply-To: <20180903131431.GL4029@e113682-lin.lund.arm.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kvmarm-bounces@lists.cs.columbia.edu Sender: kvmarm-bounces@lists.cs.columbia.edu List-Id: kvm.vger.kernel.org On Mon, Sep 03, 2018 at 03:14:31PM +0200, Christoffer Dall wrote: > On Mon, Sep 03, 2018 at 02:11:30PM +0200, Andrew Jones wrote: > > On Mon, Sep 03, 2018 at 01:12:36PM +0200, Christoffer Dall wrote: > > > On Thu, Aug 30, 2018 at 04:17:33PM +0200, Andrew Jones wrote: > > > > From: Shih-Wei Li > > > > > > > > Here we provide the support for measuring various micro level > > > > operations on arm64. Measurements are currently obtained using > > > > timer counters. Further modifications in KVM will be required > > > > to support timestamping using cycle counters, as KVM now disables > > > > accesses to the PMU counters from the VM. > > > > > > > > Signed-off-by: Shih-Wei Li > > > > Signed-off-by: Christoffer Dall > > > > Signed-off-by: Andrew Jones > > > > > > Acked-by: Christoffer Dall > > > > Thanks Christoffer! While running this I just noticed a bug though. > > It seemed my hardware was super-duper fast, because I was missing... > > > > > > +#define PS_PER_SEC (1000 * 1000 * 1000 * 1000U) > > ...an 'L' here ^ > > > > I'll send a v2 with that fix now and also add your acked-by. > > > > I didn't verify the numeric aspects of the test this time around, but > looked at what the tests do and ran this on a couple of platforms. > > I figured we should merge this and we can fix small issues later if they > appear. Yeah, I agree. We should get it merged and then as people use it, we'll be able to better see what's wrong or how it can be improved. I think v2 is in decent shape now. Hopefully those that run these types of benchmarks will try it out and suggest/post improvements. Thanks, drew