From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx157.postini.com [74.125.245.157]) by kanga.kvack.org (Postfix) with SMTP id 703966B006E for ; Mon, 9 Jul 2012 10:53:59 -0400 (EDT) Message-ID: <4FFAF067.3050905@redhat.com> Date: Mon, 09 Jul 2012 10:53:27 -0400 From: Rik van Riel MIME-Version: 1.0 Subject: Re: [RFC][PATCH 25/26] sched, numa: Only migrate long-running entities References: <20120316144028.036474157@chello.nl> <20120316144241.749359061@chello.nl> <4FF9D29D.8030903@redhat.com> <1341836787.3462.64.camel@twins> In-Reply-To: <1341836787.3462.64.camel@twins> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: Peter Zijlstra Cc: Linus Torvalds , Andrew Morton , Thomas Gleixner , Ingo Molnar , Paul Turner , Suresh Siddha , Mike Galbraith , "Paul E. McKenney" , Lai Jiangshan , Dan Smith , Bharata B Rao , Lee Schermerhorn , Andrea Arcangeli , Johannes Weiner , linux-kernel@vger.kernel.org, linux-mm@kvack.org On 07/09/2012 08:26 AM, Peter Zijlstra wrote: > On Sun, 2012-07-08 at 14:34 -0400, Rik van Riel wrote: >> Do we really want to calculate the amount of CPU time used >> by a process, and start migrating after just one second? >> >> Or would it be ok to start migrating once a process has >> been scanned once or twice by the NUMA code? > > You mean, the 2-3rd time we try and migrate this task, not the memory > scanning thing as per Andrea, right? Indeed. That way we can simply keep a flag somewhere, instead of iterating over the threads in a process. -- All rights reversed -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org