Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp2157942rdf; Mon, 6 Nov 2023 06:25:17 -0800 (PST) X-Google-Smtp-Source: AGHT+IHjrzG4VWgclYcH5fzGkq3jgublR/ph4OidMkP+0E3DeobaHMex43Vwmq0kg/88nDg+0jbd X-Received: by 2002:a05:6a00:2356:b0:6b1:bf32:4fb5 with SMTP id j22-20020a056a00235600b006b1bf324fb5mr26296884pfj.28.1699280717385; Mon, 06 Nov 2023 06:25:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699280717; cv=none; d=google.com; s=arc-20160816; b=MOJ0E7pFkYUND+uC9Vp+94V7hipEDhbE49pKvZUPxFBCbNX8ykAVoUTQ9IBrNSY0Qr OkG1nITSRqfB6KaZwtysVXQRt6TZEidP26+C3okIYo9edusISYG/N9da4JJZu7U3mEa0 BivhGULlE1hqF81kYr9H7cVxfrgYmbLtzXZY6k0F/ThoVUg3Blk34s1HZpH5VDs1nj28 Ql+4r6SKV7/NXw/C5tFHDgFz+vf7lCBO8vtfRTHSLo/pMT3Gc7YhetNioBM9s75I5hQq GvpvQavS/XLOJZgJoqEVj1zi6j25iqwKGh9qyTmo/+Ts38Il9l6j6zuDwj9Q0W4SYlDb Epdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Ru6akWdDI9qjF0C1ZdQG8GZxuKhYDPwGk6ba5A7x1CA=; fh=TqUufSrsSTunWvlKWl6WsuSIqHx0uhxZWTQpn6Im9mg=; b=kiWfEkIp6oWrcf9OvWjhOICm3LdaWO/3FXOqCgn8KXYIIg55VCGV4p63EoFhWigekI ugyVWusK+9mWqj2qVmvRIJibXJmWGI3JyKFXUaf6yKEcQeAhTCf+WqGuAVU0jJGYXLuE pHXZpokh6R8w5Z6qMai9xlm5qlZb1lwwUEK66YnRQTh8U6+KudAe9K5BvYXNlirR0kmO YWDi19IUKNTo7cJthtmn+enj5zWyODOEzF4Bv80Mlo0w0zat4v6zNmpE5f6CxDrbfBY7 vNNwFAsuT8FPdcuhNYCQoNm0ma4vQJEmt3naoV3unMOOh0HucTR5eoLFEkUYdDx2/A2O XwIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=PxqlT8UH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id fb17-20020a056a002d9100b006a68a46431bsi8362118pfb.50.2023.11.06.06.25.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Nov 2023 06:25:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=PxqlT8UH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 744D78028858; Mon, 6 Nov 2023 06:25:16 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231753AbjKFOY4 (ORCPT + 99 others); Mon, 6 Nov 2023 09:24:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41996 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231730AbjKFOYz (ORCPT ); Mon, 6 Nov 2023 09:24:55 -0500 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A88BD49 for ; Mon, 6 Nov 2023 06:24:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=Ru6akWdDI9qjF0C1ZdQG8GZxuKhYDPwGk6ba5A7x1CA=; b=PxqlT8UHec1fHIpMhVTMPPCBcK nh07BatdHfqbJ/ViFgutWH8OnFxL+htc5mE6/U238dsRYrg56dZDA+TFfzuPmljxH2B7bK041NYLm 4uNneNjHZlTy3t5LPKLvxx+DbhzrmOjoeiGRiHxRlX68QjH11G+T/GoxT2gIyz0N3TCi4K4g2byfC F/FWVhZx9W/vzKqSXs7lTf+3kSCFt+0cDhUb0uBnN1QAVwo4ZAMV01Q2M9pwR0ynDQjQtixrSyAZf aRnTjNWZZfkghbTjKNmEJU2yCGeJWEJy3UvyY5dzh4+MW0mRprYI1RsmGPDwH+X9t9UjgtKYr77m6 e0wd3N/Q==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1r00Wk-00Aa2M-2h; Mon, 06 Nov 2023 14:24:31 +0000 Received: by noisy.programming.kicks-ass.net (Postfix, from userid 1000) id 7B14230049D; Mon, 6 Nov 2023 15:24:30 +0100 (CET) Date: Mon, 6 Nov 2023 15:24:30 +0100 From: Peter Zijlstra To: Daniel Bristot de Oliveira Cc: Ingo Molnar , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira , Valentin Schneider , linux-kernel@vger.kernel.org, Luca Abeni , Tommaso Cucinotta , Thomas Gleixner , Joel Fernandes , Vineeth Pillai , Shuah Khan , Phil Auld Subject: Re: [PATCH v5 5/7] sched/fair: Add trivial fair server Message-ID: <20231106142430.GF3818@noisy.programming.kicks-ass.net> References: <4e0d14eb6e0ec33055197ac7ddb57ef7ab3894a5.1699095159.git.bristot@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4e0d14eb6e0ec33055197ac7ddb57ef7ab3894a5.1699095159.git.bristot@kernel.org> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 06 Nov 2023 06:25:16 -0800 (PST) On Sat, Nov 04, 2023 at 11:59:22AM +0100, Daniel Bristot de Oliveira wrote: > [ dl_server do not account for rt ] > diff --git a/kernel/sched/deadline.c b/kernel/sched/deadline.c > index 541d547e1019..1d7b96ca9011 100644 > --- a/kernel/sched/deadline.c > +++ b/kernel/sched/deadline.c > @@ -1382,6 +1382,13 @@ static void update_curr_dl_se(struct rq *rq, struct sched_dl_entity *dl_se, s64 > resched_curr(rq); > } > > + /* > + * The fair server (sole dl_server) does not account for real-time > + * workload because it is running fair work. > + */ > + if (dl_server(dl_se)) > + return; > + > /* > * Because -- for now -- we share the rt bandwidth, we need to > * account our runtime there too, otherwise actual rt tasks Should we perhaps write this like so? if (dl_se == &rq->fair_server) return;