Re: [PATCH] perf script: add script to profile and resolve physical mem type

2017-10-17 Thread Andi Kleen
On Tue, Oct 17, 2017 at 09:10:16PM +, Liang, Kan wrote: > > > > > > Right, it doesn’t need load latency. 0x81d0 should be a better choice. > > > I will use 0x81d0 and 0x82d0 as default event for V2. > > > > That's model specific. You would need to check the model number if you do > > that. >

RE: [PATCH] perf script: add script to profile and resolve physical mem type

2017-10-17 Thread Liang, Kan
> > > > Right, it doesn’t need load latency. 0x81d0 should be a better choice. > > I will use 0x81d0 and 0x82d0 as default event for V2. > > That's model specific. You would need to check the model number if you do > that. > > Also with modern perf you can use the correct event names of course.

Re: [PATCH] perf script: add script to profile and resolve physical mem type

2017-10-17 Thread Andi Kleen
> > Right, it doesn’t need load latency. 0x81d0 should be a better choice. > I will use 0x81d0 and 0x82d0 as default event for V2. That's model specific. You would need to check the model number if you do that. Also with modern perf you can use the correct event names of course. -Andi

RE: [PATCH] perf script: add script to profile and resolve physical mem type

2017-10-17 Thread Liang, Kan
> On Tue, Oct 17, 2017 at 12:54 PM, Liang, Kan wrote: > >> On Mon, Oct 16, 2017 at 3:26 PM, wrote: > >> > From: Kan Liang > >> > > >> > There could be different types of memory in the system. E.g normal > >> > System Memory, Persistent Memory. To understand how the workload > >> maps to > >> >

Re: [PATCH] perf script: add script to profile and resolve physical mem type

2017-10-17 Thread Stephane Eranian
On Tue, Oct 17, 2017 at 12:54 PM, Liang, Kan wrote: >> On Mon, Oct 16, 2017 at 3:26 PM, wrote: >> > From: Kan Liang >> > >> > There could be different types of memory in the system. E.g normal >> > System Memory, Persistent Memory. To understand how the workload >> maps to >> > those memories,

RE: [PATCH] perf script: add script to profile and resolve physical mem type

2017-10-17 Thread Liang, Kan
> On Mon, Oct 16, 2017 at 3:26 PM, wrote: > > From: Kan Liang > > > > There could be different types of memory in the system. E.g normal > > System Memory, Persistent Memory. To understand how the workload > maps to > > those memories, it's important to know the I/O statistics on different > > t

Re: [PATCH] perf script: add script to profile and resolve physical mem type

2017-10-17 Thread Stephane Eranian
On Mon, Oct 16, 2017 at 3:26 PM, wrote: > From: Kan Liang > > There could be different types of memory in the system. E.g normal > System Memory, Persistent Memory. To understand how the workload maps to > those memories, it's important to know the I/O statistics on different > type of memorys.

[PATCH] perf script: add script to profile and resolve physical mem type

2017-10-16 Thread kan . liang
From: Kan Liang There could be different types of memory in the system. E.g normal System Memory, Persistent Memory. To understand how the workload maps to those memories, it's important to know the I/O statistics on different type of memorys. Perf can collect address maps with physical addresses