Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp207381imn; Fri, 29 Jul 2022 04:48:14 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vWD3omiJsMhoeS3nHPM7XlKmIMXAhH1fEg9xyVCGVyZXiJleSjX/oSYVt5WkhIMwKdXKJy X-Received: by 2002:a17:906:8448:b0:72b:5659:9873 with SMTP id e8-20020a170906844800b0072b56599873mr2670199ejy.117.1659095294367; Fri, 29 Jul 2022 04:48:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659095294; cv=none; d=google.com; s=arc-20160816; b=DjL4Ke9woONFMFHqTHkpUNv1YWDpkux2AkIOsE2Ki6eLjTubxzHbtNJmETjYnSwqnA LkCKYXZJUPNWmljnF7Z1qWwordVECagX4yA0KaaGPQmlS9AF+jq/OZs5c3QsrBY609iM X6F/hwmgmtbfbP4xOZ/XDBevJBhBmZq5sZehBkPnciiRMqIOE04PA5MDru2EnHAfg/xM B6O0LI+Lxu/BAJUVDfsIUpz8pI+oQFEc1QOOwJggiCpKYIInQ+KarXUw5EFF23aOX8x/ 05ux37VB15P60H0kTdPrHQIhZmoVRfjSPgyfig4mHN3BuN+R/IshnvMFglAsmZeh7wdZ 9fbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=oakeYfsxUsyNeeChzQ62VlB1YpOQYYk9VbAB4YNCA+g=; b=Eo/sh6I3h9UtdSCePWdedduKJr+JJBAIvBMskeENImfK1apVk6iKB9B4kbYHgLhif9 SZ3QERbYvUzDh3qeJuOzywF3d6fOui0PkIT486vD583CUIxYNehMfsa46YvmBY43SJf4 n7tcg6dPwe+MR5L4ZIHJnxt/xbHEZ29edEDYGwlG19FcMN26pZTYQ3uGXoxDQD+Deu5E zUX7jhEQ9+iyTvCe41wWXvmuKS0jIBkH9j6/5vFVwozMtZskKuQEQTf7KMutzydB1qtr s7xMUh0eFoceD2dM6Jmlzjv8H+eNNgb94Wf9EbW0H/z/8nhcZZm25Q+/+BdV168emUYG vbOA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gn19-20020a1709070d1300b0070790bfa9a2si3858529ejc.154.2022.07.29.04.47.49; Fri, 29 Jul 2022 04:48:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235798AbiG2LN2 (ORCPT + 99 others); Fri, 29 Jul 2022 07:13:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34064 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230301AbiG2LN1 (ORCPT ); Fri, 29 Jul 2022 07:13:27 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3556E10FCC for ; Fri, 29 Jul 2022 04:13:26 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 900201063; Fri, 29 Jul 2022 04:13:26 -0700 (PDT) Received: from localhost.localdomain (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 8D8253F73D; Fri, 29 Jul 2022 04:13:23 -0700 (PDT) From: Dietmar Eggemann To: Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , Steven Rostedt Cc: Daniel Bristot de Oliveira , Valentin Schneider , Mel Gorman , Ben Segall , Luca Abeni , linux-kernel@vger.kernel.org Subject: [PATCH v2 0/3] DL capacity-aware fixes Date: Fri, 29 Jul 2022 13:13:02 +0200 Message-Id: <20220729111305.1275158-1-dietmar.eggemann@arm.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org While testing cpusets on asymmetric CPU capacity systems I realized that the admission control, which kicks in when the cpumask of a cpuset is about to be changed, is not capacity-aware. [PATCH 2/3] addresses this issue. Overview: [PATCH 1/3] - Not part of the DL related changes but here for convenience : Inline helper function around static_branch_unlikely(&sched_asym_cpucapacity) [PATCH 2/3] - Make dl_cpuset_cpumask_can_shrink() capacity-aware. [PATCH 3/3] - Save a multiplication in dl_task_fits_capacity() by using already maintained dl_density. v1->v2: [PATCH 3/3] - s/SCHED_CAPACITY_SHIFT/(BW_SHIFT - SCHED_CAPACITY_SHIFT) (Vincent Guittot) Dietmar Eggemann (3): sched: Introduce sched_asym_cpucap_active() sched/deadline: Make dl_cpuset_cpumask_can_shrink() capacity-aware sched/deadline: Use sched_dl_entity's dl_density in dl_task_fits_capacity() kernel/sched/cpudeadline.c | 2 +- kernel/sched/deadline.c | 28 +++++++++++++--------------- kernel/sched/fair.c | 8 ++++---- kernel/sched/rt.c | 4 ++-- kernel/sched/sched.h | 35 ++++++++++++++++++++--------------- 5 files changed, 40 insertions(+), 37 deletions(-) -- 2.25.1