Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp8819195rwb; Tue, 13 Dec 2022 10:48:59 -0800 (PST) X-Google-Smtp-Source: AA0mqf6vmkvhaTH/AbR2Cfm36ZDBR0zOu/8yP76f/YGx0tAW6vjFj9XthqJDJPSjC23MUytMRoWK X-Received: by 2002:a17:906:f747:b0:7c1:bb5:f296 with SMTP id jp7-20020a170906f74700b007c10bb5f296mr5661033ejb.57.1670957339270; Tue, 13 Dec 2022 10:48:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670957339; cv=none; d=google.com; s=arc-20160816; b=VExLo64gMmOIT927Q1aJtWA8vwGbrWC2e1W1JHsCYHDl8BaXXKvd2be2cthdKp6sX+ q4tmnzxS605yS2NK8IF89M0JmWTjP0LtRImpatBxosDL26/Z/nRFJgvYjl5FxQKJaYFz PiLRZuIP4LF9W6eYBeXDre5+TyX0SSMkdXR1U/ShPsKbPb78iMGJcty+0dd8xDo3OYrE E+SRls77G6xUioTOEuEHTbS6OaEuWDk53psutWL6KOGPQXoC7/PPzGH/smPtG9gdhM/5 oPNCBWRDiLivrGqcfYcv1zCg7BIzedlKtj1p59EWLwucPbmTvtmL0dKcZ5VrLCQS2ceb x50w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:date:cc:to:from:subject:message-id; bh=K4CnvuGReqFZ47B/f+8nfnOyot9E60MWIJ/w6ZnR208=; b=k8dsI334vZou5llMbxDk3xTf9H/sGdkpRIXvs+NWzbAH1e7Ch8RltTG+6hdRpJolH5 d0hu7sLtJetJGxybuhvGzudXlNdtC+Kaf+cFiaBL7cAsIz1VEY0/U7VVtLdvFdKDk8Hh upc+Ld3zVGJ0lU9okSC6nWa/BLyunjOne+ZUKKZWv+EufvoO0gA3dBD1yJKYW8xjmdNv vu8foyYYSXGKuW94qBVI1XPKf1rMujatpKg/mVWMle+IPxNPKqkOMAU1//TykFUDHuLU rZqLMFE1IFYC5oi/Moquz0czxiSQWNbHQHWaLIeuFkdZHRDl7oByempcXBTV2cXjJl44 7CCA== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id oz16-20020a1709077d9000b0078de536a3cdsi9427825ejc.119.2022.12.13.10.48.42; Tue, 13 Dec 2022 10:48:59 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236579AbiLMSlJ (ORCPT + 72 others); Tue, 13 Dec 2022 13:41:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38290 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236595AbiLMSlD (ORCPT ); Tue, 13 Dec 2022 13:41:03 -0500 Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B4F0725292 for ; Tue, 13 Dec 2022 10:40:55 -0800 (PST) Received: from imladris.home.surriel.com ([10.0.13.28] helo=imladris.surriel.com) by shelob.surriel.com with esmtpsa (TLS1.2) tls TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1p5ACn-00072R-0m; Tue, 13 Dec 2022 13:40:41 -0500 Message-ID: <52c9d084d9852cc7c769dbb76f03a13df014c37f.camel@surriel.com> Subject: Re: [PATCH 14/31] sched_ext: Implement BPF extensible scheduler class From: Rik van Riel To: Tejun Heo , Peter Zijlstra Cc: torvalds@linux-foundation.org, mingo@redhat.com, juri.lelli@redhat.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, bristot@redhat.com, vschneid@redhat.com, ast@kernel.org, daniel@iogearbox.net, andrii@kernel.org, martin.lau@kernel.org, joshdon@google.com, brho@google.com, pjt@google.com, derkling@google.com, haoluo@google.com, dvernet@meta.com, dschatzberg@meta.com, dskarlat@cs.cmu.edu, linux-kernel@vger.kernel.org, bpf@vger.kernel.org, kernel-team@meta.com Date: Tue, 13 Dec 2022 13:40:40 -0500 In-Reply-To: References: <20221130082313.3241517-1-tj@kernel.org> <20221130082313.3241517-15-tj@kernel.org> Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-J5NzES9P4xwtTmKA+te4" User-Agent: Evolution 3.42.4 (3.42.4-2.fc35) MIME-Version: 1.0 Sender: riel@shelob.surriel.com X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,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 --=-J5NzES9P4xwtTmKA+te4 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, 2022-12-13 at 08:12 -1000, Tejun Heo wrote: > Hello, >=20 > On Tue, Dec 13, 2022 at 11:55:10AM +0100, Peter Zijlstra wrote: > > On Mon, Dec 12, 2022 at 11:33:12AM -1000, Tejun Heo wrote: > >=20 > > > Here, the way it's handled is a bit different, SCX has > > > a watchdog mechanism implemented in "[PATCH 18/31] sched_ext: > > > Implement > > > runnable task stall watchdog", so if SCX tasks hang for whatever > > > reason > > > including being starved by CFS, it will get aborted and all tasks > > > will be > > > handed back to CFS. IOW, it's treated like any other BPF > > > scheduler errors > > > that can lead to stalls and recovered the same way. > >=20 > > That all sounds quite terrible.. :/ >=20 > The main source of difference is that we can't implicitly trust the > BPF > scheduler and if it malfunctions or on user request, the system > should > always be recoverable, so there are some extra things which are > inherently > necessary to support that. >=20 That makes me wonder whether loading an SCX policy should just have that policy take over all of the SCHED_OTHER tasks by default, and have a failure of the policy just return those tasks to CFS? Having the two be operative at the same time seems to be a cause of hard to resolve issues, while simply running all non-RT tasks under the loadable policy could simplify both internal kernel interfaces, as well as externally visible effects? --=20 All Rights Reversed. --=-J5NzES9P4xwtTmKA+te4 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEEKR73pCCtJ5Xj3yADznnekoTE3oMFAmOYxygACgkQznnekoTE 3oPFQgf8DXDaQVDEPmB52FNhGpq0/9CS1pbuYsFWFntBlTO9Rh4wj4pr19aZg8i1 D3RflOvjgZASN82WRgKdh6sHWKgwQMeCUcpQy9Exly2vsWFHgFwHx7p+j3udjyc3 LCDz8dRRoN4s17ahTvCitZk2YKLz7IV4igYANkl/u2q7X9nXFKFX8CW7CWRHlrkS 3CtxEt3A4wwUgp3NXiiKWsEGxkNmvAQJSzzglSnfp65lyvLfV4JHAznWHFXHie4r VeTivRteu11k1CF81NyWIg/eKnlbz1LjE4zeWpKlZCq1mUuCISiTWhfg8g7OW/jS LhguLYFv6LRNAukNTvxMxUvJ1RNCxA== =f/5v -----END PGP SIGNATURE----- --=-J5NzES9P4xwtTmKA+te4--