Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752637Ab2KFRdZ (ORCPT ); Tue, 6 Nov 2012 12:33:25 -0500 Received: from mx1.redhat.com ([209.132.183.28]:63496 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751598Ab2KFRc7 (ORCPT ); Tue, 6 Nov 2012 12:32:59 -0500 Message-ID: <50994A58.9000309@redhat.com> Date: Tue, 06 Nov 2012 12:35:20 -0500 From: Rik van Riel User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121009 Thunderbird/16.0 MIME-Version: 1.0 To: Mel Gorman CC: Peter Zijlstra , Andrea Arcangeli , Ingo Molnar , Johannes Weiner , Hugh Dickins , Thomas Gleixner , Linus Torvalds , Andrew Morton , Linux-MM , LKML Subject: Re: [PATCH 03/19] mm: compaction: Add scanned and isolated counters for compaction References: <1352193295-26815-1-git-send-email-mgorman@suse.de> <1352193295-26815-4-git-send-email-mgorman@suse.de> In-Reply-To: <1352193295-26815-4-git-send-email-mgorman@suse.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1117 Lines: 25 On 11/06/2012 04:14 AM, Mel Gorman wrote: > Compaction already has tracepoints to count scanned and isolated pages > but it requires that ftrace be enabled and if that information has to be > written to disk then it can be disruptive. This patch adds vmstat counters > for compaction called compact_migrate_scanned, compact_free_scanned and > compact_isolated. > > With these counters, it is possible to define a basic cost model for > compaction. This approximates of how much work compaction is doing and can > be compared that with an oprofile showing TLB misses and see if the cost of > compaction is being offset by THP for example. Minimally a compaction patch > can be evaluated in terms of whether it increases or decreases cost. The > basic cost model looks like this > Signed-off-by: Mel Gorman Reviewed-by: Rik van Riel -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/