Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp949329iob; Fri, 13 May 2022 17:26:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxGZP9/eS+51Q8TuL9K2SMtCk+QSkF/RelrqdcE/xtK13eZY2z7zw/eSE+a2qJfOmwMCwn5 X-Received: by 2002:a05:6000:16c1:b0:20c:d01d:141 with SMTP id h1-20020a05600016c100b0020cd01d0141mr5755992wrf.385.1652488010013; Fri, 13 May 2022 17:26:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652488010; cv=none; d=google.com; s=arc-20160816; b=T25MqH1q9uv4xBjDsJ2c/Rpy1DiwPL5rnLd6eG5aLqhUFiaChAaguNjCNaVpZbQDcE krDjpGt7Jn4idfKlleZiTML+BJHLrUemx+4okWKSb8YS0JQmAJYsWHORB2QuBJbDToPw FkgoM/GYTMbOSgR9vhxdd75gcEwyHgYSiay4fovM7NTsxVZwcRkFaKyWvyh08wwjl0Iz ty5Z9djjwy3K9RpDsCDHkyLint6EKx/Qbp49IV2E3ECD72ibicHaqeNqQ4efbpJTvMq6 HtSQMIzCuQNdS5zi1PgRXnPHfBeKPgm5sC4AzZPcjXZobihg7Q6sFQBhnybKrqYuGbsH YeSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=TztKdwt72p/ktvB8bFE21AfQ364YewJi5ekDXEIKiBA=; b=mU8xioN5rlGEfdMUFKsH51f0lvJ7Iu6rsL9AU5vE+rQcZYpoSaO41eHTHcOLmoFnhf rsll1+H+ooLxvLuEM/ArbjjitDMKmWEglR09q/Huf7zdYoZqqsck9AEzhw6lZQy9MUnf C1m/vdMJ1j2ZP2x6NALkJyrX0sbrvD90Fur3AcF05d/w/Z4vbxTrzanAO0247NfaEtVI lN5v7Kv9/7/LUNzvsfKICsJTVpHliJhI07wk7HSdGyuwM523154GkFsG7zT/u+XJYuB1 7OzAvYvjPdfZTB+JT4kCUWyD+hTcsXD1lvhxA565ErB3f7mmzgxnlBojCO7tqD5q2Z/f N+dA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LoixVsgg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id r81-20020a1c4454000000b00394788a24ebsi3746313wma.47.2022.05.13.17.26.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 17:26:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LoixVsgg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D5E862F416A; Fri, 13 May 2022 16:20:19 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351319AbiELQfx (ORCPT + 99 others); Thu, 12 May 2022 12:35:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46320 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229695AbiELQfw (ORCPT ); Thu, 12 May 2022 12:35:52 -0400 Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 001911CFC7 for ; Thu, 12 May 2022 09:35:50 -0700 (PDT) Received: by mail-wr1-x430.google.com with SMTP id m1so8025068wrb.8 for ; Thu, 12 May 2022 09:35:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=TztKdwt72p/ktvB8bFE21AfQ364YewJi5ekDXEIKiBA=; b=LoixVsggEnoV+tzmOjSgpHZCEKKJy0GvEPRQ6rew2XEnhTcXCygenRNY6AQYTCNPIe FlWw9h3+SZRnGuUHvz3LTL9Yn2g8iptpzVivM3rsIdlME1xsUVoTX9L6X52y04ydaXK5 h4mtdALhgdB+NSIGeVqAFu2UFXBrB9aoVwyTbew8pf3u83DqvHGuwvFH4QoGap4DrXnq 1k0l906vQ7GKHmc9JELGGRB2eJFf+iy1vP51FLw21iPMQ9zqe+nX6ac9TDyWQUNy8qa+ Dfv50dlFRq5JxLgOy84AzaHuCdHWL0qP7dxbVvDRQmdyjQN8TRgQCKKldVGdSRL4gbyf ug4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=TztKdwt72p/ktvB8bFE21AfQ364YewJi5ekDXEIKiBA=; b=bXZlMZ4uCtM03U9IB+l5tqMZFJHtK48sXRaoapF5IMWLCdmzUhpcVADQl3KMJlKa3e Q804ncxa0QD+cexf8NZYqlis7IqhCj40ojdH9vp+/Dnhr2VrDDqimpnx1FeKXOmKNDPa kye83BsjXKLAg2BxD5A0h1lg6K4PDoPTMrdgQ3/nOCVM12/qJaPGJnkQljr6qnc9EBAv k6OreH/DaWj5B4V83hAmdwcqV/uu1Yw8PZm6o0OIHkcfAoUp70EoW0Xb3uT3TYKb2PVl JrlSAHu5z1PWwaJxn7pz3NJ47eu5zToaLabP4YhkFYYK48cwi1kxhI9Iz16o2tcBSKWN eYHA== X-Gm-Message-State: AOAM530ErvIRkS84dyzrFaanDSI4M07WwV7G75pHpyfXVXEovjQc+3nC bQg9DvwjSfFk+6vs0a6Co+nhEQ== X-Received: by 2002:a05:6000:1d93:b0:20c:58f8:f530 with SMTP id bk19-20020a0560001d9300b0020c58f8f530mr459983wrb.254.1652373349448; Thu, 12 May 2022 09:35:49 -0700 (PDT) Received: from localhost.localdomain ([2a01:e0a:f:6020:253e:ae0a:544b:2cb1]) by smtp.gmail.com with ESMTPSA id j25-20020adfa799000000b0020c5253d8dbsm21814wrc.39.2022.05.12.09.35.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 May 2022 09:35:48 -0700 (PDT) From: Vincent Guittot To: mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, bristot@redhat.com, vschneid@redhat.com, linux-kernel@vger.kernel.org, parth@linux.ibm.com Cc: qais.yousef@arm.com, chris.hyser@oracle.com, valentin.schneider@arm.com, patrick.bellasi@matbug.net, David.Laight@aculab.com, pjt@google.com, pavel@ucw.cz, tj@kernel.org, qperret@google.com, tim.c.chen@linux.intel.com, joshdon@google.com, Vincent Guittot Subject: [PATCH v2 0/7] Add latency_nice priority Date: Thu, 12 May 2022 18:35:27 +0200 Message-Id: <20220512163534.2572-1-vincent.guittot@linaro.org> X-Mailer: git-send-email 2.17.1 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 This patchset restarts the work about adding a latency nice priority to describe the latency tolerance of cfs tasks. The patches [1-4] have been done by Parth: https://lore.kernel.org/lkml/20200228090755.22829-1-parth@linux.ibm.com/ I have just rebased and moved the set of latency priority outside the priority update. I have removed the reviewed tag because the patches are 2 years old. The patches [5-7] use latency nice priority to decide if a cfs task can preempt the current running task. Patch 5 gives some tests results with cyclictests and hackbench to highlight the benefit of latency nice priority for short interactive task or long intensive tasks. Change since v1: - fix typo - move some codes in the right patch to make bisect happy - simplify and fixed how the weight is computed - added support of sched core patch 7 Parth Shah (4): sched: Introduce latency-nice as a per-task attribute sched/core: Propagate parent task's latency requirements to the child task sched: Allow sched_{get,set}attr to change latency_nice of the task sched/core: Add permission checks for setting the latency_nice value Vincent Guittot (3): sched/fair: Take into account latency nice at wakeup sched/fair: Add sched group latency support sched/core: support latency nice with sched core include/linux/sched.h | 3 + include/uapi/linux/sched.h | 4 +- include/uapi/linux/sched/types.h | 19 ++++++ init/init_task.c | 1 + kernel/sched/core.c | 90 ++++++++++++++++++++++++++ kernel/sched/debug.c | 1 + kernel/sched/fair.c | 105 ++++++++++++++++++++++++++++++- kernel/sched/sched.h | 34 ++++++++++ tools/include/uapi/linux/sched.h | 4 +- 9 files changed, 257 insertions(+), 4 deletions(-) -- 2.17.1