From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756322Ab2KNSSX (ORCPT ); Wed, 14 Nov 2012 13:18:23 -0500 Received: from cantor2.suse.de ([195.135.220.15]:32894 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753502Ab2KNSSW (ORCPT ); Wed, 14 Nov 2012 13:18:22 -0500 Date: Wed, 14 Nov 2012 18:18:17 +0000 From: Mel Gorman To: Rik van Riel 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 Message-ID: <20121114181817.GO8218@suse.de> References: <1352805180-1607-1-git-send-email-mgorman@suse.de> <1352805180-1607-17-git-send-email-mgorman@suse.de> <50A3DBCD.8010503@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <50A3DBCD.8010503@redhat.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 14, 2012 at 12:58:37PM -0500, Rik van Riel wrote: > 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 :) > Hah, touche. Will shuffle its location in the series. -- Mel Gorman SUSE Labs