From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753991AbcG0Oog (ORCPT ); Wed, 27 Jul 2016 10:44:36 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:36265 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753142AbcG0Oof (ORCPT ); Wed, 27 Jul 2016 10:44:35 -0400 Date: Wed, 27 Jul 2016 10:43:07 -0400 From: Janani Ravichandran To: linux-mm@kvack.org, linux-kernel@vger.kernel.org Cc: riel@surriel.com, akpm@linux-foundation.org, hannes@compxchg.org, vdavydov@virtuozzo.com, mhocko@suse.com, vbabka@suse.cz, mgorman@techsingularity.net, kirill.shutemov@linux.intel.com, bywxiaobai@163.com, rostedt@goodmis.org Subject: [PATCH 0/2] New tracepoints for slowpath and memory compaction Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, I am an Outreachy intern working under Rik van Riel on memory allocation latency tracing using tracepoints. The goal of my project is to add tracepoints to code in vmscan.c and compaction.c to gain insight into what happens there and examine latencies using a postprocessing script. The one here: https://github.com/Jananiravichandran/Analyzing-tracepoints/blob/master/shrink_slab_latencies.py is a very basic script that shows how long direct reclaim and shrinkers take. I intend to keep updating the script as more tracepoints are added in the direct reclaim and compaction code and eventually submit the script itself once I'm done. Suggestions on this are most welcome! As of now, there are no mechanisms to find out how long slowpath and memory compaction take to execute. This patchset adds new tracepoints and also modifies a couple of existing ones to address this and collect some zone information that may be useful. Janani Ravichandran (2): mm: page_alloc.c: Add tracepoints for slowpath mm: compaction.c: Add/Modify direct compaction tracepoints include/trace/events/compaction.h | 38 ++++++++++++++++++++++++++++++++----- include/trace/events/kmem.h | 40 +++++++++++++++++++++++++++++++++++++++ mm/compaction.c | 6 ++++-- mm/page_alloc.c | 5 +++++ 4 files changed, 82 insertions(+), 7 deletions(-) -- 2.7.0