Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp6496141rwd; Mon, 19 Jun 2023 08:05:26 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5402xFxKcdVM7w0u1VwFMyIYUQuuqPp17sRP8xA8SnlqAKAgq7r2I/2pL4dJu2bS0MOOa5 X-Received: by 2002:a17:90a:3983:b0:25c:a3f:3adb with SMTP id z3-20020a17090a398300b0025c0a3f3adbmr9825715pjb.9.1687187125871; Mon, 19 Jun 2023 08:05:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687187125; cv=none; d=google.com; s=arc-20160816; b=hZse49jGJQAkvNI1rnzO0SgPpmn/u49cR4V4kiB33VZtW0unb9t4jqcNbrUPQ80FFy t2KrEddd2A/yVvGHEZkM3rBJhB9V7OGbS4iqTxE/MNk/0EFoVoLYkNp87ozGVrv8AF5m T4ZJ2IBNzoeTcfPoaUKJnFvtjYhpjv/xsTFCrQd9ctMgDTBbP7jqgpoUh4wsbuYiqelj EFBuHgn1YLIW91c/GHuMWXUwdvV8p6zO1O1N1eFw+wrbUorSRfO/5xxhXqdxUKsVQ5xy 7VYHDlR1AowdV0ihOEEvhl5TbJSi+rtWj1uKSnPBik8S9l+wYdlBpxrJkaxxKlLfBXKx aCkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=IoJ6xXD+OeIwBr4fWni84/fX2AtRQMk0S5tRr8cPgBk=; b=hoHbP8XFvHIMSgci9B5zgJ/2UaFvkw2XnGD8YWYNnn9J95WIHOPTE5PhF3EYc0shka jJr+9Rtwdt5L8XBmvAxrDW0onjyg8JyzbO8ODX2/kWzfnEmnNz5fLHMGdVUNKi58lly6 CewHixM44q96tCwGeXa4ie2gPxp+F4ZpZU1gNSPHseRjCHxPAnYrf7KXmTVGv/jlRje6 ShEuXNw8W8/p2zt/pci7aMMZCNMHgaQzICBomyph1Sj+u7rRwcxWBnPTHa42QeixTbU9 G5Ass8I8shcywk/1RbThMQn9aerb5F0eQ0MMAfjVhT02HtmdbyzrNeOHpCZyrGw3PjTm CtLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uFB3Yx1o; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ds19-20020a17090b08d300b0025c21590d02si7298537pjb.96.2023.06.19.08.05.11; Mon, 19 Jun 2023 08:05:25 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uFB3Yx1o; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232246AbjFSO60 (ORCPT + 99 others); Mon, 19 Jun 2023 10:58:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230271AbjFSO6Y (ORCPT ); Mon, 19 Jun 2023 10:58:24 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A5E0F127 for ; Mon, 19 Jun 2023 07:58:23 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 119C060CA5 for ; Mon, 19 Jun 2023 14:58:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E4182C433C0; Mon, 19 Jun 2023 14:58:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1687186702; bh=4UfSusgYw3exkdItnAYAPRhe1K3UVvL03XGMYn3n71c=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=uFB3Yx1o25EcZj5nxkm+DLJcYoTHRrlZ3DxXkllPSlDAfHX5a6uNbLm8oomyNc+PB znAlV7A7y1hHSLjMZO4FGf93+ymJJrxIrIa8Oj+eZdMbefIBTBGoT13UBTVBRdmqx8 M8vWnjj2+2vYI637oV2F3e9tPqGcNy76xuXr4XndyWPh2zscXPDAV8L9NEcNCCOo37 oYIV4mOs3FpHXnZ3r/AL/TgGNFZJ5G1KTcdYxnC749jmXV1Sqa+ZWIVIlDCjBVGLwL AQ9RN5QOesCbR9bY6cRKmMy137Us8Y0rHa4s2vlw4vOTB0i0x0XiDvA5udUmEq0oFh oWpTgUYiEaigw== Message-ID: Date: Mon, 19 Jun 2023 16:58:17 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.1 Subject: Re: [RFC PATCH V3 6/6] sched/fair: Implement starvation monitor To: Peter Zijlstra Cc: Joel Fernandes , Ingo Molnar , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Valentin Schneider , linux-kernel@vger.kernel.org, Luca Abeni , Tommaso Cucinotta , Thomas Gleixner , Vineeth Pillai , Shuah Khan References: <841849b5-1f9c-4f0e-2de8-1da278256888@kernel.org> <20230616120507.GM83892@hirez.programming.kicks-ass.net> <20230619120215.GO38236@hirez.programming.kicks-ass.net> Content-Language: en-US From: Daniel Bristot de Oliveira In-Reply-To: <20230619120215.GO38236@hirez.programming.kicks-ass.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS,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 On 6/19/23 14:02, Peter Zijlstra wrote: > On Fri, Jun 16, 2023 at 02:05:07PM +0200, Peter Zijlstra wrote: >> On Tue, Jun 13, 2023 at 03:41:30PM +0200, Daniel Bristot de Oliveira wrote: >> >>> In an 0-laxity scheduler, the server would run at 0-laxity, jumping in >>> front of DL tasks... that would break EDF. It would be mixing two >>> schedulers in one. It is not required and likely not a good idea either. >> >> I did consider a hybrid 0-laxity and EDF scheduler for mixed >> criticality, as have others like Ted Baker IIRC. IIRC it can be done >> using an augmented tree, but none of that solves the problems 0-laxity >> has (like over preemption and the general problem of playing chicken by >> doing things at the *VERY* last possible moment). >> >> I think I did a talk at OSPERT on this at some point many years ago. >> Luckily some bright fellow had this semi-partitioned stuff that would >> make live much simpler :-) > > I must clarify; I was thinking Least-Laxity-First, which is ofcourse not > the same as a 0-laxity scheduler. ok, least-laxity-first is another thing... I think the 0-laxity came from the need to wait until that point in time to deffer the dl server for the throttling case only... not as a scheduler. but still, the vast majority of research is concentrated on EDF. The laxity depends on the runtime. As the task consumes runtime its laxity changes, so its priority. With deadline only, the priority stays fixed during the job (Job level fixed priority) It is easier to take decisions, less overheads & context switch and we can explore things with virtual deadlines. IIUC, the EVVDF is also uses virtual deadline abstraction, right? -- Daniel