From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757973AbcIWFvY (ORCPT ); Fri, 23 Sep 2016 01:51:24 -0400 Received: from mail-it0-f65.google.com ([209.85.214.65]:33606 "EHLO mail-it0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755125AbcIWFvX (ORCPT ); Fri, 23 Sep 2016 01:51:23 -0400 Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) Subject: Re: [RFC] scripts: Include postprocessing script for memory allocation tracing From: Janani Ravichandran In-Reply-To: <20160919094224.GH10785@dhcp22.suse.cz> Date: Thu, 22 Sep 2016 11:30:36 -0400 Cc: Janani Ravichandran , linux-mm@kvack.org, linux-kernel@vger.kernel.org, riel@surriel.com, akpm@linux-foundation.org, vdavydov@virtuozzo.com, vbabka@suse.cz, mgorman@techsingularity.net, rostedt@goodmis.org Message-Id: References: <20160911222411.GA2854@janani-Inspiron-3521> <20160912121635.GL14524@dhcp22.suse.cz> <0ACE5927-A6E5-4B49-891D-F990527A9F50@gmail.com> <20160919094224.GH10785@dhcp22.suse.cz> To: Michal Hocko X-Mailer: Apple Mail (2.2104) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by mail.home.local id u8N5pXXR021835 > 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 graph tracer to a specif context? Let's say > I would like to know why a particular allocation took so long. Would > that be possible? Maybe not. If the latencies are due to direct reclaim or memory compaction, you get some information from the tracepoints (like mm_vmscan_direct_reclaim_begin, mm_compaction_begin, etc). But otherwise, you don’t get any context information. Function graph only gives the time spent in alloc_pages_nodemask() in that case. Regards, Janani. > > -- > Michal Hocko > SUSE Labs