From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752786AbbC0EmL (ORCPT ); Fri, 27 Mar 2015 00:42:11 -0400 Received: from mga14.intel.com ([192.55.52.115]:3095 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750931AbbC0EmJ (ORCPT ); Fri, 27 Mar 2015 00:42:09 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.11,477,1422950400"; d="scan'208";a="547077810" Date: Fri, 27 Mar 2015 12:23:49 +0800 From: Wanpeng Li To: Preeti U Murthy Cc: peterz@infradead.org, mingo@kernel.org, riel@redhat.com, daniel.lezcano@linaro.org, vincent.guittot@linaro.org, srikar@linux.vnet.ibm.com, pjt@google.com, benh@kernel.crashing.org, efault@gmx.de, linux-kernel@vger.kernel.org, iamjoonsoo.kim@lge.com, svaidy@linux.vnet.ibm.com, tim.c.chen@linux.intel.com, morten.rasmussen@arm.com, jason.low2@hp.com, Wanpeng Li Subject: Re: [PATCH V2] sched: Improve load balancing in the presence of idle CPUs Message-ID: <20150327042349.GA4950@kernel> Reply-To: Wanpeng Li References: <20150326130014.21532.17158.stgit@preeti.in.ibm.com> <20150327021201.GA4491@kernel> <5514DD91.8090505@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5514DD91.8090505@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 Hi Preeti, On Fri, Mar 27, 2015 at 10:03:21AM +0530, Preeti U Murthy wrote: >is set to CPU_NOT_IDLE. > >"" >idle = idle_cpu(cpu) ? CPU_IDLE : CPU_NOT_IDLE; > >And, > >When nohz_idle_balance() is called, the state of idle of ILB CPU is >checked before proceeding with load balancing on idle CPUs. > >"" > >if (idle != CPU_IDLE || > !test_bit(NOHZ_BALANCE_KICK, nohz_flags(this_cpu))) > goto end; > This idle is the one caculated in run_rebalance_domains() before invoke rebalance_domains(), rebalance_domains() cannot modify this local variable. Regards, Wanpeng Li >You see that nohz idle balancing gets aborted. > >Regards >Preeti U Murthy > > > >> >> Regards, >> Wanpeng Li >>