From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chao Peng Subject: Re: [PATCH 0/4] enable Memory Bandwidth Monitoring (MBM) for VMs Date: Wed, 24 Dec 2014 16:35:33 +0800 Message-ID: <20141224083532.GB10595@pengc-linux.bj.intel.com> References: <1419324880-13212-1-git-send-email-chao.p.peng@linux.intel.com> <54998E97.5070608@citrix.com> Reply-To: Chao Peng Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <54998E97.5070608@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Andrew Cooper Cc: keir@xen.org, Ian.Campbell@citrix.com, stefano.stabellini@eu.citrix.com, Ian.Jackson@eu.citrix.com, xen-devel@lists.xen.org, JBeulich@suse.com, wei.liu2@citrix.com List-Id: xen-devel@lists.xenproject.org On Tue, Dec 23, 2014 at 03:47:35PM +0000, Andrew Cooper wrote: > On 23/12/2014 08:54, Chao Peng wrote: > >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 (4): > > x86: expose CMT L3 event mask to user space > > tools: libxc: add routine to get CMT L3 event mask > > tools: libxl: code preparation for MBM > > tools: add total/local memory bandwith monitoring > > Please can you add a note about MBM in the command line documentation, > beside the CMT information. Sure. Chao > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xen.org > http://lists.xen.org/xen-devel