From: George Dunlap <george.dunlap@eu.citrix.com>
To: Suravee Suthikulanit <suravee.suthikulpanit@amd.com>
Cc: "Tim (Xen.org)" <tim@xen.org>,
Andres Lagar-Cavilla <andres@lagarcavilla.org>,
Jan Beulich <JBeulich@suse.com>,
"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>
Subject: Re: Xen 4.3 development update
Date: Fri, 5 Apr 2013 14:43:22 +0100 [thread overview]
Message-ID: <515ED4FA.8000005@eu.citrix.com> (raw)
In-Reply-To: <515DB4D8.2090809@amd.com>
On 04/04/13 18:14, Suravee Suthikulanit wrote:
> On 4/3/2013 5:51 AM, George Dunlap wrote:
>> On 03/04/13 00:48, Suravee Suthikulanit wrote:
>>> On 4/2/2013 12:06 PM, Suravee Suthikulpanit wrote:
>>>> On 4/2/2013 11:34 AM, Tim Deegan wrote:
>>>>> At 16:42 +0100 on 02 Apr (1364920927), Jan Beulich wrote:
>>>>>>>>> On 02.04.13 at 16:07, George Dunlap <George.Dunlap@eu.citrix.com>
>>>>>>>>> wrote:
>>>>>>> * AMD NPT performance regression after c/s 24770:7f79475d3de7
>>>>>>> owner: ?
>>>>>>> Reference: http://marc.info/?l=xen-devel&m=135075376805215
>>>>>> This is supposedly fixed with the RTC changes Tim committed the
>>>>>> other day. Suravee, is that correct?
>>>>> This is a separate problem. IIRC the AMD XP perf issue is caused
>>>>> by the
>>>>> emulation of LAPIC TPR accesses slowing down with Andres's p2m locking
>>>>> patches. XP doesn't have 'lazy IRQL' or support for CR8, so it
>>>>> takes a
>>>>> _lot_ of vmexits for IRQL reads and writes.
>>>> Is there any tools or good ways to count the number of VMexit in Xen?
>>>>
>>> Tim/Jan,
>>>
>>> I have used iperf benchmark to compare network performance (bandwidth)
>>> between the two versions of the hypervisor:
>>> 1. good: 24769:730f6ed72d70
>>> 2. bad: 24770:7f79475d3de7
>>>
>>> In the "bad" case, I am seeing that the network bandwidth has dropped
>>> about 13-15%.
>>>
>>> However, when I uses the xentrace utility to trace the number of VMEXIT,
>>> I actually see about 25% more number of VMEXIT in the good case. This
>>> is inconsistent with the statement that Tim mentioned above.
>> I was going to say, what I remember from my little bit of
>> investigation back in November, was that it had all the earmarks of
>> micro-architectural "drag", which happens when the TLB or the caches
>> can't be effective.
>>
>> Suvaree, if you look at xenalyze, a microarchitectural "drag" looks like:
>> * fewer VMEXITs, but
>> * time for each vmexit takes longer
>>
>> If you post the results of "xenalyze --svm-mode -s" for both traces, I
>> can tell you what I see.
>>
>> -George
>>
> Here's another version of the outputs from xenalyze with only VMEXIT.
> In this case, I pin all the VCPUs (4) and pin my application process to
> VCPU 3.
>
> NOTE: This measurement is without the RTC bug.
>
> BAD:
> -- v3 --
> VMEXIT_CR0_WRITE 305 0.00s 0.00% 1660 cyc { 1158| 1461| 2507}
> VMEXIT_CR4_WRITE 6 0.00s 0.00% 19771 cyc { 1738| 5031|79600}
[snip]
> VMEXIT_IOIO 5581 0.19s 0.85% 82514 cyc { 4250|81909|146439}
> VMEXIT_NPF 108072 0.71s 3.14% 15702 cyc { 6362| 6865|37280}
> GOOD:
> -- v3 --
> VMEXIT_CR0_WRITE 3099 0.00s 0.01% 1541 cyc { 1157| 1420| 2151}
> VMEXIT_CR4_WRITE 12 0.00s 0.00% 4105 cyc { 1885| 4380| 5515}
[snip]
> VMEXIT_IOIO 53835 1.97s 8.74% 87959 cyc { 4996|82423|144207}
> VMEXIT_NPF 855101 2.06s 9.13% 5787 cyc { 4903| 5328| 8572}
[snip]
So in the good run, we have 855k NPF exits, each of which takes about
5.7k cycles. In the bad run, we have only 108k NPF exits, each of which
takes an average of 15k cycles. (Although the 50th percentile is still
only 6.8k cycles -- so most are about the same, but a few take a lot
longer.)
It's a bit strange -- the reduced number of NPF exits is consistent with
the idea of some micro-architectural thing slowing down the processing
of the guest. However, in my experience usually this also has an effect
on other processing as well -- i.e., the time to process an IOIO would
also go up, because dom0 would be slowed down as well; and time to
process any random VMEXIT (say, the CR0 writes) would also go up.
But maybe it only has an effect inside the guest, because of the tagged
TLBs or something?
Suravee, could you run this one again, but:
* Trace everything, not just vmexits
* Send me the trace files somehow (FTP or Dropbox), and/or add
"--with-interrupt-eip-enumeration=249 --with-mmio-enumeration" when you
run the summary?
That will give us an idea where the guest is spending its time
statistically, and what kinds of MMIO it is doing, which may give us a
clearer picture of what's going on.
Thanks,
-George
next prev parent reply other threads:[~2013-04-05 13:43 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 [this message]
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
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=515ED4FA.8000005@eu.citrix.com \
--to=george.dunlap@eu.citrix.com \
--cc=JBeulich@suse.com \
--cc=andres@lagarcavilla.org \
--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.