[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] How to measure guest memory access (qemu_ld/qemu_st) ti
From: |
Lluís Vilanova |
Subject: |
Re: [Qemu-devel] How to measure guest memory access (qemu_ld/qemu_st) time? |
Date: |
Fri, 15 Jun 2012 22:10:03 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) |
Laurent Desnogues writes:
> On Fri, Jun 15, 2012 at 12:30 AM, Lluís Vilanova <address@hidden> wrote:
> [...]
>> Now that I think of it, you will have problems generating code to surround
>> each
>> qemu_ld/st with a lightweight mechanism to get the time. In x86 it would be
>> rdtsc, but you want to generate a host rdtsc instruction inside the code
>> generated by QEMU's TCG, so you should also have to hack TCG (or the code
>> generation pointers) to issue an rdtsc instruction.
> Even rdtsc would introduce enough noise that it wouldn't be reliable
> for such a micro measurement: as far as I understand it, this instruction
> can be reordered, so you need to flush the pipeline before issuing it.
> Intel has a document about that:
> download.intel.com/embedded/software/IA/324264.pdf
> The overhead of their proposed method is so high that it's likely it
> would take longer than the execution of the fast path itself.
> IMHO a mix of YeongKyoon Lee way to count ld/st and comparison
> between user mode and softmmu still seems to be the best approach
> (well unless you have access to a cycle accurate simulator :-).
Ah, true; I forgot about the architectural implications. Sometimes you just
assume the nice in-order world :)
Lluis
--
"And it's much the same thing with knowledge, for whenever you learn
something new, the whole world becomes that much richer."
-- The Princess of Pure Reason, as told by Norton Juster in The Phantom
Tollbooth
- [Qemu-devel] How to measure guest memory access (qemu_ld/qemu_st) time?, Wei-Ren Chen, 2012/06/12
- Re: [Qemu-devel] How to measure guest memory access (qemu_ld/qemu_st) time?, Laurent Desnogues, 2012/06/13
- Re: [Qemu-devel] How to measure guest memory access (qemu_ld/qemu_st) time?, Wei-Ren Chen, 2012/06/18
- Re: [Qemu-devel] How to measure guest memory access (qemu_ld/qemu_st) time?, Blue Swirl, 2012/06/18
- Re: [Qemu-devel] How to measure guest memory access (qemu_ld/qemu_st) time?, Lluís Vilanova, 2012/06/18
- Re: [Qemu-devel] How to measure guest memory access (qemu_ld/qemu_st) time?, Wei-Ren Chen, 2012/06/19
- Re: [Qemu-devel] How to measure guest memory access (qemu_ld/qemu_st) time?, Michael.Kang, 2012/06/19
- Re: [Qemu-devel] How to measure guest memory access (qemu_ld/qemu_st) time?, Michael.Kang, 2012/06/19
- Re: [Qemu-devel] How to measure guest memory access (qemu_ld/qemu_st) time?, Lluís Vilanova, 2012/06/19
- Re: [Qemu-devel] How to measure guest memory access (qemu_ld/qemu_st) time?, Lluís Vilanova, 2012/06/18
- Message not available
- Message not available
- Message not available
- Re: [Qemu-devel] How to measure guest memory access (qemu_ld/qemu_st) time?, Orit Wasserman, 2012/06/19
Re: [Qemu-devel] How to measure guest memory access (qemu_ld/qemu_st) time?, Wei-Ren Chen, 2012/06/13