Re: [RFC] perf tools: Add hugetlbfs memory recognition

2015-07-03 Thread Arnaldo Carvalho de Melo
Em Fri, Jul 03, 2015 at 06:21:48PM +0800, Hou Pengyang escreveu: > On 2015/6/30 22:50, Arnaldo Carvalho de Melo wrote: > >Well, we _can_ detect this automatically, its just a matter of parsing > >/proc/PID/smaps, right? > >What I was discussing was a way only parse smaps when we know we need > >

Re: [RFC] perf tools: Add hugetlbfs memory recognition

2015-07-03 Thread Hou Pengyang
On 2015/6/30 22:50, Arnaldo Carvalho de Melo wrote: Em Tue, Jun 30, 2015 at 05:33:05PM +0800, Hou Pengyang escreveu: On 2015/6/29 21:42, Arnaldo Carvalho de Melo wrote: Em Mon, Jun 29, 2015 at 10:23:29AM -0300, Arnaldo Carvalho de Melo escreveu: Em Sat, Jun 27, 2015 at 05:08:20PM +0800, Hou Pe

Re: [RFC] perf tools: Add hugetlbfs memory recognition

2015-06-30 Thread Arnaldo Carvalho de Melo
Em Tue, Jun 30, 2015 at 05:33:05PM +0800, Hou Pengyang escreveu: > On 2015/6/29 21:42, Arnaldo Carvalho de Melo wrote: > >Em Mon, Jun 29, 2015 at 10:23:29AM -0300, Arnaldo Carvalho de Melo escreveu: > >>Em Sat, Jun 27, 2015 at 05:08:20PM +0800, Hou Pengyang escreveu: > >>>So I wonder if there is a

Re: [RFC] perf tools: Add hugetlbfs memory recognition

2015-06-30 Thread Hou Pengyang
On 2015/6/29 21:42, Arnaldo Carvalho de Melo wrote: Em Mon, Jun 29, 2015 at 10:23:29AM -0300, Arnaldo Carvalho de Melo escreveu: Em Sat, Jun 27, 2015 at 05:08:20PM +0800, Hou Pengyang escreveu: There is something about MAP_HUGETLB. In this patch, we check if a mmap area is hugetlbfs area by

Re: [RFC] perf tools: Add hugetlbfs memory recognition

2015-06-29 Thread Arnaldo Carvalho de Melo
Em Mon, Jun 29, 2015 at 10:23:29AM -0300, Arnaldo Carvalho de Melo escreveu: > Em Sat, Jun 27, 2015 at 05:08:20PM +0800, Hou Pengyang escreveu: > > There is something about MAP_HUGETLB. > > > In this patch, we check if a mmap area is hugetlbfs area by MAP_HUGETLB, > > a bit in MMAP2 event. > >

Re: [RFC] perf tools: Add hugetlbfs memory recognition

2015-06-29 Thread Arnaldo Carvalho de Melo
Em Sat, Jun 27, 2015 at 05:08:20PM +0800, Hou Pengyang escreveu: > There is something about MAP_HUGETLB. > In this patch, we check if a mmap area is hugetlbfs area by MAP_HUGETLB, > a bit in MMAP2 event. > However, if mmap area is hugetlb related, MAP_HUGETLB does not always > appear. Because,

Re: [RFC] perf tools: Add hugetlbfs memory recognition

2015-06-27 Thread Hou Pengyang
On 2015/6/27 16:49, Hou Pengyang wrote: Maps for JIT is helpful for symbols-parsing for anon-executable-memory. What we need to do is to add (START, SIZE, symbolname) to /tmp/perf-%d.map (%d = pid of process), and perf would parse symbol located in this area according to /tmp/perf-%d.map. It work

[RFC] perf tools: Add hugetlbfs memory recognition

2015-06-27 Thread Hou Pengyang
Maps for JIT is helpful for symbols-parsing for anon-executable-memory. What we need to do is to add (START, SIZE, symbolname) to /tmp/perf-%d.map (%d = pid of process), and perf would parse symbol located in this area according to /tmp/perf-%d.map. It works well for normal mmap. However, when we