From patchwork Thu Jan 17 17:44:06 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vincent Guittot X-Patchwork-Id: 155856 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp2247357jaa; Thu, 17 Jan 2019 09:44:19 -0800 (PST) X-Google-Smtp-Source: ALg8bN5bjB6LrGh36G/bALSrXZw6S6JA1P/s7ryP8gIWBtmTm284OIwIev1YDV69hQZk8jzZ0ZhY X-Received: by 2002:a17:902:5982:: with SMTP id p2mr15711426pli.39.1547747058968; Thu, 17 Jan 2019 09:44:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547747058; cv=none; d=google.com; s=arc-20160816; b=CnL3HM327EcWGNCxrqZY3lcmCe1jqvt0ftmyQx14yPWm8vtHFPIgyiKe4TgIyNHsw5 X9nUqjFL9gWaJ4uiY7CzZYgHjB4uh7MSgFOpxbOSXuJIHeH7qoJQhRJKRM4w63NgV09w nnJGOUCDRTyUm6k59F/rsR+Lp7385Ih6IACNDzJmYD3zsh6P4vQzqRS3jpp2BDkP1hp7 pwMGXMW07t104+OAOv7Q1b9lcMwUpSLSH9b9eyEScwYtj+zeYPsocyF4STwkHQqCdgkf 4KkxbSEed2kWmDhs263XsvyrseqoEdQghQph+s7EPAiQNbKY3n1hL8ojUd30cqx40G+n jInA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=kl5l1MDdpHP48KcUt76Pg8NpjsG1Gyf5PCi5NuzIyHQ=; b=Hn3FryUKN7fRtOt8hy4J43CFGMkQkD18vU7NdKwcvf106fKWmPR7D8uu3r9nDFEM1Q 37a/EBQg17ixXWHZ7vjydPbc2XTOMTvN0ARw+NWpwBdD53Qofo+3Y6yvP/yq4x7IGIYX H1K+QDFnRCAoo1s5Ho2+9yU4GSfDda4VGSVYUg/23N8Knr3LmosuoDMreTiJSKSn9fC0 cIEgvflUfMRDMxuCMvkAyLgECZHlhQgkb8PFs0HPLzHPJ7e+s089AryymtaP5EYFFJRc ZTFP7BnPsnSdG0PLni0d7wKub9TQRz1uzCm3wvlwqwQNBTp//aA5YiFsy8ulr9bR05Ye 3P1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LU0yXyv9; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m3si2140924pfh.58.2019.01.17.09.44.18; Thu, 17 Jan 2019 09:44:18 -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; dkim=pass header.i=@linaro.org header.s=google header.b=LU0yXyv9; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727579AbfAQRoR (ORCPT + 21 others); Thu, 17 Jan 2019 12:44:17 -0500 Received: from mail-wm1-f49.google.com ([209.85.128.49]:39766 "EHLO mail-wm1-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726883AbfAQRoR (ORCPT ); Thu, 17 Jan 2019 12:44:17 -0500 Received: by mail-wm1-f49.google.com with SMTP id y8so1960750wmi.4 for ; Thu, 17 Jan 2019 09:44:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=kl5l1MDdpHP48KcUt76Pg8NpjsG1Gyf5PCi5NuzIyHQ=; b=LU0yXyv9Cgq313aAR8iFtilaL/zXEiKSVbZwNLYwofp4O8RlfQOWN9JuTyVcNtpXRL oPuziimXq6hz2ZgfdgVNtOILNIF1oEqlJHsSAQmcJ0LeDwXupDmeg0pidVytI/UiphyS S3ILLGh69TD3PM9ofShy6n4o278X9sPACWDkk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=kl5l1MDdpHP48KcUt76Pg8NpjsG1Gyf5PCi5NuzIyHQ=; b=CjhXuxWFi398mVN2uvNlmXVieXUyljL6ILV/HC7ThzxCGo3j2nfMNJvszlgOQDCrzG H9LXj1SSYmg483kgFElnAz8zFBUhgd5ay4aIrzFX6QlIbcuuxHjxqDHXB31RpiABYeIl veIFAiL4hvhdJyuC+mb1HKOPZC6r/acncx7oJVDyijGy/7WNk1fE/ldAkrx6xl9iAjj1 KoW/WU9MAs+PTfNI69yJNmV04HPBIyXDXmZeIkiMhnRAxuGBVEbc4xTlAXijUvj0SUE9 aRPVQfkX6HAcSXhDE1q67Ot0RgkHzZEWGuZKXnYxJFg9g1VerYRMXtv2wa12HwdhUYaE ChdA== X-Gm-Message-State: AJcUuke5q+izpz0cJ1tpynctjqcVT5kN3SA0ZAwNOGYojryFhQP6Ktag PbgSVxipV2yXxFl+/2YuSQqa2g== X-Received: by 2002:a1c:8c05:: with SMTP id o5mr11994617wmd.29.1547747054831; Thu, 17 Jan 2019 09:44:14 -0800 (PST) Received: from localhost.localdomain ([2a01:e0a:f:6020:8435:96d6:e03:9e78]) by smtp.gmail.com with ESMTPSA id i186sm47583622wmd.19.2019.01.17.09.44.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 17 Jan 2019 09:44:14 -0800 (PST) From: Vincent Guittot To: peterz@infradead.org, mingo@kernel.org, linux-kernel@vger.kernel.org Cc: valentin.schneider@arm.com, Morten.Rasmussen@arm.com, Vincent Guittot Subject: [PATCH v4 0/3] sched/fair: some fixes for asym_packing Date: Thu, 17 Jan 2019 18:44:06 +0100 Message-Id: <1547747049-6320-1-git-send-email-vincent.guittot@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org During the review of misfit task patchset, Morten and Valentin raised some problems with the use of SD_ASYM_PACKING flag on asymmetric system like hikey960 arm64 big/LITTLE platform. The study of the use cases has shown some problems that can happen for every systems that use the flag. The 3 patches fixes the problems raised for lmbench and the rt-app UC that creates 2 tasks that start as small tasks and then become suddenly always running tasks. (I can provide the rt-app json if needed) Changes since v3: - simplify imbalance computation Changes since v2: - include other active balance reasons - set imbalance to avg_load as suggested by Valentin Changes since v1: - rebase on tip/sched/core - changes asym_active_balance() as suggested by Peter Vincent Guittot (3): sched/fair: fix rounding issue for asym packing sched/fair: trigger asym_packing during idle load balance sched/fair: fix unnecessary increase of balance interval kernel/sched/fair.c | 44 ++++++++++++++++++++++++++++---------------- 1 file changed, 28 insertions(+), 16 deletions(-) -- 2.7.4