From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755845Ab2KNR7H (ORCPT ); Wed, 14 Nov 2012 12:59:07 -0500 Received: from mx1.redhat.com ([209.132.183.28]:4908 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755670Ab2KNR7F (ORCPT ); Wed, 14 Nov 2012 12:59:05 -0500 Message-ID: <50A3DBCD.8010503@redhat.com> Date: Wed, 14 Nov 2012 12:58:37 -0500 From: Rik van Riel User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120827 Thunderbird/15.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 16/31] mm: numa: Only call task_numa_placement for misplaced pages References: <1352805180-1607-1-git-send-email-mgorman@suse.de> <1352805180-1607-17-git-send-email-mgorman@suse.de> In-Reply-To: <1352805180-1607-17-git-send-email-mgorman@suse.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/13/2012 06:12 AM, Mel Gorman wrote: > task_numa_placement is potentially very expensive so limit it to being > called when a page is misplaced. How necessary this is depends on > the placement policy. > > Signed-off-by: Mel Gorman That reads like a premature optimization :) -- All rights reversed