Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755114Ab2E2WV5 (ORCPT ); Tue, 29 May 2012 18:21:57 -0400 Received: from merlin.infradead.org ([205.233.59.134]:40097 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752092Ab2E2WV4 convert rfc822-to-8bit (ORCPT ); Tue, 29 May 2012 18:21:56 -0400 Message-ID: <1338330077.26856.187.camel@twins> Subject: Re: [PATCH 22/35] autonuma: sched_set_autonuma_need_balance From: Peter Zijlstra To: Andrea Arcangeli Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, Hillf Danton , Dan Smith , Linus Torvalds , Andrew Morton , Thomas Gleixner , Ingo Molnar , Paul Turner , Suresh Siddha , Mike Galbraith , "Paul E. McKenney" , Lai Jiangshan , Bharata B Rao , Lee Schermerhorn , Rik van Riel , Johannes Weiner , Srivatsa Vaddagiri , Christoph Lameter Date: Wed, 30 May 2012 00:21:17 +0200 In-Reply-To: <20120529173347.GJ21339@redhat.com> References: <1337965359-29725-1-git-send-email-aarcange@redhat.com> <1337965359-29725-23-git-send-email-aarcange@redhat.com> <1338307942.26856.111.camel@twins> <20120529173347.GJ21339@redhat.com> Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT X-Mailer: Evolution 3.2.2- Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1513 Lines: 36 On Tue, 2012-05-29 at 19:33 +0200, Andrea Arcangeli wrote: > No worries, I didn't mean to leave it like this forever. I was > considering using the stop cpu _nowait variant but I didn't have > enough time to realize if it would work for my case. I need to rethink > about that. No, you're not going to use any stop_cpu variant at all. Nothing is _that_ urgent. Your whole strict mode needs to go, it completely wrecks the regular balancer. > The moment I gave up on the _nowait variant before releasing is when I > couldn't understand what is tlb_migrate_finish doing, and why it's not > present in the _nowait version in fair.c. Can you explain me that? Its an optional tlb flush, I guess they didn't find the active_balance worth the effort -- it should be fairly rare anyway. > I'm glad you acknowledge load_balance already takes a bulk of the time > as it needs to find the busiest runqueue checking other CPU runqueues > too... I've never said otherwise, its always been about where you do it, in the middle of schedule() just isn't it. And I'm getting very tired of having to repeat myself. Also for regular load-balance only 2 cpus will ever scan all cpus, the rest will only scan smaller ranges. Your thing does n-1 nodes worth of cpus for every cpu. -- 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/