From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754607Ab1G1F7K (ORCPT ); Thu, 28 Jul 2011 01:59:10 -0400 Received: from mail-vw0-f52.google.com ([209.85.212.52]:56372 "EHLO mail-vw0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751971Ab1G1F7E (ORCPT ); Thu, 28 Jul 2011 01:59:04 -0400 X-Greylist: delayed 492 seconds by postgrey-1.27 at vger.kernel.org; Thu, 28 Jul 2011 01:59:04 EDT Date: Thu, 28 Jul 2011 13:50:43 +0800 From: Yong Zhang To: "Paul E. McKenney" Cc: Peter Zijlstra , Thomas Gleixner , LKML , linux-rt-users , Ingo Molnar , Carsten Emde , Clark Williams , Kumar Gala , Ralf Baechle , rostedt , Nicholas Mc Guire Subject: Re: On migrate_disable() and latencies Message-ID: <20110728055043.GA570@windriver.com> Reply-To: Yong Zhang References: <1311329992.27400.23.camel@twins> <20110723003934.GP2382@linux.vnet.ibm.com> <1311582653.2617.49.camel@laptop> <20110725211706.GT2327@linux.vnet.ibm.com> <1311765198.24752.437.camel@twins> <20110727183008.GA2407@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20110727183008.GA2407@linux.vnet.ibm.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, Jul 27, 2011 at 11:30:08AM -0700, Paul E. McKenney wrote: > o Tasks awakening outside of migrate-disable regions will pick > the CPU running the lowest-priority task, whether or not this > task is in migrate-disable state. (At least I don't see > anything in 3.0-rt3 that looks like a scheduling decision > based on ->migrate_disable, perhaps due to blindness.) I'm also confused here, seems we just disable migration for RT task. migrate_disable() { ... if (p->sched_class->set_cpus_allowed) p->sched_class->set_cpus_allowed(p, mask); p->rt.nr_cpus_allowed = cpumask_weight(mask); ... } Shouldn't we also forbid migration on !RT task? Thanks, Yong -- Only stand for myself