Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp1618536rdb; Mon, 2 Oct 2023 15:50:41 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE9eiZ7OxkYOtwdKW1xN7Q1e7OKESehs8bhX2M1nnfUY/6sHfsfyWU/WNiVtIytbyoy5coy X-Received: by 2002:a17:90a:6a82:b0:273:4bbc:c3d0 with SMTP id u2-20020a17090a6a8200b002734bbcc3d0mr9167572pjj.27.1696287041628; Mon, 02 Oct 2023 15:50:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696287041; cv=none; d=google.com; s=arc-20160816; b=0fxmhrQ3Zfv0cJ1o6I29I8fEdPpZ4UmDy5kNnH+1w4T5CDXCq3IEIyVj3p1lSp3Q84 2yj10rJnGD3zU13D3m7saO03z7yJEfg1f1evH5MuGR66t29inUlcFJtc0CkzYd9uzeBv CzMhXpc82tg8lfq8ehuU3+TxXrkNrEkycIptJG9c1wl3oJs7W91WB1uRcUmWPVNQPp/R Wp0+qGqNsY5w9JenFg/tD9ai63v6wfl9zc41geUErpv+n7gp8tl6zNJ9XYsUv3Ick0KP hlPRirGo0mADmiM3Ionj/z7AGSwmmjWf+N5iC8VRyVnsMBAD68mDswJAGsF4Bkov35P5 3+7Q== 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=nyWCVXS8PqBYuLCq0GKreS/wQJesJaUJKyaLwZQihgg=; fh=p+3SfeoXWgG/1gOBDlxvHpzXOEAFeDYhq1lLhLIPRnM=; b=zOaX0mV+gr4vjv0jD6pOaKfhpOu23cY/R8jzegV2zh4Y1zy2ktfXjT4MZsSUEHRa3h WzRNOiZRmU/VxzMp7ht7TR5/EUHuRdBSiFe89WO7YxptZ6/TQXxF2wgeiNuHwVpFVkOd LHcdIWAA1L1pXBRalEJOrQTWMtAVs7nKhgHEQjP77dIGMBLzAXtAvupha37sid/Gq4Mq 8BJdhh2/nKRI3lHdDJ/wk60G4eqmDL6ajawyLye0ugJKYcMbLXrT3T/6ChPUDMfFqQi6 gbFTFMYypaO8W8tesQhmAhLitzf4wfHyQxjOfWwyT7fNsHgTnm4wB4++bve07f2R0kj8 PZxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=vs9VL1IW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id o2-20020a17090a4e8200b002774f38c8f6si8420540pjh.29.2023.10.02.15.50.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Oct 2023 15:50:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=vs9VL1IW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 119028106735; Mon, 2 Oct 2023 11:42:39 -0700 (PDT) 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 S238774AbjJBSmh (ORCPT + 99 others); Mon, 2 Oct 2023 14:42:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36064 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232711AbjJBSmg (ORCPT ); Mon, 2 Oct 2023 14:42:36 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B4561B0 for ; Mon, 2 Oct 2023 11:42:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; 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=nyWCVXS8PqBYuLCq0GKreS/wQJesJaUJKyaLwZQihgg=; b=vs9VL1IWPHTru7ozL6Wh/0gUsr fgshk/L0VduYyAUrlincQ0IA5G7RQe2lGO8kFO+IWBoBIVDAWl7ChgdfAOcm+Bmkk2J8fTL7jC1Ed Q9XRkkSPbqcBHdhT8k02bqqCnIFb8c0OGRzF96dp6TKHzG1N7aaiQdc5bmWs++fqU8HFBroxu7HqY u5E4XUFJvoCSc1bYgLWVvdRDUaTKKQtVOKF4WkPHGGTcdSJdiCopR+eAzrAU/GGBX/mwVrhGrZkbK PZiMf+WkgpdgMFqlxkWQoMHvr5ieDS8RPaJi28B/qLZtAuyBBBoZ07oq1ivv2pvrlil6+97PYX/Rt UQsoxWtQ==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1qnNrN-00Aazz-DL; Mon, 02 Oct 2023 18:41:37 +0000 Received: by noisy.programming.kicks-ass.net (Postfix, from userid 1000) id C1972300454; Mon, 2 Oct 2023 20:41:36 +0200 (CEST) Date: Mon, 2 Oct 2023 20:41:36 +0200 From: Peter Zijlstra To: Youssef Esmat Cc: Daniel Jordan , mingo@kernel.org, vincent.guittot@linaro.org, linux-kernel@vger.kernel.org, juri.lelli@redhat.com, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, bristot@redhat.com, corbet@lwn.net, qyousef@layalina.io, chris.hyser@oracle.com, patrick.bellasi@matbug.net, pjt@google.com, pavel@ucw.cz, qperret@google.com, tim.c.chen@linux.intel.com, joshdon@google.com, timj@gnu.org, kprateek.nayak@amd.com, yu.c.chen@intel.com, joel@joelfernandes.org, efault@gmx.de, tglx@linutronix.de Subject: Re: [PATCH 00/15] sched: EEVDF and latency-nice and/or slice-attr Message-ID: <20231002184136.GA1539@noisy.programming.kicks-ass.net> References: <20230531115839.089944915@infradead.org> <20230906131356.GG38741@noisy.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 02 Oct 2023 11:42:39 -0700 (PDT) On Fri, Sep 29, 2023 at 11:54:25AM -0500, Youssef Esmat wrote: > > > > EEVDF fundamentally supports per task request/slice sizes, which is the > > primary motivator for finally finishing these patches. > > > > So the plan is to extend sched_setattr() to allow tasks setting their > > own ideal slice length. But we're not quite there yet. > > > > Having just returned from PTO the mailbox is an utter trainwreck, but > > I'll try and refresh those few patches this week for consideration. > > > > In the meantime I think you found the right knob to twiddle. > > Hello Peter, > > I am trying to understand a little better the need for the eligibility > checks (entity_eligible). I understand the general concept, but I am > trying to find a scenario where it is necessary. And maybe propose to > have it toggled by a feature flag. My initial response was that it ensures fairness, but thinking a little about it I'm not so sure anymore. I do think it features in section 6 lemma 4 and 5, which provide interference bounds. But I'd have to think a little more about it. The current setup, where all requests are of equal size, then virtual deadline tree is basically identical to the virtual runtime tree, just transposed (in the static state scenario). When mixing request sizes things become a little more interesting. Let me ponder this a little bit more.