From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751995Ab2JVIHg (ORCPT ); Mon, 22 Oct 2012 04:07:36 -0400 Received: from cantor2.suse.de ([195.135.220.15]:57230 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750848Ab2JVIHe (ORCPT ); Mon, 22 Oct 2012 04:07:34 -0400 From: Mel Gorman To: Linux-MM Cc: Peter Zijlstra , Andrea Arcangeli , Rik van Riel , Mel Gorman , LKML Subject: [RFC PATCH 0/5] vmstats for compaction, migration and autonuma Date: Mon, 22 Oct 2012 08:59:46 +0100 Message-Id: <1350892791-2682-1-git-send-email-mgorman@suse.de> X-Mailer: git-send-email 1.7.7 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I'm travelling for a conference at the moment so these patches are not tested but with the ongoing NUMA migration work I figured it was best to post these sooner rather than later. This series adds vmstat counters and tracepoints for migration, compaction and autonuma. Using them it's possible to create a basic cost model to estimate the overhead due to compaction or autonuma. Using the stats it is also possible to measure if a workload is converging on autonuma or not and potentially measure how quickly it is converging. Ideally the same stats would be available for schednuma but I did not review the series when it was last posted in July and had not seen a recent posting. I only recently heard they were in the -tip tree but will not get the chance to look at them until I've finished travelling in a weeks time. If schednuma had similar stats it would then be possible to compare schednuma and autonuma in terms of how quickly a workload converges with either approach. include/linux/migrate.h | 14 +++++++++- include/linux/vm_event_item.h | 12 ++++++++- include/trace/events/migrate.h | 52 ++++++++++++++++++++++++++++++++++++++++ mm/autonuma.c | 22 +++++++++++++---- mm/compaction.c | 15 +++++++---- mm/memory-failure.c | 3 +- mm/memory_hotplug.c | 3 +- mm/mempolicy.c | 6 +++- mm/migrate.c | 16 ++++++++++- mm/page_alloc.c | 3 +- mm/vmstat.c | 16 ++++++++++-- 11 files changed, 139 insertions(+), 23 deletions(-) create mode 100644 include/trace/events/migrate.h -- 1.7.7