Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp217410imm; Thu, 16 Aug 2018 18:59:34 -0700 (PDT) X-Google-Smtp-Source: AA+uWPzvfbsyc6FPLstXtKSg8E75CM8noZxiYc1I2O7RzMvDTOO4J0rPjo+FWty6+4sypg19G8YB X-Received: by 2002:a65:498c:: with SMTP id r12-v6mr31702317pgs.112.1534471174435; Thu, 16 Aug 2018 18:59:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534471174; cv=none; d=google.com; s=arc-20160816; b=aknr4h070NTbMsaFa/Jzf4BjKAYw562OB9WsvCDFj4Ucc5h8D/sSlbW17uIc9vTRRF xnJWsbgWDwMnzypdnwlBRflyxawLbEigY+oQ1AsIZyvZHc569siZPWyKRAuXhBh9iam8 uz3NNDrqESmFhaPKZfYhkE3LMGziqUa05UgH/Xux8ZV6NzAt8Owfl8BWL4hECe5u5zBD hE5bk2bshrhkMqIQAjpxUeuEOVg6WIY0lJ7hSwdeauKN04p+7R4roXiLNlgzQbfMm8Rz 17csZNvjgWtTb7uP0pEjMFXtQXjjV81KWl30jnRxBegWlSDHl6hVIfSD02R40++FxYcl AqMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=B6gqsvwalt8gEkd2QonKP8r4uTaPxABeMG2/1QtznoQ=; b=KLwvhVwpoOqNLVxtJIa+NCnXjOQ1QcKDtLy9CRWcaMwD5FFBn0QJT+qyf8kSLdKd9x QDa6zajG2HVp87hDrU3b1vdjNRzbduv4QU7HVfWBG4sIK3dLR9ETfxKi0hlCO8UYs5oR LN42Uqk8C/D9ordfpQgULf+HOd8v4i8T4vM3gGs5oblhj5j9yYo/Er1HXo3nzYIkhA/2 6f82ihHOXtNjJc/+FF9s5lJGRb27/ceyTUXK24XNo9VAtjk1tll908yY7Au0SwdIEDYe rVx3ouBrtD7cOkcH+c/LT/GoixhD52oqey+qdo0u6ZraLNO+1l5aIQ+ifgQIHihMuh77 hnHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b=n8Ko9l2b; 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 d26-v6si924828pgd.32.2018.08.16.18.59.18; Thu, 16 Aug 2018 18:59:34 -0700 (PDT) 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; dkim=pass header.i=@joelfernandes.org header.s=google header.b=n8Ko9l2b; 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 S1726247AbeHQE7I (ORCPT + 99 others); Fri, 17 Aug 2018 00:59:08 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:46284 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725756AbeHQE7I (ORCPT ); Fri, 17 Aug 2018 00:59:08 -0400 Received: by mail-pf1-f196.google.com with SMTP id u24-v6so2807068pfn.13 for ; Thu, 16 Aug 2018 18:57:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joelfernandes.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=B6gqsvwalt8gEkd2QonKP8r4uTaPxABeMG2/1QtznoQ=; b=n8Ko9l2bxCI6Uf6TOi80mqRoSG2tebBnSe4kBND/UWLM2+ZXDY+Hs5MrnItTMe+iib HuwK6M0Hm6ZfXxTQ1U9Lj8ZBGZ+kT8iiF7mr9O9EsuSZ3V6OOwv6ucIRJ0VP3fJ2wZFi G2kooBNhnubRc5c8XqCmXOmKFlfCkmrSPUPDg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=B6gqsvwalt8gEkd2QonKP8r4uTaPxABeMG2/1QtznoQ=; b=omZeax8PwCiFS1RUwR5hu7QRDx1xON01e4uvjFbzRILxQ81zBylziWZLIRS6aA18Uu dLVk2xWTKDjwnzcRqt/w2Cr12PVpUhta2KRnq9fVaNGE8aP+bG2kyUdJg2+x+b/3BxTp 8pWTa+ACyCK9/3uT+QTntDLA7Ejem9d5irF7d7OSujQBSWcy07CI4IcMpRouVPQU9o7H jw30S3E3D9bRBof8G5aEqpn4azr2329UrXCpbLWCRkr1iHOzhRL+AA8LJwZ+Y7aQkkoI RSMi8a3N32RLyTG85TdrEPhVwdXrcizrTjWC8pG3Xsn7U1x5XrwzpZLrnagj6YnMFYin tZYQ== X-Gm-Message-State: AOUpUlHDzG71eCwbCccivlbMcUav7MFLPLasv0DbfM+DLXcpxdSGhFmD UnFHnMDhqtbdHPtdbU/96N9Sbg== X-Received: by 2002:a62:ad1:: with SMTP id 78-v6mr34699837pfk.57.1534471062754; Thu, 16 Aug 2018 18:57:42 -0700 (PDT) Received: from localhost ([2620:0:1000:1601:3aef:314f:b9ea:889f]) by smtp.gmail.com with ESMTPSA id n12-v6sm751508pfh.146.2018.08.16.18.57.41 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 16 Aug 2018 18:57:41 -0700 (PDT) Date: Thu, 16 Aug 2018 18:57:41 -0700 From: Joel Fernandes To: Morten Rasmussen Cc: peterz@infradead.org, mingo@redhat.com, valentin.schneider@arm.com, dietmar.eggemann@arm.com, vincent.guittot@linaro.org, gaku.inami.xh@renesas.com, linux-kernel@vger.kernel.org, tkjos@google.com Subject: Re: [PATCHv4 00/12] sched/fair: Migrate 'misfit' tasks on asymmetric capacity systems Message-ID: <20180817015741.GA3039@joelaf.mtv.corp.google.com> References: <1530699470-29808-1-git-send-email-morten.rasmussen@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1530699470-29808-1-git-send-email-morten.rasmussen@arm.com> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 04, 2018 at 11:17:38AM +0100, Morten Rasmussen wrote: > On asymmetric cpu capacity systems (e.g. Arm big.LITTLE) it is crucial > for performance that cpu intensive tasks are aggressively migrated to > high capacity cpus as soon as those become available. The capacity > awareness tweaks already in the wake-up path can't handle this as such > tasks might run or be runnable forever. If they happen to be placed on a > low capacity cpu from the beginning they are stuck there forever while > high capacity cpus may have become available in the meantime. > > To address this issue this patch set introduces a new "misfit" > load-balancing scenario in periodic/nohz/newly idle balance which tweaks > the load-balance conditions to ignore load per capacity in certain > cases. Since misfit tasks are commonly running alone on a cpu, more > aggressive active load-balancing is needed too. > > The fundamental idea of this patch set has been in Android kernels for a > long time and is absolutely essential for consistent performance on > asymmetric cpu capacity systems. > > The patches have been tested on: > 1. Arm Juno (r0): 2+4 Cortex A57/A53 > 2. Hikey960: 4+4 Cortex A73/A53 > Thanks for posting these, we have been carrying it in the Android Common Kernel for some time. They have been useful for Android systems. Reviewed-by: Joel Fernandes (Google) thanks, - Joel