xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Keir Fraser <keir@xen.org>
To: Dan Magenheimer <dan.magenheimer@oracle.com>,
	Zhigang Wang <zhigang.x.wang@oracle.com>
Cc: xen-devel <xen-devel@lists.xen.org>,
	Jan Beulich <jbeulich@suse.com>,
	Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Subject: Re: VM memory allocation speed with cs 26056
Date: Tue, 13 Nov 2012 17:17:13 +0000	[thread overview]
Message-ID: <CCC83119.5215F%keir@xen.org> (raw)
In-Reply-To: <8809ab93-4255-464b-88c2-28272980db16@default>

On 13/11/2012 16:13, "Dan Magenheimer" <dan.magenheimer@oracle.com> wrote:

>> I did it second time. It seems the result (attached) is promising.
>> 
>> I think the strange result is due to the order of testing:
>> start_physical_machine -> test_hvm -> test_pvm.
>> 
>> This time, I did: start_physical_machine -> test_pvm -> test_hvm.
>> 
>> You can see the pvm memory allocation speed is not affected by your patch
>> this time.
>> 
>> So I believe this patch is excellent now.
> 
> I don't know about Keir's opinion, but to me the performance dependency
> on ordering is even more bizarre and still calls into question the
> acceptability of the patch.  Customers aren't going to like being
> told that, for best results, they should launch all PV domains before
> their HVM domains.

Yes it's very odd. I would want to see more runs to be convinced that
nothing else weird is going on and affecting the results.

If it is something to do with the movement of the TLB-flush filtering logic,
it may just be a tiny difference being amplified by the vast number of times
alloc_heap_pages() gets called. We should be able to actually *improve* PV
build performance by pulling the flush filtering out into populate_physmap
and increase_reservation.

> Is scrubbing still/ever done lazily?  That might explain some of
> the weirdness.

No lazy scrubbing any more.

 -- Keir

  reply	other threads:[~2012-11-13 17:17 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-12 15:01 VM memory allocation speed with cs 26056 Zhigang Wang
2012-11-12 15:17 ` Jan Beulich
2012-11-12 15:57   ` Zhigang Wang
2012-11-12 16:25   ` Dan Magenheimer
2012-11-12 18:25 ` Keir Fraser
2012-11-13 15:46   ` Zhigang Wang
2012-11-13 16:13     ` Dan Magenheimer
2012-11-13 17:17       ` Keir Fraser [this message]
2012-11-16 18:42     ` Zhigang Wang

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=CCC83119.5215F%keir@xen.org \
    --to=keir@xen.org \
    --cc=dan.magenheimer@oracle.com \
    --cc=jbeulich@suse.com \
    --cc=konrad.wilk@oracle.com \
    --cc=xen-devel@lists.xen.org \
    --cc=zhigang.x.wang@oracle.com \
    /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).