From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755022Ab3AaHkn (ORCPT ); Thu, 31 Jan 2013 02:40:43 -0500 Received: from LGEMRELSE7Q.lge.com ([156.147.1.151]:47469 "EHLO LGEMRELSE7Q.lge.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754688Ab3AaHkm (ORCPT ); Thu, 31 Jan 2013 02:40:42 -0500 X-AuditID: 9c930197-b7ca4ae000006ba8-fe-510a1ff82d4c From: Namhyung Kim To: Michael Wang Cc: Sebastian Andrzej Siewior , linux-kernel@vger.kernel.org, "Rafael J. Wysocki" , Ingo Molnar , Peter Zijlstra , tglx@linutronix.de Subject: Re: [RFC 2/2] sched/fair: prefer a CPU in the "lowest" idle state References: <1359580757-4121-1-git-send-email-bigeasy@linutronix.de> <1359580757-4121-3-git-send-email-bigeasy@linutronix.de> <5109D313.1020409@linux.vnet.ibm.com> <8738xiue31.fsf@sejong.aot.lge.com> <510A1198.2070803@linux.vnet.ibm.com> <87txpxu9cx.fsf@sejong.aot.lge.com> <510A1D7A.3050408@linux.vnet.ibm.com> Date: Thu, 31 Jan 2013 16:40:39 +0900 In-Reply-To: <510A1D7A.3050408@linux.vnet.ibm.com> (Michael Wang's message of "Thu, 31 Jan 2013 15:30:02 +0800") Message-ID: <87pq0lu7ew.fsf@sejong.aot.lge.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Brightmail-Tracker: AAAAAA== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 31 Jan 2013 15:30:02 +0800, Michael Wang wrote: > On 01/31/2013 02:58 PM, Namhyung Kim wrote: >> But AFAIK the number of states in cpuidle is usually less than 10 so maybe >> we can change the weight then, but there's no promise... > > And I just got another case we should take care: > > group 0 cpu 0 cpu 1 > power index 8 power index 8 > > > group 1 cpu 2 cpu 3 > power index 0 load 15 > > so load of group 0 is 16 and group 1 is 15, but group 0 is better... Maybe it's not. The cpus in group 0 are in a lower power state so that there will be a benefit to select cpu 2 from the power' PoV IMHO. Also such a low power state has a longer exit latency so that we should choose cpu2 to get a better performance and it's the basic idea of this patchset I believe. Thanks, Namhyung