xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Brian Woods <brian.woods@amd.com>
To: xen-devel@lists.xen.org
Cc: Andrew Cooper <andrew.cooper3@citrix.com>,
	Boris Ostrovsky <boris.ostrovsky@oracle.com>,
	Brian Woods <brian.woods@amd.com>,
	Jan Beulich <jbeulich@suse.com>,
	Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Subject: Re: [PATCH 0/2] x86/svm: add pause filtering threshold for SVM
Date: Tue, 20 Feb 2018 18:17:30 -0600	[thread overview]
Message-ID: <20180221001730.GA18409@amd.com> (raw)
In-Reply-To: <20180221001233.62644-1-brian.woods@amd.com>

[-- Attachment #1: Type: text/plain, Size: 1137 bytes --]

HW Setup:
	CPU: AMD EPYC 7401 24c/48t x 2 
	RAM: 128GB RAM
	Storage: HDD for dom0, SSDs for VMs
SW Setup:
	Xen base 4c7e478d597b0346eef3a256cfd6794ac778b608
	32 VMs
		6 VPCUs per VM
		3.5GB RAM per VM
		7.5GB disk per VM

Results:
	kernbench:
		half -> -j vpcu/2 = one job per host thread
		quad -> -j vpcu*4 = two VMs per host thread,
                                    four jobs per VM VCPU
	pi:
		03 ->  3 in parallel = one pi per host thread
		24 -> 24 in parallel = two VMs per host thread,
                                       four pis per VM VCPU

Kernbench: https://github.com/linux-test-project/ltp/blob/master/utils/benchmark/kernbench-0.42/kernbench
pi: based off of https://stackoverflow.com/questions/4084571/implementing-the-spigot-algorithm-for-%CF%80-pi
    but with yields and 10ns sleeps added in. 

Between the current usage of pause filtering counter, there's about an
~.5% improve in performance.  While this isn't huge, all that's
required is to write a value in the VMCB.

Attached: 
	elapsed_time_kernbenchhalf.pdf
	elapsed_time_kernbenchquad.pdf
	elapsed_time_pi03.pdf
	elapsed_time_pi24.pdf

-- 
Brian Woods

[-- Attachment #2: elapsed_time_kernbenchquad.pdf --]
[-- Type: application/pdf, Size: 9561 bytes --]

[-- Attachment #3: elapsed_time_kernbenchhalf.pdf --]
[-- Type: application/pdf, Size: 10552 bytes --]

[-- Attachment #4: elapsed_time_pi03.pdf --]
[-- Type: application/pdf, Size: 8972 bytes --]

[-- Attachment #5: elapsed_time_pi24.pdf --]
[-- Type: application/pdf, Size: 11710 bytes --]

[-- Attachment #6: Type: text/plain, Size: 157 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

  parent reply	other threads:[~2018-02-21  0:17 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-21  0:12 [PATCH 0/2] x86/svm: add pause filtering threshold for SVM Brian Woods
2018-02-21  0:12 ` [PATCH 1/2] x86/svm: add support for pause filtering threshold Brian Woods
2018-02-21 17:36   ` Moger, Babu
2018-02-23  9:44   ` Jan Beulich
2018-02-21  0:12 ` [PATCH 2/2] x86/svm: enable " Brian Woods
2018-02-21 17:36   ` Moger, Babu
2018-02-21  0:17 ` Brian Woods [this message]
2018-02-21 23:30 ` [PATCH 0/2] x86/svm: add pause filtering threshold for SVM Boris Ostrovsky

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=20180221001730.GA18409@amd.com \
    --to=brian.woods@amd.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=boris.ostrovsky@oracle.com \
    --cc=jbeulich@suse.com \
    --cc=suravee.suthikulpanit@amd.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 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).