From: George Dunlap <george.dunlap@eu.citrix.com>
To: Tim Deegan <tim@xen.org>
Cc: Andres Lagar-Cavilla <andres.lagarcavilla@gmail.com>,
Peter Maloney <peter.maloney@brockmann-consult.de>,
"suravee.suthikulpanit@amd.com" <suravee.suthikulpanit@amd.com>,
Jan Beulich <JBeulich@suse.com>,
"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>
Subject: Re: Xen 4.3 development update
Date: Fri, 3 May 2013 17:41:35 +0100 [thread overview]
Message-ID: <5183E8BF.7030706@eu.citrix.com> (raw)
In-Reply-To: <20130502154856.GO65547@ocelot.phlegethon.org>
On 02/05/13 16:48, Tim Deegan wrote:
> At 15:21 +0200 on 29 Apr (1367248894), Peter Maloney wrote:
>> On 04/04/2013 07:05 PM, Tim Deegan wrote:
>>> Also, if there is still a bad slowdown, caused by the p2m lookups, this
>>> might help a little bit:
>>>
>>> diff --git a/xen/arch/x86/hvm/hvm.c b/xen/arch/x86/hvm/hvm.c
>>> index 38e87ce..7bd8646 100644
>>> --- a/xen/arch/x86/hvm/hvm.c
>>> +++ b/xen/arch/x86/hvm/hvm.c
>>> @@ -1361,6 +1361,18 @@ int hvm_hap_nested_page_fault(paddr_t gpa,
>>> }
>>> }
>>>
>>> +
>>> + /* For the benefit of 32-bit WinXP (& older Windows) on AMD CPUs,
>>> + * a fast path for LAPIC accesses, skipping the p2m lookup. */
>>> + if ( !nestedhvm_vcpu_in_guestmode(v)
>>> + && gfn == vlapic_base_address(vcpu_vlapic(current)) >> PAGE_SHIFT )
>>> + {
>>> + if ( !handle_mmio() )
>>> + hvm_inject_hw_exception(TRAP_gp_fault, 0);
>>> + rc = 1;
>>> + goto out;
>>> + }
>>> +
>>> p2m = p2m_get_hostp2m(v->domain);
>>> mfn = get_gfn_type_access(p2m, gfn, &p2mt, &p2ma,
>>> P2M_ALLOC | (access_w ? P2M_UNSHARE : 0), NULL);
>> This patch (applied to 4.2.2) has a very large improvement on my box
>> (AMD FX-8150) and WinXP 32 bit.
> Hmm - I expected it to be only a mild improvement. How about this one,
> which puts in the same shortcut in another place as well? I don't think
> it will be much better than the last one, but it's worth a try.
So I dusted off my old perf testing scripts and added in one to measure
boot performance.
Below are boot times, from after "xl create" returns, until a specific
python daemon running in the VM starts responding to requests. So lower
is better.
There are a number of places where there can be a few seconds of noise
either way, but on the whole the tests seem fairly repeatable.
I ran this with w2k3eesp2 and with winxpsp3, using some of the
auto-install test images made for the XenServer regression testing. All
of them are using a flat file disk backend with qemu-traditional.
Results are in order of commits:
Xen 4.1:
w2k3: 43 34 34 33 34
winxp: 110 111 111 110 112
Xen 4.2:
w2k3: 34 44 45 45 45
winxp: 203 221 210 211 200
Xen-unstable w/ RTC fix:
w2k3: 43 44 44 45 44
winxp: 268 275 265 276 265
Xen-unstable with rtc fix + this "fast lapic" patch:
w2k3: 43 45 44 45 45
winxp: 224 232 232 232 232
So w2k3 boots fairly quickly anyway; has a 50% slow-down when moving
from 4.1 to 4.2, and no discernible change after that.
winxp boots fairly slowly; nearly doubles in speed for 4.2, and gets
even worse for xen-unstable. The patch is a measurable improvement, but
still nowhere near 4.1, or even 4.2.
On the whole however -- I'm not sure that boot time by itself is a
blocker. If the problem really is primarily the "eager TPR" issue for
Windows XP, then I'm not terribly motivated either: the Citrix PV
drivers patch Windows XP to modify the routine to be lazy (like w2k3);
there is hardware available which allows the TPR to be virtualized; and
there are plenty of Windows-based OSes available which do not have this
problem.
I'll be doing some more workload-based benchmarks (probably starting
with the Windows ddk example build) to see if there are other issues I
turn up.
-George
next prev parent reply other threads:[~2013-05-03 16:41 UTC|newest]
Thread overview: 193+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-02 14:07 Xen 4.3 development update George Dunlap
2013-04-02 15:42 ` Jan Beulich
2013-04-02 15:45 ` Suravee Suthikulanit
2013-04-02 15:51 ` George Dunlap
2013-04-02 16:34 ` Tim Deegan
2013-04-02 16:47 ` Suravee Suthikulpanit
2013-04-04 10:57 ` Tim Deegan
2013-04-02 17:06 ` Suravee Suthikulpanit
2013-04-02 23:48 ` Suravee Suthikulanit
2013-04-03 10:51 ` George Dunlap
2013-04-04 15:29 ` Suravee Suthikulanit
2013-04-04 17:14 ` Suravee Suthikulanit
2013-04-05 13:43 ` George Dunlap
2013-04-03 8:37 ` Christoph Egger
2013-04-03 10:49 ` George Dunlap
2013-04-04 12:19 ` xenalyze (was: Re: Xen 4.3 development update) Christoph Egger
2013-04-04 12:51 ` xenalyze George Dunlap
2013-04-03 7:27 ` Xen 4.3 development update Jan Beulich
2013-04-03 10:53 ` George Dunlap
2013-04-03 15:34 ` Andres Lagar-Cavilla
2013-04-04 15:23 ` Tim Deegan
2013-04-04 17:05 ` Tim Deegan
2013-04-29 13:21 ` Peter Maloney
2013-05-02 15:48 ` Tim Deegan
2013-05-03 16:41 ` George Dunlap [this message]
2013-05-03 16:59 ` Tim Deegan
2013-05-04 10:47 ` Pasi Kärkkäinen
2013-05-07 14:55 ` George Dunlap
2013-05-07 22:23 ` James Harper
2013-05-08 9:00 ` George Dunlap
[not found] ` <6035A0D088A63A46850C3988ED045A4B57B45CBE@BITCOM1.int.sbss.com.au>
[not found] ` <518A5143.5090308@eu.citrix.com>
[not found] ` <518B6B36.3050404@eu.citrix.com>
2013-05-12 7:22 ` Suspicious URL:Re: " James Harper
2013-05-07 13:15 ` George Dunlap
2013-05-07 15:35 ` George Dunlap
2013-05-07 13:56 ` Pasi Kärkkäinen
2013-05-07 14:57 ` George Dunlap
2013-04-25 15:20 ` George Dunlap
2013-04-25 15:26 ` George Dunlap
2013-04-25 15:46 ` Tim Deegan
2013-04-25 15:50 ` George Dunlap
2013-05-03 9:35 ` George Dunlap
2013-04-25 13:51 ` Xen 4.3 development update / winxp AMD performance regression Pasi Kärkkäinen
2013-04-25 14:00 ` George Dunlap
2013-04-25 14:24 ` Andres Lagar-Cavilla
2013-04-28 10:18 ` Peter Maloney
2013-04-29 9:01 ` George Dunlap
2013-04-09 2:03 ` Xen 4.3 development update Dario Faggioli
2013-04-10 12:12 ` Ian Campbell
2013-04-10 12:15 ` Ian Campbell
2013-04-10 16:41 ` Konrad Rzeszutek Wilk
2013-04-11 9:28 ` George Dunlap
2013-04-11 9:33 ` Ian Campbell
2013-04-11 9:43 ` George Dunlap
2013-04-11 9:49 ` Ian Campbell
-- strict thread matches above, loose matches on Subject: below --
2013-06-27 13:54 George Dunlap
2013-06-27 14:05 ` Jan Beulich
2013-06-27 14:06 ` George Dunlap
2013-06-28 15:20 ` Suravee Suthikulanit
2013-06-28 15:30 ` Jan Beulich
2013-06-28 15:36 ` jacek burghardt
2013-06-28 15:38 ` George Dunlap
2013-06-17 10:58 George Dunlap
2013-06-17 11:12 ` George Dunlap
2013-06-17 11:13 ` Jan Beulich
2013-06-20 15:50 ` Jan Beulich
2013-06-21 8:08 ` Zhang, Yang Z
2013-06-21 8:29 ` Jan Beulich
2013-06-17 11:16 ` George Dunlap
2013-06-17 11:25 ` Ian Campbell
2013-06-17 11:17 ` Gordan Bobic
2013-06-17 11:21 ` George Dunlap
2013-06-17 12:35 ` Fabio Fantoni
2013-06-17 12:38 ` George Dunlap
2013-06-17 13:24 ` Konrad Rzeszutek Wilk
2013-06-17 13:29 ` George Dunlap
2013-06-17 16:16 ` Alex Bligh
2013-06-17 20:39 ` Konrad Rzeszutek Wilk
2013-06-10 16:04 George Dunlap
2013-06-10 16:10 ` George Dunlap
2013-06-10 16:16 ` Ian Jackson
2013-06-10 16:20 ` Andrew Cooper
2013-06-11 7:12 ` Jan Beulich
2013-06-11 12:11 ` George Dunlap
2013-06-11 13:53 ` Stefano Stabellini
2013-06-11 14:00 ` Ian Campbell
2013-06-11 13:54 ` Ian Campbell
2013-06-17 7:37 ` Jan Beulich
2013-05-10 10:26 George Dunlap
2013-05-10 10:39 ` Jan Beulich
2013-05-10 10:55 ` George Dunlap
2013-05-10 10:54 ` George Dunlap
2013-05-10 11:33 ` Jan Beulich
2013-05-10 10:57 ` George Dunlap
2013-05-10 10:59 ` George Dunlap
2013-05-10 11:00 ` George Dunlap
2013-05-10 11:08 ` Anthony PERARD
2013-05-10 11:24 ` Anthony PERARD
2013-05-10 14:30 ` Fabio Fantoni
2013-05-13 10:26 ` Ian Campbell
2013-05-13 14:53 ` Fabio Fantoni
2013-05-13 15:08 ` George Dunlap
2013-05-13 15:15 ` Ian Campbell
2013-05-13 15:39 ` Anthony PERARD
2013-05-13 15:47 ` Ian Campbell
2013-05-14 9:58 ` Fabio Fantoni
2013-05-14 14:13 ` Pasi Kärkkäinen
2013-05-14 9:39 ` Fabio Fantoni
2013-05-10 11:10 ` Ian Campbell
2013-04-30 11:26 George Dunlap
2013-04-30 11:27 ` George Dunlap
2013-04-30 11:34 ` Jan Beulich
2013-03-05 12:44 George Dunlap
2013-03-05 14:32 ` Jan Beulich
2013-03-05 21:27 ` Suravee Suthikulpanit
2013-03-06 12:05 ` George Dunlap
2013-03-05 14:36 ` Jan Beulich
2013-03-05 14:45 ` David Vrabel
2013-03-05 14:57 ` David Vrabel
2013-03-05 16:33 ` Tim Deegan
2013-03-05 16:36 ` Ian Campbell
2013-03-05 16:43 ` Tim Deegan
2013-03-06 11:46 ` George Dunlap
2013-03-06 17:01 ` Dominic Curran
2013-03-06 17:15 ` George Dunlap
2013-03-06 17:15 ` George Dunlap
2013-03-06 18:54 ` Dominic Curran
2013-03-07 10:18 ` George Dunlap
2013-03-05 18:22 ` Keir Fraser
2013-03-06 3:00 ` Ian Campbell
2013-03-05 14:40 ` Jan Beulich
2013-03-05 15:51 ` Konrad Rzeszutek Wilk
2013-03-05 16:07 ` Jan Beulich
2013-03-06 11:44 ` George Dunlap
2013-03-05 16:12 ` Konrad Rzeszutek Wilk
2013-03-06 8:44 ` Daniel Kiper
2013-03-06 11:52 ` George Dunlap
2013-03-06 19:50 ` Konrad Rzeszutek Wilk
2013-03-07 1:40 ` Mukesh Rathor
2013-03-05 19:13 ` Roger Pau Monné
2013-03-06 12:03 ` George Dunlap
2013-03-06 11:14 ` Wei Liu
2013-03-06 14:47 ` George Dunlap
2013-03-08 10:51 ` Paolo Bonzini
2013-03-08 17:17 ` Roger Pau Monné
2012-10-01 16:25 George Dunlap
2012-10-01 16:42 ` Pasi Kärkkäinen
2012-10-01 17:01 ` Igor Kozhukhov
2012-10-02 9:26 ` George Dunlap
2012-10-02 10:07 ` Pasi Kärkkäinen
2012-10-02 14:26 ` Ian Jackson
2012-10-02 14:32 ` Ian Campbell
2012-10-02 14:50 ` Pasi Kärkkäinen
2012-10-02 14:56 ` Ian Campbell
2012-10-02 15:16 ` Pasi Kärkkäinen
2012-10-02 14:41 ` Pasi Kärkkäinen
2012-10-02 9:29 ` George Dunlap
2012-10-02 17:34 ` Mukesh Rathor
2012-10-02 9:35 ` Jan Beulich
2012-09-19 16:58 George Dunlap
2012-09-19 17:18 ` Philipp Hahn
2012-09-20 10:24 ` George Dunlap
2012-09-20 11:40 ` Philipp Hahn
2012-09-20 21:20 ` Jim Fehlig
2012-09-21 8:48 ` Ian Campbell
2012-09-21 10:40 ` George Dunlap
2012-09-21 11:07 ` George Dunlap
2012-09-26 2:07 ` Jim Fehlig
2012-10-04 8:34 ` Ian Campbell
2012-10-04 22:29 ` Jim Fehlig
2012-10-05 9:28 ` Ian Campbell
2012-09-19 17:22 ` Konrad Rzeszutek Wilk
2012-09-20 7:03 ` Jan Beulich
2012-09-20 11:17 ` George Dunlap
2012-09-20 11:26 ` Jan Beulich
2012-09-20 11:33 ` George Dunlap
2012-09-20 11:44 ` Jan Beulich
2012-09-20 14:37 ` George Dunlap
2012-09-21 3:18 ` Matt Wilson
2012-09-26 9:36 ` George Dunlap
2012-09-26 10:25 ` Thanos Makatos
2012-09-26 17:15 ` Matt Wilson
2012-09-26 18:59 ` Ian Campbell
2012-09-27 6:47 ` Matt Wilson
2012-09-20 9:38 ` Oliver Chick
2012-09-20 9:53 ` Jean Guyader
2012-09-20 10:51 ` Stefano Panella
2012-09-20 11:19 ` George Dunlap
2012-09-20 15:38 ` Attilio Rao
2012-09-20 15:46 ` Thanos Makatos
2012-09-21 10:38 ` Anthony PERARD
2012-09-21 10:52 ` George Dunlap
2012-09-21 11:13 ` Anthony PERARD
2012-10-04 9:56 ` Roger Pau Monné
2012-10-05 14:33 ` 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=5183E8BF.7030706@eu.citrix.com \
--to=george.dunlap@eu.citrix.com \
--cc=JBeulich@suse.com \
--cc=andres.lagarcavilla@gmail.com \
--cc=peter.maloney@brockmann-consult.de \
--cc=suravee.suthikulpanit@amd.com \
--cc=tim@xen.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.