Re: [RFC] scripts: Include postprocessing script for memory allocation tracing

2016-10-27 Thread Janani Ravichandran
> On Oct 21, 2016, at 3:08 AM, Michal Hocko wrote: > > Interesting. > $ cat /debug/tracing/available_tracers > function_graph preemptirqsoff preemptoff irqsoff function nop > > Do I have to configure anything specially? And if I do why isn't it any > better to simply add a

Re: [RFC] scripts: Include postprocessing script for memory allocation tracing

2016-10-27 Thread Janani Ravichandran
> On Oct 21, 2016, at 3:08 AM, Michal Hocko wrote: > > Interesting. > $ cat /debug/tracing/available_tracers > function_graph preemptirqsoff preemptoff irqsoff function nop > > Do I have to configure anything specially? And if I do why isn't it any > better to simply add a start tracepoint

Re: [RFC] scripts: Include postprocessing script for memory allocation tracing

2016-10-21 Thread Michal Hocko
On Thu 20-10-16 18:10:37, Janani Ravichandran wrote: > Michal, > > > On Oct 18, 2016, at 8:13 AM, Michal Hocko wrote: > > > >> > > > > yes, function_graph tracer will give you _some_ information but it will > > not have the context you are looking for, right? See the

Re: [RFC] scripts: Include postprocessing script for memory allocation tracing

2016-10-21 Thread Michal Hocko
On Thu 20-10-16 18:10:37, Janani Ravichandran wrote: > Michal, > > > On Oct 18, 2016, at 8:13 AM, Michal Hocko wrote: > > > >> > > > > yes, function_graph tracer will give you _some_ information but it will > > not have the context you are looking for, right? See the following > > example > >

Re: [RFC] scripts: Include postprocessing script for memory allocation tracing

2016-10-20 Thread Janani Ravichandran
Michal, > On Oct 18, 2016, at 8:13 AM, Michal Hocko wrote: > >> > > yes, function_graph tracer will give you _some_ information but it will > not have the context you are looking for, right? See the following > example > > -- > 0)

Re: [RFC] scripts: Include postprocessing script for memory allocation tracing

2016-10-20 Thread Janani Ravichandran
Michal, > On Oct 18, 2016, at 8:13 AM, Michal Hocko wrote: > >> > > yes, function_graph tracer will give you _some_ information but it will > not have the context you are looking for, right? See the following > example > > -- > 0) x-www-b-22756 =>

Re: [RFC] scripts: Include postprocessing script for memory allocation tracing

2016-10-18 Thread Michal Hocko
On Mon 17-10-16 13:31:57, Janani Ravichandran wrote: > > > On Oct 17, 2016, at 1:24 PM, Janani Ravichandran > > wrote: > > > > > > On Sun, Oct 16, 2016 at 3:33 AM, Michal Hocko > > wrote: > > > > trace_mm_page_alloc

Re: [RFC] scripts: Include postprocessing script for memory allocation tracing

2016-10-18 Thread Michal Hocko
On Mon 17-10-16 13:31:57, Janani Ravichandran wrote: > > > On Oct 17, 2016, at 1:24 PM, Janani Ravichandran > > wrote: > > > > > > On Sun, Oct 16, 2016 at 3:33 AM, Michal Hocko > > wrote: > > > > trace_mm_page_alloc will tell you details about the allocation, like

Re: [RFC] scripts: Include postprocessing script for memory allocation tracing

2016-10-16 Thread Michal Hocko
On Sat 15-10-16 19:31:22, Janani Ravichandran wrote: > > > On Oct 11, 2016, at 10:43 AM, Janani Ravichandran > > wrote: > > > > Alright. I’ll add a starting tracepoint, change the script accordingly and > > send a v2. Thanks! > > > I looked at it again and I think

Re: [RFC] scripts: Include postprocessing script for memory allocation tracing

2016-10-16 Thread Michal Hocko
On Sat 15-10-16 19:31:22, Janani Ravichandran wrote: > > > On Oct 11, 2016, at 10:43 AM, Janani Ravichandran > > wrote: > > > > Alright. I’ll add a starting tracepoint, change the script accordingly and > > send a v2. Thanks! > > > I looked at it again and I think that the context

Re: [RFC] scripts: Include postprocessing script for memory allocation tracing

2016-10-15 Thread Janani Ravichandran
> On Oct 11, 2016, at 10:43 AM, Janani Ravichandran > wrote: > > Alright. I’ll add a starting tracepoint, change the script accordingly and > send a v2. Thanks! > I looked at it again and I think that the context information we need can be obtained from the

Re: [RFC] scripts: Include postprocessing script for memory allocation tracing

2016-10-15 Thread Janani Ravichandran
> On Oct 11, 2016, at 10:43 AM, Janani Ravichandran > wrote: > > Alright. I’ll add a starting tracepoint, change the script accordingly and > send a v2. Thanks! > I looked at it again and I think that the context information we need can be obtained from the tracepoint trace_mm_page_alloc in

Re: [RFC] scripts: Include postprocessing script for memory allocation tracing

2016-10-11 Thread Janani Ravichandran
Hi Michal, > Extremely sorry for the delayed response. > Then I really think that we need a starting trace point. I think that > having the full context information is really helpful in order to > understand latencies induced by allocations. > — Alright. I’ll add a starting tracepoint, change

Re: [RFC] scripts: Include postprocessing script for memory allocation tracing

2016-10-11 Thread Janani Ravichandran
Hi Michal, > Extremely sorry for the delayed response. > Then I really think that we need a starting trace point. I think that > having the full context information is really helpful in order to > understand latencies induced by allocations. > — Alright. I’ll add a starting tracepoint, change

Re: [RFC] scripts: Include postprocessing script for memory allocation tracing

2016-10-06 Thread Michal Hocko
On Fri 23-09-16 10:07:09, Michal Hocko wrote: > On Thu 22-09-16 11:30:36, Janani Ravichandran wrote: > > > > > On Sep 19, 2016, at 5:42 AM, Michal Hocko wrote: > > > > > > On Tue 13-09-16 14:04:49, Janani Ravichandran wrote: > > >> > > >>> On Sep 12, 2016, at 8:16 AM, Michal

Re: [RFC] scripts: Include postprocessing script for memory allocation tracing

2016-10-06 Thread Michal Hocko
On Fri 23-09-16 10:07:09, Michal Hocko wrote: > On Thu 22-09-16 11:30:36, Janani Ravichandran wrote: > > > > > On Sep 19, 2016, at 5:42 AM, Michal Hocko wrote: > > > > > > On Tue 13-09-16 14:04:49, Janani Ravichandran wrote: > > >> > > >>> On Sep 12, 2016, at 8:16 AM, Michal Hocko wrote: > >

Re: [RFC] scripts: Include postprocessing script for memory allocation tracing

2016-09-23 Thread Michal Hocko
On Thu 22-09-16 11:30:36, Janani Ravichandran wrote: > > > On Sep 19, 2016, at 5:42 AM, Michal Hocko wrote: > > > > On Tue 13-09-16 14:04:49, Janani Ravichandran wrote: > >> > >>> On Sep 12, 2016, at 8:16 AM, Michal Hocko wrote: > >> > >> I’m using the

Re: [RFC] scripts: Include postprocessing script for memory allocation tracing

2016-09-23 Thread Michal Hocko
On Thu 22-09-16 11:30:36, Janani Ravichandran wrote: > > > On Sep 19, 2016, at 5:42 AM, Michal Hocko wrote: > > > > On Tue 13-09-16 14:04:49, Janani Ravichandran wrote: > >> > >>> On Sep 12, 2016, at 8:16 AM, Michal Hocko wrote: > >> > >> I’m using the function graph tracer to see how long

Re: [RFC] scripts: Include postprocessing script for memory allocation tracing

2016-09-22 Thread Janani Ravichandran
> On Sep 19, 2016, at 5:42 AM, Michal Hocko wrote: > > On Tue 13-09-16 14:04:49, Janani Ravichandran wrote: >> >>> On Sep 12, 2016, at 8:16 AM, Michal Hocko wrote: >> >> I’m using the function graph tracer to see how long __alloc_pages_nodemask() >>

Re: [RFC] scripts: Include postprocessing script for memory allocation tracing

2016-09-22 Thread Janani Ravichandran
> On Sep 19, 2016, at 5:42 AM, Michal Hocko wrote: > > On Tue 13-09-16 14:04:49, Janani Ravichandran wrote: >> >>> On Sep 12, 2016, at 8:16 AM, Michal Hocko wrote: >> >> I’m using the function graph tracer to see how long __alloc_pages_nodemask() >> took. > > How can you map the function

Re: [RFC] scripts: Include postprocessing script for memory allocation tracing

2016-09-19 Thread Michal Hocko
On Tue 13-09-16 14:04:49, Janani Ravichandran wrote: > > > On Sep 12, 2016, at 8:16 AM, Michal Hocko wrote: > > > > Hi, > > Hello Michal, > > > I am sorry I didn't follow up on the previous submission. > > That’s alright :) > > > I find this > > _really_ helpful. It is

Re: [RFC] scripts: Include postprocessing script for memory allocation tracing

2016-09-19 Thread Michal Hocko
On Tue 13-09-16 14:04:49, Janani Ravichandran wrote: > > > On Sep 12, 2016, at 8:16 AM, Michal Hocko wrote: > > > > Hi, > > Hello Michal, > > > I am sorry I didn't follow up on the previous submission. > > That’s alright :) > > > I find this > > _really_ helpful. It is great that you could

Re: [RFC] scripts: Include postprocessing script for memory allocation tracing

2016-09-13 Thread Janani Ravichandran
> On Sep 12, 2016, at 8:16 AM, Michal Hocko wrote: > > Hi, Hello Michal, > I am sorry I didn't follow up on the previous submission. That’s alright :) > I find this > _really_ helpful. It is great that you could build on top of existing > tracepoints but one thing is not

Re: [RFC] scripts: Include postprocessing script for memory allocation tracing

2016-09-13 Thread Janani Ravichandran
> On Sep 12, 2016, at 8:16 AM, Michal Hocko wrote: > > Hi, Hello Michal, > I am sorry I didn't follow up on the previous submission. That’s alright :) > I find this > _really_ helpful. It is great that you could build on top of existing > tracepoints but one thing is not entirely clear to

Re: [RFC] scripts: Include postprocessing script for memory allocation tracing

2016-09-12 Thread Michal Hocko
Hi, I am sorry I didn't follow up on the previous submission. I find this _really_ helpful. It is great that you could build on top of existing tracepoints but one thing is not entirely clear to me. Without a begin marker in __alloc_pages_nodemask we cannot really tell how long the whole

Re: [RFC] scripts: Include postprocessing script for memory allocation tracing

2016-09-12 Thread Michal Hocko
Hi, I am sorry I didn't follow up on the previous submission. I find this _really_ helpful. It is great that you could build on top of existing tracepoints but one thing is not entirely clear to me. Without a begin marker in __alloc_pages_nodemask we cannot really tell how long the whole

[RFC] scripts: Include postprocessing script for memory allocation tracing

2016-09-11 Thread Janani Ravichandran
The objective of this patch is to help users observe latencies in memory allocation. The function graph tracer is great for seeing how long functions took to execute. And often, tracepoints, along with the tracer help understand situations better. However, while it is possible to set a threshold

[RFC] scripts: Include postprocessing script for memory allocation tracing

2016-09-11 Thread Janani Ravichandran
The objective of this patch is to help users observe latencies in memory allocation. The function graph tracer is great for seeing how long functions took to execute. And often, tracepoints, along with the tracer help understand situations better. However, while it is possible to set a threshold

[RFC] scripts: Include postprocessing script for memory allocation tracing

2016-08-19 Thread Janani Ravichandran
The objective of this patch is to help users observe latencies in memory allocation. The function graph tracer is great for seeing how long functions took to execute. And often, tracepoints, along with the tracer help understand situations better. However, while it is possible to set a threshold

[RFC] scripts: Include postprocessing script for memory allocation tracing

2016-08-19 Thread Janani Ravichandran
The objective of this patch is to help users observe latencies in memory allocation. The function graph tracer is great for seeing how long functions took to execute. And often, tracepoints, along with the tracer help understand situations better. However, while it is possible to set a threshold