|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH v3 0/5] enable Memory Bandwidth Monitoring (MBM) for VMs
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 only introduces a new command
"XEN_SYSCTL_PSR_CMT_get_l3_event_mask" which exposes MBM feature
capability to user space and introduces two additional options 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.
Chao Peng (5):
x86: expose CMT L3 event mask to user space
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 | 11 ++--
tools/libxc/xc_psr.c | 35 ++++++++--
tools/libxl/libxl.h | 20 ++++--
tools/libxl/libxl_psr.c | 142 +++++++++++++++++++++++++++++++++++++----
tools/libxl/libxl_types.idl | 2 +
tools/libxl/xl_cmdimpl.c | 72 +++++++++++++++------
tools/libxl/xl_cmdtable.c | 4 +-
xen/arch/x86/sysctl.c | 3 +
xen/include/public/sysctl.h | 1 +
10 files changed, 251 insertions(+), 48 deletions(-)
--
1.7.9.5
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |