From: Dario Faggioli <dario.faggioli@citrix.com>
To: Gordan Bobic <gordan@bobich.net>
Cc: Lars Kurth <lars.kurth@citrix.com>,
George Dunlap <george.dunlap@eu.citrix.com>,
George Dunlap <george.dunlap@citrix.com>,
Ross Lagerwall <ross.lagerwall@citrix.com>,
"stefano.stabellini@citrix.com" <stefano.stabellini@citrix.com>,
"xen-devel@lists.xenproject.org" <xen-devel@lists.xenproject.org>
Subject: Re: Virt overehead with HT [was: Re: Xen 4.5 development update]
Date: Tue, 15 Jul 2014 00:44:10 +0200 [thread overview]
Message-ID: <1405377850.5333.17.camel@Solace> (raw)
In-Reply-To: <53C421F4.9070501@bobich.net>
[-- Attachment #1.1: Type: text/plain, Size: 1996 bytes --]
On lun, 2014-07-14 at 19:31 +0100, Gordan Bobic wrote:
> On 07/14/2014 06:22 PM, Dario Faggioli wrote:
> > I'll try more runs, e.g. with number of VCPUs equal less than
> > nr_corse/2 and see what happens.
> >
> > Again, thoughts?
>
> Have you tried it with VCPUs pinned to appropriate PCPUs?
>
Define "appropriate".
I have a run for which I pinned VCPU#1-->PCPU#1, VCPU#2-->PCPU#2, and so
on, and the result is even worse:
Average Half load -j 4 Run (std deviation):
Elapsed Time 37.808 (0.538999)
Average Optimal load -j 8 Run (std deviation):
Elapsed Time 26.594 (0.235223)
Average Maximal load -j Run (std deviation):
Elapsed Time 27.9 (0.131149)
This is actually something I expected, since you do not allow the VCPUs
to move away from an HT with a busy sibling, even when it could have.
In fact, you may expect better result from pinning only if you were to
pin not only the VCPUs to the PCPUs, but also the kernbench's build jobs
on the appropriate (V)CPUs in the guest.. but that's something not only
really unpractical, but also very few representative as a benchmark, I
think.
If you pin VCPU#1 to PCPU#1 and VCPU#2 to PCPU#2, with PCPU#1 and PCPU#2
being HT siblings, what prevents Linux (in the guest) to run two of the
four build jobs on VCPU#1 and VCPU#2 (i.e., on siblings PCPUs!!) for all
the length of the benchmark? Nothing, I think.
And in fact, pinning would also result in good (near to native,
perhaps?) performance, if we were exposing the SMT topology details to
guests as, in that case, Linux would do the balancing properly. However,
that's not the case either. :-(
But, perhaps, you were referring to a different pinning strategy?
Regards,
Dario
--
<<This happens because I choose it to happen!>> (Raistlin Majere)
-----------------------------------------------------------------
Dario Faggioli, Ph.D, http://about.me/dario.faggioli
Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK)
[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 181 bytes --]
[-- Attachment #2: Type: text/plain, Size: 126 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
next prev parent reply other threads:[~2014-07-14 22:44 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-01 16:43 Xen 4.5 development update konrad.wilk
2014-07-02 11:33 ` George Dunlap
2014-07-02 12:23 ` Jan Beulich
2014-07-11 6:51 ` Dario Faggioli
2014-07-14 16:12 ` Virt overehead with HT [was: Re: Xen 4.5 development update] Dario Faggioli
2014-07-14 16:32 ` Gordan Bobic
2014-07-14 16:44 ` Dario Faggioli
2014-07-14 16:55 ` George Dunlap
2014-07-14 17:22 ` Dario Faggioli
2014-07-14 18:31 ` Gordan Bobic
2014-07-14 22:44 ` Dario Faggioli [this message]
2014-07-15 0:10 ` Gordan Bobic
2014-07-15 2:30 ` Dario Faggioli
2014-07-28 13:28 ` Gordan Bobic
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=1405377850.5333.17.camel@Solace \
--to=dario.faggioli@citrix.com \
--cc=george.dunlap@citrix.com \
--cc=george.dunlap@eu.citrix.com \
--cc=gordan@bobich.net \
--cc=lars.kurth@citrix.com \
--cc=ross.lagerwall@citrix.com \
--cc=stefano.stabellini@citrix.com \
--cc=xen-devel@lists.xenproject.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).