Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2571516rwd; Fri, 16 Jun 2023 05:38:33 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6T9xuW0HNjO1cly9TT4kb2IbVIVpKv3idCPcnVtYXL+B/Mq6R5vhcaoUFXYrEd0VtS9NPd X-Received: by 2002:a05:6a00:1482:b0:65e:ec60:b019 with SMTP id v2-20020a056a00148200b0065eec60b019mr2149713pfu.25.1686919113208; Fri, 16 Jun 2023 05:38:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686919113; cv=none; d=google.com; s=arc-20160816; b=V2DuXVtfHkdwalWeCnTNi3JocKV8PT6afVRSP05BXKsYshxvmVIYxWu+gvdT8Gaect C54C9GseYkjskUkjcdSYIMk7awF4QDSoi1YY0zN9I+xe2FDrrmi+z0A22IzNuonQN1Ss et0Reeond/UBzvY7E7mdY92+R4rfFiRO5B80FYg7IKMjg9EXNk4GPeBG3tvXLKjInjNn nV8PAmrW7jMW+hGe6T1aPxS8AQhJq4H36QgCks2BwPvV1bE2xDIX42Q8quqWZAMkQg9z OfMw6aI02L8VKXEkjMGCC6vNndl+OGBONyr4pWShDba4Z5oJQC+j5zHu/36P1YPSlB6M eWKA== 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=BMWKQx/mtkx2lMD06UOMU56OLs1sHtFnRGm3UCPFjUg=; b=COVFx9/HvtK6JJtuoMvrP0D8zCWzYdfKLShUxKsfJz9ORlo2qnrKhoOo+lUHfAwX8h W8nvv1z+evGqAoBm/zsAsOzF4ALq+6sl0HiHbieLfU2MbXuM2SB0uSyKgOr43h4c4scf 1m0j3pqyndQgmCQtKqBXhHeDdAvIanOWbMNLqmnnfVGfZ0iv+7na0c2NwFndbb1Xvc+y R90249KmYLVj+PGRXcC+tsAh4kfLju89j6HkCcRnOQiVcl7h0hJ9k5P+eZRWGJn7uJsq r+3XZsb5SxRZ9SjaHoRHgnDQ+xPDAlEmfwJiDSMBQP05C/Lc/DCv23lcd70RdUEUHk3m Ajww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b="gohQ/wSu"; 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 bk13-20020a056a02028d00b0054ff739cfa2si3367027pgb.449.2023.06.16.05.38.19; Fri, 16 Jun 2023 05:38:33 -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=@infradead.org header.s=desiato.20200630 header.b="gohQ/wSu"; 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 S1345125AbjFPMFX (ORCPT + 99 others); Fri, 16 Jun 2023 08:05:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48174 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344705AbjFPMFU (ORCPT ); Fri, 16 Jun 2023 08:05:20 -0400 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 EC2C6295B for ; Fri, 16 Jun 2023 05:05:19 -0700 (PDT) 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=BMWKQx/mtkx2lMD06UOMU56OLs1sHtFnRGm3UCPFjUg=; b=gohQ/wSu9j4t99gn/TB0YXjDpa 503CS3oJJ3m1ISuk2gWHLB5f3x3SPkRcxzHn2p4g2ZjRlVd61IAfQK1mFlXp0Gk7un2gRROKTY8lw OdukHnqfIIqrCbVxMJ2vmVnupEH0+EVFm7x43ROf1YTf0OIAbpn80SLhYuDs7rxNn07fkhMzDu2bE 4wR/SwZ0WRGFmp2UhDKH5q+pnKQ3mmoUZndO4WFXaJtf5eAeDrFM4D236NjYkJNqShndn3w41AiXe uEANT1yjVxB0DxkL7DvzJmcTCIJNFotE3Pmr8Y1E+5oeRNNm+n/y70iUXcCAf9jWEqBgP24C8vFMl 2sxwCmyQ==; 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 1qA8CS-00CuY0-18; Fri, 16 Jun 2023 12:05:08 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id D3C7530020B; Fri, 16 Jun 2023 14:05:07 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 901F32C16E13D; Fri, 16 Jun 2023 14:05:07 +0200 (CEST) Date: Fri, 16 Jun 2023 14:05:07 +0200 From: Peter Zijlstra To: Daniel Bristot de Oliveira 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 Subject: Re: [RFC PATCH V3 6/6] sched/fair: Implement starvation monitor Message-ID: <20230616120507.GM83892@hirez.programming.kicks-ass.net> References: <841849b5-1f9c-4f0e-2de8-1da278256888@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <841849b5-1f9c-4f0e-2de8-1da278256888@kernel.org> 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,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 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 :-)