Received: by 10.223.176.5 with SMTP id f5csp823154wra; Fri, 9 Feb 2018 07:47:53 -0800 (PST) X-Google-Smtp-Source: AH8x227w4cTyImwZvjRcgT41QBdVGcqbfKBeTLWzJ5utEdWa2Bs4bBqSuVL1nquRYsdhQZ0rBsBv X-Received: by 2002:a17:902:a984:: with SMTP id bh4-v6mr2915008plb.95.1518191273651; Fri, 09 Feb 2018 07:47:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518191273; cv=none; d=google.com; s=arc-20160816; b=cQeW5vJ4Kp1f8F8s5n0ZPKKKiffzujtsgcf/nComA8dArTx3k7ww4d6pgsksQaf0kC fn9Uiu/upfXiBuiCAU7muNkfJkiy/PcQ6wXdARX+0aW2+Sp6Nz51MCm2IfXxr74yVfcp GAkW6Aa0SXwlFgCVHpM5dG5WVfj55xmq6rkS4CpL8ZBrxTLUdq1PEw5i3+yaHrfzbeVx Sxib2mSamk5kNULTQx5tKzkrJ1g4Vl6TshcBzS6PC7P5/bNZ6fesOIoSLkreGG4Wor3T vFeLQEsNEO6RP+N98OIzfdAQDqRIn69Q/Pj/737kZkj/7Y9CfKzWse7VP9tuNsPP1drZ iENg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=ZAbbAieHuDdEwFwSEwHZE5JK7kmqzHcTp2IRXPU9A08=; b=LtonftAqcLzIQWokVAiYbnWPRJk1aCQRTRTOVfoDm41/3eFS7V1NCr/6y5CgS3bkFy zfijtkwr8Z8f+jY/JLHjN2dVsglRg4PmXMPdExMTRS8lpXdnDkQDriXv799hFq58yuZu +QKU/3B28jKNlMZAzCqIEQgjwMIYsOocFcU6sod8RzXsmZzhyhVYTu8AL9dBre6zund+ HcRMToRSlm7NBULhAW8lMQHvbqahpR/CCSvgkJuUvfg64OeZxnF0ixlIc8efzlGSe04s flEKyfKtpKmwtKhZ8+fiI7S9p4HKN42g3TnIpDnp7hKZN50Z93ZrBRfBevpPYNjIhrcV LiLw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b7si1503678pgr.640.2018.02.09.07.47.39; Fri, 09 Feb 2018 07:47:53 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751151AbeBIPq6 (ORCPT + 99 others); Fri, 9 Feb 2018 10:46:58 -0500 Received: from foss.arm.com ([217.140.101.70]:48598 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751034AbeBIPq5 (ORCPT ); Fri, 9 Feb 2018 10:46:57 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 3875D1435; Fri, 9 Feb 2018 07:46:57 -0800 (PST) Received: from [0.0.0.0] (e107985-lin.cambridge.arm.com [10.1.210.41]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id E72623F487; Fri, 9 Feb 2018 07:46:54 -0800 (PST) Subject: Re: [RESEND PATCH] sched/fair: consider RT/IRQ pressure in select_idle_sibling To: Peter Zijlstra , Rohit Jain Cc: mingo@redhat.com, linux-kernel@vger.kernel.org, steven.sistare@oracle.com, dhaval.giani@oracle.com, joelaf@google.com, vincent.guittot@linaro.org, morten.rasmussen@arm.com, eas-dev@lists.linaro.org References: <1517268429-933-1-git-send-email-rohit.k.jain@oracle.com> <20180209125358.GO25201@hirez.programming.kicks-ass.net> From: Dietmar Eggemann Message-ID: <2b3a903f-fbb6-cc0e-8a5d-e3329e1276c7@arm.com> Date: Fri, 9 Feb 2018 16:46:53 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <20180209125358.GO25201@hirez.programming.kicks-ass.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/09/2018 01:53 PM, Peter Zijlstra wrote: > On Mon, Jan 29, 2018 at 03:27:09PM -0800, Rohit Jain wrote: [...] >> @@ -6173,8 +6183,15 @@ static int select_idle_cpu(struct task_struct *p, struct sched_domain *sd, int t >> return -1; >> if (!cpumask_test_cpu(cpu, &p->cpus_allowed)) >> continue; >> + if (idle_cpu(cpu)) { >> + if (full_capacity(cpu)) { >> + best_cpu = cpu; >> + break; >> + } else if (capacity_of(cpu) > best_cap) { >> + best_cap = capacity_of(cpu); >> + best_cpu = cpu; >> + } >> + } > > No need for the else. And you'll note you're once again inconsistent > with your previous self. > > But here I worry about big.little a wee bit. I think we're allowed big > and little cores on the same L3 these days, and you can't directly > compare capacity between them. > > Morten / Dietmar, any comments? Yes, for DynamIQ (big.little successor) systems, those cpus can have different capacity_orig_of() values already.