All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Chao Peng <chao.p.peng@linux.intel.com>, xen-devel@lists.xen.org
Cc: wei.liu2@citrix.com, Ian.Campbell@citrix.com,
	stefano.stabellini@eu.citrix.com, Ian.Jackson@eu.citrix.com,
	will.auld@intel.com, JBeulich@suse.com, keir@xen.org
Subject: Re: [PATCH v4 0/5] enable Memory Bandwidth Monitoring (MBM) for VMs
Date: Tue, 20 Jan 2015 13:49:10 +0000	[thread overview]
Message-ID: <54BE5CD6.3020805@citrix.com> (raw)
In-Reply-To: <1421747157-29191-1-git-send-email-chao.p.peng@linux.intel.com>

On 20/01/15 09:45, Chao Peng wrote:
> Changes from v3:
> * Get timestamp information from host along with the monitoring counter;
>   This is required for counter overlow detection.
> * Address comments from Wei on the last patch.
>
> Changes from v2:
> * Remove the usage of "static" to cache data in xc;
>   NOTE: Other places that already existed before are not touched due to
>         the needs for API change. Will fix in separate patch if desirable.
> * Coding style;
>
> Changes from v1:
> * Move event type check from xc to xl;
> * Add retry capability for MBM sampling;
> * Fix Coding style/docs;
>
> Intel Memory Bandwidth Monitoring(MBM) is a new hardware feature
> which builds on the CMT infrastructure to allow monitoring of system
> memory bandwidth. Event codes are provided to monitor both "total"
> and "local" bandwidth, meaning bandwidth over QPI and other external
> links can be monitored.
>
> For XEN, MBM is used to monitor memory bandwidth for VMs. Due to its
> dependency on CMT, the software also makes use of most of CMT codes.
> Actually, besides introducing two additional events and some cpuid
> feature bits, there are no extra changes compared to cache occupancy
> monitoring in CMT. Due to this, CMT should be enabled first to use
> this feature.
>
> For interface changes, the patch serial introduces a new command
> "XEN_SYSCTL_PSR_CMT_get_l3_event_mask" which exposes MBM feature
> capability to user space and modified "resource_op" to support reading
> host timestamp.
> Tool stack side, two additional options introduced for "xl psr-cmt-show":
> total_mem_bandwidth:     Show total memory bandwidth
> local_mem_bandwidth:     Show local memory bandwidth
>
> The usage flow keeps the same with CMT.

Please, somewhere in this series (even if it is a solitary extra patch),
patch the command line documentation to add MBM next to the sentence
about CMT.

~Andrew

>
> Chao Peng (5):
>   x86: allow reading MSR_IA32_TSC with XENPF_resource_op
>   tools: add routine to get CMT L3 event mask
>   tools: correct coding style for psr
>   tools: code refactoring for MBM
>   tools: add total/local memory bandwith monitoring
>
>  docs/man/xl.pod.1                 |   9 +++
>  tools/libxc/include/xenctrl.h     |  14 ++--
>  tools/libxc/xc_msr_x86.h          |   1 +
>  tools/libxc/xc_psr.c              |  59 ++++++++++++---
>  tools/libxl/libxl.h               |  22 +++++-
>  tools/libxl/libxl_psr.c           | 155 ++++++++++++++++++++++++++++++++++----
>  tools/libxl/libxl_types.idl       |   2 +
>  tools/libxl/xl_cmdimpl.c          |  78 +++++++++++++------
>  tools/libxl/xl_cmdtable.c         |   4 +-
>  xen/arch/x86/platform_hypercall.c |   8 +-
>  10 files changed, 295 insertions(+), 57 deletions(-)
>

      parent reply	other threads:[~2015-01-20 13:49 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-20  9:45 [PATCH v4 0/5] enable Memory Bandwidth Monitoring (MBM) for VMs Chao Peng
2015-01-20  9:45 ` [PATCH v4 1/5] x86: allow reading MSR_IA32_TSC with XENPF_resource_op Chao Peng
2015-01-20 10:02   ` Jan Beulich
2015-01-20 11:20     ` Chao Peng
2015-01-20 11:44       ` Jan Beulich
2015-01-20 14:31         ` Andrew Cooper
2015-01-20  9:45 ` [PATCH v4 2/5] tools: add routine to get CMT L3 event mask Chao Peng
2015-01-20  9:45 ` [PATCH v4 3/5] tools: correct coding style for psr Chao Peng
2015-01-20  9:45 ` [PATCH v4 4/5] tools: code refactoring for MBM Chao Peng
2015-01-20  9:45 ` [PATCH v4 5/5] tools: add total/local memory bandwith monitoring Chao Peng
2015-01-20 13:49 ` Andrew Cooper [this message]

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=54BE5CD6.3020805@citrix.com \
    --to=andrew.cooper3@citrix.com \
    --cc=Ian.Campbell@citrix.com \
    --cc=Ian.Jackson@eu.citrix.com \
    --cc=JBeulich@suse.com \
    --cc=chao.p.peng@linux.intel.com \
    --cc=keir@xen.org \
    --cc=stefano.stabellini@eu.citrix.com \
    --cc=wei.liu2@citrix.com \
    --cc=will.auld@intel.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.