Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2264964pxa; Fri, 7 Aug 2020 07:15:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzQM96GtVx0DvJJH6mz3pN55t6/VrrgmYejFkKIvZeqlnqeLOv+xD678IGPq+i1XOnxovhX X-Received: by 2002:a17:906:4bc5:: with SMTP id x5mr9942232ejv.177.1596809704106; Fri, 07 Aug 2020 07:15:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596809704; cv=none; d=google.com; s=arc-20160816; b=GaUALaLWn8IRdHTeFTonjsMPHBBnyI1jxSCj4zndNvU9eCtTqYH01DzAVUslTc8FsC UcoRW5XFbF//4Gz8daZ+rStiQeOuoH3mtr4BqA3WQMv6D9ZOKuiaKEjMyH15J5n5RP99 7kkiSQOFv9NTWilbF6jUh8yDo0OD8gRksDRRUmipqfP/46boNArv+af1CODSi6imZCGC iasNC2/uIGsqQKcXidcARdI7fwmDnQtb0MOnU2xddXNoupcqd5cDAIkJWRsTSl6M7+T7 sm0RbOmUqb89H34KV54XEoOsbPSsYBcoUeSwTCsD+hGKhwLYsnTSolRMou24SPrQ4LWV NPSg== 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=3c1yw7k9X8hm0dHhBiwxK4zbTgM0Mhf/wXgVInw3T7o=; b=z8Izih2P1o1b2UOo6UqgvlogItnq9mXzBEGii/2ejSNpgkTxXV0BKi9u9wuO7+GLzb EttfvkpnlS51xqANd7m1KvvSQAPmL4vFF2c45mTB3/g8t9Pk8AqBcr4ZNVlbqvmbgn1u otYtAiW826ra/x9V3JKOzg6vVc582aPyhgmrG8xFyctH0RpV4hIg/uMOuEYxs/moQiZx 5CDzoCeWkPNcxV7OYZM7RYjHR/A4cDjSLDxWAj4uXADqppJtEf7sUHRlhuaG+CLbGgS6 C2jIkjjZ+9i0Sou5TYRz4cnqXmQfkGTlSPXels0nt8eyVasjFFmtvOFyBS6Mma73ajds JmCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="f/CMPYJc"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b6si5896075eja.559.2020.08.07.07.14.40; Fri, 07 Aug 2020 07:15:04 -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=pass header.i=@redhat.com header.s=mimecast20190719 header.b="f/CMPYJc"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726262AbgHGOMI (ORCPT + 99 others); Fri, 7 Aug 2020 10:12:08 -0400 Received: from us-smtp-1.mimecast.com ([207.211.31.81]:54969 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726066AbgHGOLx (ORCPT ); Fri, 7 Aug 2020 10:11:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1596809502; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=3c1yw7k9X8hm0dHhBiwxK4zbTgM0Mhf/wXgVInw3T7o=; b=f/CMPYJcJd4OSgP3ax8o737m6VPtV/TCMJUd3dRNjEZCoEHNhUm0bKvKRzriVCgzuvfvgn jb2asCFbx01CsDiLiskrU35q0qKt/UWz+NOiWdJaeYvWF4n4jwQ1BtVhJ8AWV2aqcFH2Dd qrzYqlE3qzzot+7BmkNgFoaq1GED99c= Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-299-otYKLkrZNeOONZ2F4nI8Ug-1; Fri, 07 Aug 2020 10:11:39 -0400 X-MC-Unique: otYKLkrZNeOONZ2F4nI8Ug-1 Received: by mail-wm1-f69.google.com with SMTP id c124so727490wme.0 for ; Fri, 07 Aug 2020 07:11:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=3c1yw7k9X8hm0dHhBiwxK4zbTgM0Mhf/wXgVInw3T7o=; b=dZlX+kRSSNRzi+Dt6sc5q5OG/ix7SfWRTK2a66c4bVnafuX3kKeMVFaZ/NeaiGdpwp LYfG0OIoCEfMFiscwyPr6xRMqkWE89pavef3lOGOp5nFSWWFENGg62rsj0o53/58k1wK pZvUlYnSmOcQeth9MwDMrhGpzA4x9oQvdtpkUn9eehroHnC/Ytr6+uB/2tm8690zUtoO nwxvOf/rrt0SiSUSDsAMPkTM/vkrAOjFJRxupWjU85DCLryLEWa6BG88NoW8Px3R6H99 Db7xqcTEVymidga70wF4AhenGywb9XPdHJP8ncXMEA5tmknkgEzaNBttjf7R0ODSWGs2 O0QA== X-Gm-Message-State: AOAM532KbvtorxHxhtz64BVaz0mmcUbcvEA/dJWOohBS9qbJyFZYcW5P kw1Rp6qC09OzM3xLISh1p7HBlYV659OktOSsE1obwhlPd2rjQOUhTu+1p3gVDWdHGUD2SbhHa7b RrHXUQovR/r3UHvNmpmx979UG X-Received: by 2002:adf:81c5:: with SMTP id 63mr12748578wra.185.1596809498242; Fri, 07 Aug 2020 07:11:38 -0700 (PDT) X-Received: by 2002:adf:81c5:: with SMTP id 63mr12748548wra.185.1596809497939; Fri, 07 Aug 2020 07:11:37 -0700 (PDT) Received: from localhost.localdomain ([151.29.36.84]) by smtp.gmail.com with ESMTPSA id o124sm10775755wmb.2.2020.08.07.07.11.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Aug 2020 07:11:37 -0700 (PDT) Date: Fri, 7 Aug 2020 16:11:35 +0200 From: Juri Lelli To: luca abeni Cc: peterz@infradead.org, 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: <20200807141135.GT42956@localhost.localdomain> References: <20200807095051.385985-1-juri.lelli@redhat.com> <20200807095604.GO42956@localhost.localdomain> <20200807152832.591f462e@nowhere> <20200807134353.GR42956@localhost.localdomain> <20200807155510.2b380f49@nowhere> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200807155510.2b380f49@nowhere> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/08/20 15:55, luca abeni wrote: > On Fri, 7 Aug 2020 15:43:53 +0200 > Juri Lelli wrote: > > > On 07/08/20 15:28, luca abeni wrote: > > > Hi Juri, > > > > > > On Fri, 7 Aug 2020 11:56:04 +0200 > > > Juri Lelli wrote: > > > > > > > Starting deadline server for lower priority classes right away > > > > when first task is enqueued might break guarantees > > > > > > Which guarantees are you thinking about, here? Response times of > > > fixed priority tasks? > > > > Response time, but also wakeup latency (which, for better or worse, is > > another important metric). > > > > > If fixed priority tasks are also scheduled through deadline servers, > > > then you can provide response-time guarantees to them even when > > > lower-priority/non-real-time tasks are scheduled through deadline > > > servers. > > > > Right, but I fear we won't be able to keep current behavior for > > wakeups: RT with highest prio always gets scheduled right away? > > Uhm... I think this depends on how the servers' parameters are > designed: assigning "wrong" (or "bad") parameters to the server used to > schedule RT tasks, this property is broken. > > (however, notice that even with the current patchset the highest > priority task might be scheduled with some delay --- if the SCHED_OTHER > deadline server is active because SCHED_OTHER tasks are being starved). But that's OK I think, because if the server is active it means that OTHER didn't get a chance to run for some time and if it continues to hung than worse problems than breaking FIFO assumptions will happen. :-/