Re: [Xen-devel] [PATCH 4/4] tools: add total/local memory bandwith monitoring

2015-01-15 Thread Chao Peng
On Tue, Jan 06, 2015 at 10:29:18AM +, Andrew Cooper wrote: > On 06/01/15 10:09, Chao Peng wrote: > > On Mon, Jan 05, 2015 at 12:39:42PM +, Wei Liu wrote: > >> On Tue, Dec 23, 2014 at 04:54:39PM +0800, Chao Peng wrote: > >> [...] > >>> +static int libxl__psr_cmt_get_mem_bandwidth(libxl__gc *

Re: [Xen-devel] [PATCH 4/4] tools: add total/local memory bandwith monitoring

2015-01-06 Thread Chao Peng
On Tue, Jan 06, 2015 at 10:29:18AM +, Andrew Cooper wrote: > On 06/01/15 10:09, Chao Peng wrote: > > On Mon, Jan 05, 2015 at 12:39:42PM +, Wei Liu wrote: > >> On Tue, Dec 23, 2014 at 04:54:39PM +0800, Chao Peng wrote: > >> [...] > >>> +static int libxl__psr_cmt_get_mem_bandwidth(libxl__gc *

Re: [Xen-devel] [PATCH 4/4] tools: add total/local memory bandwith monitoring

2015-01-06 Thread Andrew Cooper
On 06/01/15 10:09, Chao Peng wrote: > On Mon, Jan 05, 2015 at 12:39:42PM +, Wei Liu wrote: >> On Tue, Dec 23, 2014 at 04:54:39PM +0800, Chao Peng wrote: >> [...] >>> +static int libxl__psr_cmt_get_mem_bandwidth(libxl__gc *gc, uint32_t domid, >>> +xc_psr_cmt_type type, uint32_t socketid, uin

Re: [Xen-devel] [PATCH 4/4] tools: add total/local memory bandwith monitoring

2015-01-06 Thread Chao Peng
On Mon, Jan 05, 2015 at 12:39:42PM +, Wei Liu wrote: > On Tue, Dec 23, 2014 at 04:54:39PM +0800, Chao Peng wrote: > [...] > > +static int libxl__psr_cmt_get_mem_bandwidth(libxl__gc *gc, uint32_t domid, > > +xc_psr_cmt_type type, uint32_t socketid, uint32_t *bandwidth) > > +{ > > +uint64

Re: [Xen-devel] [PATCH 4/4] tools: add total/local memory bandwith monitoring

2015-01-05 Thread Wei Liu
On Tue, Dec 23, 2014 at 04:54:39PM +0800, Chao Peng wrote: [...] > +static int libxl__psr_cmt_get_mem_bandwidth(libxl__gc *gc, uint32_t domid, > +xc_psr_cmt_type type, uint32_t socketid, uint32_t *bandwidth) > +{ > +uint64_t sample1, sample2; > +uint32_t upscaling_factor; > +int rc;

[Xen-devel] [PATCH 4/4] tools: add total/local memory bandwith monitoring

2014-12-23 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 --- docs/man/xl.pod.1 |2 ++ tools/libxc/include/xenctrl.h |2 ++ tools/l