All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Liuqiming (John)" <john.liuqiming@huawei.com>
To: xen-devel@lists.xen.org
Subject: apic-v reduce network performance in my test case
Date: Sat, 31 Jan 2015 18:29:05 +0800	[thread overview]
Message-ID: <54CCAE71.5070006@huawei.com> (raw)

Hi all,

     Recently I met an odd performance problem: when I turn on APIC 
Virtualization feature (apicv=1), the network performance of a windows 
guest become worse.

     My test case like this: host only have one windows 2008 R2 HVM 
guest running,and this guest has a SR-IOV VF network passthrough to it.
Guest using this network access a NAS device. No fontend or backend of 
network and storage, all data transfered through network.

     The xentrace data shows: the mainly difference between apicv and 
non-apicv, is the way guest write apic registers, and 
EXIT_REASON_MSR_WRITE vmexit cost much more time than 
EXIT_REASON_APIC_WRITE, but when using WRMSR, the PAUSE vmexit is much 
less than using APIC-v.
This is the odd part,any ideas?

APIC-v OFF:
      4099582 VMEXIT   3467051359128 TSC HLT
     10135140 VMEXIT     42484175528 TSC WRMSR
      1651714 VMEXIT      9785961276 TSC I/O instruction
       532702 VMEXIT      3887971388 TSC External interrupt
       290546 VMEXIT      2262312440 TSC PAUSE
       588077 VMEXIT       914905312 TSC Control-register accesses
       383617 VMEXIT       453329940 TSC Exception or non-maskable 
interrupt (NMI)
       132717 VMEXIT       232289792 TSC Interrupt window
        25534 VMEXIT       198718764 TSC EPT violation
        53969 VMEXIT        62886752 TSC TPR below threshold
         7996 VMEXIT        34735376 TSC RDMSR
         1615 VMEXIT        16042768 TSC VMCALL
          147 VMEXIT          272320 TSC CPUID
            7 VMEXIT            6484 TSC WBINVD
            2 VMEXIT            6308 TSC MOV DR	

APIC-v ON:
      3717629 VMEXIT   3459905385332 TSC HLT
      2282403 VMEXIT     23099880196 TSC APIC write
      3900448 VMEXIT     13073253548 TSC PAUSE
      1643729 VMEXIT     11719626776 TSC I/O instruction
      2194667 VMEXIT      5321640708 TSC WRMSR
       214425 VMEXIT      2198994944 TSC External interrupt
       566795 VMEXIT      1940710108 TSC Control-register accesses
       342688 VMEXIT       659665532 TSC Exception or non-maskable 
interrupt (NMI)
       190623 VMEXIT       644411612 TSC VMCALL
       188657 VMEXIT       295956932 TSC Virtualized EOI
        24350 VMEXIT       194817152 TSC EPT violation
         4393 VMEXIT        23282044 TSC RDMSR
	 179 VMEXIT         1688676 TSC CPUID
            7 VMEXIT            6884 TSC WBINVD
            1 VMEXIT            4200 TSC MOV DR

In commit 7f2e992b824ec62a2818e64390ac2ccfbd74e6b7
"VMX/Viridian: suppress MSR-based APIC suggestion when having APIC-V", 
msr based apic is disabled when apic-v is on, I wonder can they co-exist 
in some way? seems for windows guest msr-based apic has better performance.

             reply	other threads:[~2015-01-31 10:29 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-31 10:29 Liuqiming (John) [this message]
2015-02-02 10:12 ` apic-v reduce network performance in my test case Jan Beulich
2015-02-02 13:58   ` Liuqiming (John)
2015-02-02 14:59     ` Konrad Rzeszutek Wilk
     [not found]       ` <54D03148.50604@huawei.com>
     [not found]         ` <20150203153228.GD9371@l.oracle.com>
     [not found]           ` <54D2DC35.6070205@huawei.com>
2015-02-05  3:04             ` Liuqiming (John)
2015-02-05 19:26               ` Konrad Rzeszutek Wilk
2015-02-06  2:48                 ` Liuqiming (John)

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=54CCAE71.5070006@huawei.com \
    --to=john.liuqiming@huawei.com \
    --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.