xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: George Dunlap <george.dunlap@eu.citrix.com>
To: "Pasi Kärkkäinen" <pasik@iki.fi>
Cc: Jan Beulich <JBeulich@suse.com>, "Tim (Xen.org)" <tim@xen.org>,
	"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>,
	"suravee.suthikulpanit@amd.com" <suravee.suthikulpanit@amd.com>,
	Andres Lagar-Cavilla <andres.lagarcavilla@gmail.com>,
	Peter Maloney <peter.maloney@brockmann-consult.de>
Subject: Re: Xen 4.3 development update
Date: Tue, 7 May 2013 15:57:30 +0100	[thread overview]
Message-ID: <5189165A.6010509@eu.citrix.com> (raw)
In-Reply-To: <20130507135639.GF11427@reaktio.net>

On 07/05/13 14:56, Pasi Kärkkäinen wrote:
> On Mon, Apr 29, 2013 at 03:21:34PM +0200, Peter Maloney wrote:
>> On 04/04/2013 07:05 PM, Tim Deegan wrote:
>>> At 16:23 +0100 on 04 Apr (1365092601), Tim Deegan wrote:
>>>> At 11:34 -0400 on 03 Apr (1364988853), Andres Lagar-Cavilla wrote:
>>>>> On Apr 3, 2013, at 6:53 AM, George Dunlap <george.dunlap@eu.citrix.com> wrote:
>>>> Yes, 4.2 is definitely slower.  A compile test on a 4-vcpu VM that takes
>>>> about 12 minutes before this locking change takes more than 20 minutes
>>>> on the current tip of xen-unstable (I gave up at 22 minutes and rebooted
>>>> to test something else).
>>> I did a bit of prodding at this, but messed up my measurements in a
>>> bunch of different ways over the afternoon. :(  I'm going to be away
>>> from my test boxes for a couple of weeks now, so all I can say is, if
>>> you're investigating this bug, beware that:
>>>
>>>   - the revision before this change still has the RTC bugs that were
>>>     fixed last week, so don't measure performance based on guest
>>>     wallclock time, or your 'before' perf will look too good.
>>>   - the current unstable tip has test code to exercise the new
>>>     map_domain_page(), which will badly affect all the many memory
>>>     accesses done in HVM emulation, so make sure you use debug=n builds
>>>     for measurement.
>>>
>>> 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.
>>
>> It only took about 2.5 minutes to log in and see task manager. It takes
>> about 6 minutes without the patch. And 2.5 minutes is still terrible,
>> but obviously better.
>>
> So is the problem only on WinXP with "booting up / logging in to windows",
> or do you see performance regressions on some actual benchmark tools aswell
> (after windows has started up) ?

For the sake of people watching this thread: The last 4-5 mails I've 
sent to Peter Maloney have bounced with "Mailbox Full" messages; so it's 
possible he's not actually hearing this part of the discussion...

  -George

  reply	other threads:[~2013-05-07 14:57 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
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 [this message]
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=5189165A.6010509@eu.citrix.com \
    --to=george.dunlap@eu.citrix.com \
    --cc=JBeulich@suse.com \
    --cc=andres.lagarcavilla@gmail.com \
    --cc=pasik@iki.fi \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).