lkml.org 
[lkml]   [2016]   [Oct]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC] scripts: Include postprocessing script for memory allocation tracing
On Sat 15-10-16 19:31:22, Janani Ravichandran wrote:
>
> > On Oct 11, 2016, at 10:43 AM, Janani Ravichandran <janani.rvchndrn@gmail.com> 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
> alloc_pages_nodemask().

trace_mm_page_alloc will tell you details about the allocation, like
gfp mask, order but it doesn't tell you how long the allocation took at
its current form. So either you have to note jiffies at the allocation
start and then add the end-start in the trace point or we really need
another trace point to note the start. The later has an advantage that
we do not add unnecessary load for jiffies when the tracepoint is
disabled.
--
Michal Hocko
SUSE Labs

\
 
 \ /
  Last update: 2016-10-16 09:34    [W:0.132 / U:0.164 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site