Re: [PATCH v3 1/2] perf,x86: add Intel Memory Bandwidth Monitoring (MBM) PMU

2015-09-11 Thread Matt Fleming
On Thu, 10 Sep, at 02:18:49PM, Kanaka Juvva wrote: > > > > > > > > } else { > > > > > mbm_current = &mbm_total[vrmid]; > > > > > eventid = QOS_MBM_TOTAL_EVENT_ID; > > > > > } > > > > > rmid = tmp32; > > > > > > > > Why did you assign rmi

Re: [PATCH v3 1/2] perf,x86: add Intel Memory Bandwidth Monitoring (MBM) PMU

2015-09-10 Thread Kanaka Juvva
On Thu, 2015-09-10 at 14:58 +0100, Matt Fleming wrote: > On Tue, 2015-09-08 at 18:06 +0100, Juvva, Kanaka D wrote: > > > > There are two aspects: > > > > 1) Programming MSRs > > 2) EVENT_ATTR_STR(llc_local_bw, intel_cqm_llc_local_bw, "event=0x04"); > > > > 1 is used for programming MSRs > >

Re: [PATCH v3 1/2] perf,x86: add Intel Memory Bandwidth Monitoring (MBM) PMU

2015-09-10 Thread Matt Fleming
On Tue, 2015-09-08 at 18:06 +0100, Juvva, Kanaka D wrote: > > There are two aspects: > > 1) Programming MSRs > 2) EVENT_ATTR_STR(llc_local_bw, intel_cqm_llc_local_bw, "event=0x04"); > > 1 is used for programming MSRs > 2 event attribute for perf > > > For MBM_LOCAL_EVENT HW ID is 0x3. W

Re: [PATCH v3 1/2] perf, x86: add Intel Memory Bandwidth Monitoring (MBM) PMU

2015-09-08 Thread kanaka . d . juvva
Sent: Wednesday, August 19, 2015 1:50 PM >> > To: Kanaka Juvva >> > Cc: Juvva, Kanaka D; Williamson, Glenn P; Fleming, Matt; Auld, Will; >> Andi Kleen; >> > LKML; Luck, Tony; Peter Zijlstra; Tejun Heo; x...@kernel.org; Ingo >> Molnar; H. >> > Peter A

RE: [PATCH v3 1/2] perf,x86: add Intel Memory Bandwidth Monitoring (MBM) PMU

2015-09-08 Thread Juvva, Kanaka D
leen; > LKML; Luck, Tony; Peter Zijlstra; Tejun Heo; x...@kernel.org; Ingo Molnar; H. > Peter Anvin; Shivappa, Vikas > Subject: Re: [PATCH v3 1/2] perf,x86: add Intel Memory Bandwidth Monitoring > (MBM) PMU > > On Mon, 2015-09-07 at 20:22 +0100, Juvva, Kanaka D wrote: > >

RE: [PATCH v3 1/2] perf,x86: add Intel Memory Bandwidth Monitoring (MBM) PMU

2015-09-08 Thread Juvva, Kanaka D
ing, Matt; Auld, Will; > > Andi Kleen; > > > LKML; Luck, Tony; Peter Zijlstra; Tejun Heo; x...@kernel.org; Ingo > > Molnar; H. > > > Peter Anvin; Shivappa, Vikas > > > Subject: Re: [PATCH v3 1/2] perf,x86: add Intel Memory Bandwidth > > Monitoring

Re: [PATCH v3 1/2] perf,x86: add Intel Memory Bandwidth Monitoring (MBM) PMU

2015-09-08 Thread Matt Fleming
2015 1:50 PM > > To: Kanaka Juvva > > Cc: Juvva, Kanaka D; Williamson, Glenn P; Fleming, Matt; Auld, Will; > Andi Kleen; > > LKML; Luck, Tony; Peter Zijlstra; Tejun Heo; x...@kernel.org; Ingo > Molnar; H. > > Peter Anvin; Shivappa, Vikas > > Subject: Re: [PATCH v3 1/2]

RE: [PATCH v3 1/2] perf,x86: add Intel Memory Bandwidth Monitoring (MBM) PMU

2015-08-21 Thread Thomas Gleixner
On Thu, 20 Aug 2015, Juvva, Kanaka D wrote: > Hi Thomas, Please do not top post and trim your replies proper. > Acknowledged. Perhaps some discussions are required in terms of > your questions and our solutions. Fine with me. > Mostly nothing was unresolved except some new things that are > bro

RE: [PATCH v3 1/2] perf,x86: add Intel Memory Bandwidth Monitoring (MBM) PMU

2015-08-20 Thread Juvva, Kanaka D
olnar; H. Peter Anvin; Shivappa, Vikas > Subject: Re: [PATCH v3 1/2] perf,x86: add Intel Memory Bandwidth > Monitoring (MBM) PMU > > On Fri, 7 Aug 2015, Kanaka Juvva wrote: > > +#define MBM_CNTR_MAX 0xff > > +#define MBM_SOCKET_MAX 8 >

Re: [PATCH v3 1/2] perf,x86: add Intel Memory Bandwidth Monitoring (MBM) PMU

2015-08-19 Thread Thomas Gleixner
On Fri, 7 Aug 2015, Kanaka Juvva wrote: > +#define MBM_CNTR_MAX 0xff > +#define MBM_SOCKET_MAX 8 > +#define MBM_TIME_DELTA_MAX 1000 > +#define MBM_TIME_DELTA_MIN 100 What are these constants for and how are they determined? Pulled out of thin air? > +#define MBM_SCAL

RE: [PATCH v3 1/2] perf,x86: add Intel Memory Bandwidth Monitoring (MBM) PMU

2015-08-16 Thread Juvva, Kanaka D
.com; Shivappa, Vikas > Subject: [PATCH v3 1/2] perf,x86: add Intel Memory Bandwidth Monitoring > (MBM) PMU > > This patch adds Memory Bandwidth Monitoring events to the exitsing intel_cqm > pmu in the Linux Kernel. > > Intel MBM builds on Cache Monitoring Technology (CMT) infrast

[PATCH v3 1/2] perf,x86: add Intel Memory Bandwidth Monitoring (MBM) PMU

2015-08-07 Thread Kanaka Juvva
This patch adds Memory Bandwidth Monitoring events to the exitsing intel_cqm pmu in the Linux Kernel. Intel MBM builds on Cache Monitoring Technology (CMT) infrastructure to allow monitoring of bandwidth from one level of the cache hierarchy to the next - in this case focusing on the L3 cache, whi