Re: [Xen-devel] [PATCH v9 3/3] tools, docs: add total/local memory bandwith monitoring

2015-02-25 Thread Ian Campbell
On Wed, 2015-02-25 at 18:21 +0800, Chao Peng wrote: > On Mon, Feb 23, 2015 at 04:24:32PM +, Ian Campbell wrote: > > On Fri, 2015-02-13 at 13:09 +, Wei Liu wrote: > > > On Mon, Feb 02, 2015 at 04:06:09PM +0800, Chao Peng wrote: > > > > +#ifdef LIBXL_HAVE_PSR_MBM > > > > +int libxl_psr_cmt_t

Re: [Xen-devel] [PATCH v9 3/3] tools, docs: add total/local memory bandwith monitoring

2015-02-25 Thread Chao Peng
On Mon, Feb 23, 2015 at 04:24:32PM +, Ian Campbell wrote: > On Fri, 2015-02-13 at 13:09 +, Wei Liu wrote: > > On Mon, Feb 02, 2015 at 04:06:09PM +0800, Chao Peng wrote: > > > +#ifdef LIBXL_HAVE_PSR_MBM > > > +int libxl_psr_cmt_type_supported(libxl_ctx *ctx, libxl_psr_cmt_type > > > type);

Re: [Xen-devel] [PATCH v9 3/3] tools, docs: add total/local memory bandwith monitoring

2015-02-23 Thread Ian Campbell
On Fri, 2015-02-13 at 13:09 +, Wei Liu wrote: > On Mon, Feb 02, 2015 at 04:06:09PM +0800, Chao Peng wrote: > > +#ifdef LIBXL_HAVE_PSR_MBM > > +int libxl_psr_cmt_type_supported(libxl_ctx *ctx, libxl_psr_cmt_type type); > > +int libxl_psr_cmt_get_mem_bandwidth_sample(libxl_ctx *ctx, > > +

Re: [Xen-devel] [PATCH v9 3/3] tools, docs: add total/local memory bandwith monitoring

2015-02-13 Thread Wei Liu
On Mon, Feb 02, 2015 at 04:06:09PM +0800, Chao Peng wrote: > Add Memory Bandwidth Monitoring(MBM) for VMs. Two types of monitoring > are supported: total and local memory bandwidth monitoring. To use it, > CMT should be enabled in hypervisor. > > Signed-off-by: Chao Peng > --- > Changes in v9: >

[Xen-devel] [PATCH v9 3/3] tools, docs: add total/local memory bandwith monitoring

2015-02-02 Thread Chao Peng
Add Memory Bandwidth Monitoring(MBM) for VMs. Two types of monitoring are supported: total and local memory bandwidth monitoring. To use it, CMT should be enabled in hypervisor. Signed-off-by: Chao Peng --- Changes in v9: 1. Refactor code in xc_psr_cmt_get_data. 2. Move bandwidth calculation(slee