Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2264290pxa; Fri, 7 Aug 2020 07:14:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxqxmLOIWZz3lXL4S//bKdD+jj3JDQc7v3AyFfDEpxiQAFRv+aQanVok7y2TTlI1f1RjIHl X-Received: by 2002:a17:906:95cb:: with SMTP id n11mr9223139ejy.506.1596809656117; Fri, 07 Aug 2020 07:14:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596809656; cv=none; d=google.com; s=arc-20160816; b=mLUaD5oQUPV6w7clScoh+nNngnXr366zdzoNaZZhaDH46Xvy9n+xW0uWid1hm2thjg iRcHWJlA6+Ck66giBD6l26pWrkd7MBP2wh+DV6GFQsRQ/xsiTrvjnAodK5lIl+QRquMt vQfzUE2nmk1R9h9FtgAPaAAk06uN21b3lV/CTyX+76V96j2Lw7xrPNnShbXOaLanWGvu g7w66vdacO3o3LLOS28uJ1ry9c4j0dvLKoM6rQFKYsb70VjIbcc63M1caT4ZpGU7qUzJ UPsmI0XUiENTnmIMQyoqUc8lnIZtg/SR2J5fDG7NqsGkudSrHQGIpcm+gErg65Jg4Mrb iE6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=3SeHm1ZjMHsIJfjxrX9fUGzdepcw8YyHP7a7yWdfxp8=; b=YG38J8RiMhnUBAE3K2e4jCG5y71Bld5U6h61WM8/OwmP8L4fTqvS7mCEkFmzYPaiic tg20z6gWbFmF8PLqbNziZunfZluhQGoav5JVt+bXLG3vfHViIdHajELIPKUaBMJpdtU0 ux1m+oD6yC+L4dMnYTolGGb3hE/DLDZhu3MkdO+4Hsw24FL+Zwe2/rTxsX+N9uF7L+3B b4Wtz8xVGqWSsBCPL+KsR85Y1rwsAiKE1OKV/RHch5AMJ4oh9kdZ4kIP1uazswJgWFuJ MIM0hqzoD/JgGod4do+TqpohHWNVhDLfdut/Gzw8N0KQ+P2hwgzkbGaDvo6uEdhCl2b/ lfjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=mr1fv8hg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p1si5171462edr.10.2020.08.07.07.13.52; Fri, 07 Aug 2020 07:14:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=mr1fv8hg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726167AbgHGOLx (ORCPT + 99 others); Fri, 7 Aug 2020 10:11:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42684 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725815AbgHGOLh (ORCPT ); Fri, 7 Aug 2020 10:11:37 -0400 Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD47CC061756; Fri, 7 Aug 2020 07:11:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.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=3SeHm1ZjMHsIJfjxrX9fUGzdepcw8YyHP7a7yWdfxp8=; b=mr1fv8hgzT1vJ+/IBK5iw5aGKm mu7pn6wNwqMJAeone/Rv0P5Mr1Jty9gc3ALqnSGBRb4qujMQfeNAH62LUcV2dk8bFozf0uSc+mOqk PLe3pfK1GwBLk+NGReUkckLhk2IBQmbKiRRgd1XNi/7JEzm04sMvOPUIR73O+uDaWrezu2ZCegi3s YdaCNorJIt2DcIoZenrouHeKm2x+Q/oAXf1eac6x4fvJPDIgsBoRh9L/ApJJOIBbUBfLw69Mn9T+y 25K7O5ydz9jaq3kDW/wOEMs8bybEr47Jec07uCVH+Kr4Fyb30jcKBt6hZszVO8Z9zNJrAo6ZJoeuM GYVT2xzg==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1k435d-00065v-Lq; Fri, 07 Aug 2020 14:11:21 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id EDFBC3012DC; Fri, 7 Aug 2020 16:11:18 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id AC91B21451927; Fri, 7 Aug 2020 16:11:18 +0200 (CEST) Date: Fri, 7 Aug 2020 16:11:18 +0200 From: peterz@infradead.org To: luca abeni Cc: Juri Lelli , mingo@redhat.com, rostedt@goodmis.org, tglx@linutronix.de, linux-kernel@vger.kernel.org, tommaso.cucinotta@santannapisa.it, alessio.balsini@gmail.com, bristot@redhat.com, dietmar.eggemann@arm.com, linux-rt-users@vger.kernel.org, mtosatti@redhat.com, williams@redhat.com, valentin.schneider@arm.com Subject: Re: [RFC PATCH v2 6/6] sched/fair: Implement starvation monitor Message-ID: <20200807141118.GK2674@hirez.programming.kicks-ass.net> References: <20200807095051.385985-1-juri.lelli@redhat.com> <20200807095604.GO42956@localhost.localdomain> <20200807104618.GH2674@hirez.programming.kicks-ass.net> <20200807154941.2bb11408@nowhere> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200807154941.2bb11408@nowhere> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 07, 2020 at 03:49:41PM +0200, luca abeni wrote: > Hi Peter, > > peterz@infradead.org wrote: > > One thing I considerd was scheduling this as a least-laxity entity -- > > such that it runs late, not early > > Are you thinking about scheduling both RT and non-RT tasks through > deadline servers? If yes, Maybe, I initially considered this for mixed criticality, where the 'soft' class would run EDF and the 'hard' class would run LLF (or the other way around, I can't quite remember how I figured it). If you restrict the hard class to single CPU assignment (IOW the UP case) and ensure that u_llf + U_gedf/N < 1, it should just work out. But I shelved all that after I heard about that other balancer idea Danial was suppose to be working on ;-))) > then I think that using something like > laxity-based scheduling for the SCHED_OTHER server can be a good idea > (but then we need to understand how to combine deadline-based > scheduling with laxity-based scheduling, etc...) /me consults notes, EDZL is I think the closest thing there. > Or are you thinking about keeping the SCHED_OTHER server throttled > until its laxity is 0 (or until its laxity is lower than some small > value)? In this second case, the approach would work even if RT tasks > are not scheduled through a server (but I do not know which kind of > performance guarantee we could provide). That would certainly be sufficient for OTHER servers I think.