|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] Re: Performance overhead of paravirt_ops on native identifie
To: |
"Xin, Xiaohui" <xiaohui.xin@xxxxxxxxx> |
Subject: |
[Xen-devel] Re: Performance overhead of paravirt_ops on native identified |
From: |
"H. Peter Anvin" <hpa@xxxxxxxxx> |
Date: |
Fri, 22 May 2009 09:33:35 -0700 |
Cc: |
Nick Piggin <npiggin@xxxxxxx>, Jeremy Fitzhardinge <jeremy@xxxxxxxx>, Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>, Chuck Ebbert <cebbert@xxxxxxxxxx>, Linux Kernel Mailing List <linux-kernel@xxxxxxxxxxxxxxx>, "Li, Xin" <xin.li@xxxxxxxxx>, "Nakajima, Jun" <jun.nakajima@xxxxxxxxx>, Ingo Molnar <mingo@xxxxxxx> |
Delivery-date: |
Fri, 22 May 2009 09:34:18 -0700 |
Envelope-to: |
www-data@xxxxxxxxxxxxxxxxxxx |
In-reply-to: |
<C85CEDA13AB1CF4D9D597824A86D2B9005760A9940@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> |
List-help: |
<mailto:xen-devel-request@lists.xensource.com?subject=help> |
List-id: |
Xen developer discussion <xen-devel.lists.xensource.com> |
List-post: |
<mailto:xen-devel@lists.xensource.com> |
List-subscribe: |
<http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe> |
List-unsubscribe: |
<http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe> |
References: |
<4A0B62F7.5030802@xxxxxxxx> <20090521184233.3c3e97ad@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx> <4A15DA4E.2090505@xxxxxxxx> <C85CEDA13AB1CF4D9D597824A86D2B9005760A96DA@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <4A1629BA.9070309@xxxxxxxx> <C85CEDA13AB1CF4D9D597824A86D2B9005760A9940@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> |
Sender: |
xen-devel-bounces@xxxxxxxxxxxxxxxxxxx |
User-agent: |
Thunderbird 2.0.0.14 (X11/20080501) |
Xin, Xiaohui wrote:
> What I mean is that if the binary of _spin_lock is like this:
> (gdb) disassemble _spin_lock
> Dump of assembler code for function _spin_lock:
> 0xffffffff80497c0f <_spin_lock+0>: mov 1252634(%rip),%r11 #
> #0xffffffff805c9930 <test_lock_ops+16>
> 0xffffffff80497c16 <_spin_lock+7>: jmpq *%r11
> End of assembler dump.
> (gdb) disassemble
>
> In this situation the binary contains a jump, the overhead is more than the
> call.
>
That's an indirect jump, though. I don't think anyone was suggesting
using an indirect jump; the final patched version should be a direct
jump (instead of a direct call.)
I can see how indirect jumps might be slower, since they are probably
not optimized as aggressively in hardware as indirect calls -- indirect
jumps are generally used for switch tables, which often have low
predictability, whereas indirect calls are generally used for method
calls, which are (a) incredibly important for OOP languages, and (b)
generally highly predictable on the dynamic scale.
However, direct jumps and calls don't need prediction at all (although
of course rets do.)
-hpa
--
H. Peter Anvin, Intel Open Source Technology Center
I work for Intel. I don't speak on their behalf.
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- Re: [Xen-devel] Performance overhead of paravirt_ops on nativeidentified, (continued)
- [Xen-devel] [tip:x86/urgent] x86: Fix performance regression caused by paravirt_ops on native kernels, tip-bot for Jeremy Fitzhardinge
- [Xen-devel] Re: Performance overhead of paravirt_ops on native identified, Chuck Ebbert
- [Xen-devel] Re: Performance overhead of paravirt_ops on native identified, Jeremy Fitzhardinge
- [Xen-devel] Re: Performance overhead of paravirt_ops on native identified, H. Peter Anvin
- [Xen-devel] RE: Performance overhead of paravirt_ops on native identified, Xin, Xiaohui
- [Xen-devel] Re: Performance overhead of paravirt_ops on native identified, H. Peter Anvin
- [Xen-devel] Re: Performance overhead of paravirt_ops on native identified, Jeremy Fitzhardinge
- [Xen-devel] RE: Performance overhead of paravirt_ops on native identified, Xin, Xiaohui
- [Xen-devel] Re: Performance overhead of paravirt_ops on native identified,
H. Peter Anvin <=
- [Xen-devel] Re: Performance overhead of paravirt_ops on native identified, Jeremy Fitzhardinge
- [Xen-devel] Re: Performance overhead of paravirt_ops on native identified, H. Peter Anvin
|
|
|
|
|