From patchwork Fri Dec 14 16:01:54 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vincent Guittot X-Patchwork-Id: 153885 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp2236153ljp; Fri, 14 Dec 2018 08:02:08 -0800 (PST) X-Google-Smtp-Source: AFSGD/UeoSniW8NjMNouYxjfl4EjcqGZewdO5AiXcXpkLuqfLp94KJ7WoFJRyQUVqYcnachqJlE9 X-Received: by 2002:a62:43c1:: with SMTP id l62mr3443820pfi.22.1544803328321; Fri, 14 Dec 2018 08:02:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544803328; cv=none; d=google.com; s=arc-20160816; b=d5za1mFYQQZyBW8LeHee6pBp42CusAWpVFjES3qD9eUBwH0XQbB/riHL5B/lZzqDjg CMKJJX/VY5JZe8gJrHnnm1EG32pGufaMFlkyc7jsO1Zf6MELySggPDtWsHKlanTELqrT juCWgr++plKW+SIJ+TtP76bXn1Kp/uzoFOOZAa6he7s2I0PHPIer+MQyg5VylXg+m9G8 cUrv4DXxU8Nikyu7CxAH4cxFnKCjObNouy2ukBJWhJnzD+Uur2oHnG2OjOsRFDKxW3El ietBKyZSHIkxoo1s8KDn59IyLdyK0uv+Ei3c69w+IvgMJzeM27QrotOKAPaT6LOsg+tp cFvw== 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=e530nD7gwvUnOppPhQyUEPqE/LtJtCijcR/KUXEQhpc=; b=H7BwPM84LXgFeivV4n02/MDWTOp9ObU638p16DAnr5DeoWrXrJTqBUtVAz3cGQ2brB oCLAg4kyAQxno3FiFv658YN6ShG9wowY6OR2M7ViqtoFJjm0aSOw7nWLcHCyD11TZcQr LZo4btUFoz//OUp9oGEH2l5fTNXLSv2o68UrpkBWuAyaCjVUHLbmGYegeWLT8ZQ/HGRN 0Xbt72SUfanc7wLl/JXT95TA0aDh53o0oOZeG3z6BUw7YBtfntsbjdWYXZu0CAiwsvxa NZP8/6JddR3NSmokjMz9FjOElu1EbsKfiunyvfw1u1eIrGpOwiOgr+yGaUevduk+Kg+V IGXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="H5RiXlt/"; 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 i16si4188182pgk.445.2018.12.14.08.02.07; Fri, 14 Dec 2018 08:02:08 -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="H5RiXlt/"; 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 S1729163AbeLNQCG (ORCPT + 31 others); Fri, 14 Dec 2018 11:02:06 -0500 Received: from mail-wr1-f44.google.com ([209.85.221.44]:46996 "EHLO mail-wr1-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726510AbeLNQCG (ORCPT ); Fri, 14 Dec 2018 11:02:06 -0500 Received: by mail-wr1-f44.google.com with SMTP id l9so5887785wrt.13 for ; Fri, 14 Dec 2018 08:02:05 -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=e530nD7gwvUnOppPhQyUEPqE/LtJtCijcR/KUXEQhpc=; b=H5RiXlt/iHuhYtBKqye/p4f/ISScuUKtr26h5XlFMa+eRaFjbCYQc1yx455DN7U6k+ /dw2pBmmQWHIphwfMJn+wWQawuKkuE502cw7qqPUpgrQIoXek6SkhiUZTJ2ULXuepPx9 RNSrkq0VlU68EvbL0wH0kKe842N9l+mwDL3NA= 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=e530nD7gwvUnOppPhQyUEPqE/LtJtCijcR/KUXEQhpc=; b=bnVl5uMjIx8MoeCalrdztUWS3RC1Fn6cVg3Xsy+QGa0JRBBY4YY29l8PDoOVI1HCqC E7owqe2NxiIYDl7y/BNHcrNG6yDkvqbMW4KskR+CDVPXrMrri8gTCd+0HtbYl8DDcj18 hb9+UCxaYvRHygJ4bxoKVsbT8GKTtZVYjFPxiD7xqnU4pUz3I0H/Ddl7Txna/QBSGcMy o4CwkAm3eMU7cIGHTr/GRqQQmwKXmhARayGdO8wZKjdqLOJHCJVRKQnLysaIT3k43MSR qcVwE0qSHfEtF9BFi7qmTUmy/iSOP9BlXZyKYaLXzykMm4ZmQlU2eb7hjhOm7FaKPqoq xCdQ== X-Gm-Message-State: AA+aEWb/XTexWMS1mvwOSbbt2jATBRSAmADReicBRNYNYAKZJCqSWPtb u64SHztk3Yq4lh+1TKH2kfMC+Q== X-Received: by 2002:adf:94e4:: with SMTP id 91mr3264651wrr.322.1544803324102; Fri, 14 Dec 2018 08:02:04 -0800 (PST) Received: from localhost.localdomain ([2a01:e0a:f:6020:ed2e:a6ad:f6ef:ff8e]) by smtp.gmail.com with ESMTPSA id e17sm7888738wri.36.2018.12.14.08.02.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 14 Dec 2018 08:02:03 -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 v2 0/3] sched/fair: some fixes for asym_packing Date: Fri, 14 Dec 2018 17:01:54 +0100 Message-Id: <1544803317-7610-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 asymetric 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 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 | 33 +++++++++++++++++++++------------ 1 file changed, 21 insertions(+), 12 deletions(-) -- 2.7.4