Received: by 10.192.165.148 with SMTP id m20csp7608imm; Fri, 20 Apr 2018 01:59:17 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+8V92cyvXyQWk91u2uj1cT3o8AAW0qL8OkYmjO37EnCCueuZZ7fPAWYjWrgwwGsheadeTQ X-Received: by 10.98.163.21 with SMTP id s21mr9014624pfe.168.1524214757612; Fri, 20 Apr 2018 01:59:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524214757; cv=none; d=google.com; s=arc-20160816; b=QZiPszzYawGUz5sG22+MmUQbm50bgmNhdDnelyVoC153afqIplP1dPMLiv0LRrDnUV 0frhfQzIF/r55yFt9N5Dybd2dHTY04QYz801EAQxnTvcsPZjZ1YY0kzmaH6N2C06pWsm qFGw0S/F2kMDisAnbiaHqOfc10MDLFCfjM+BJjTfjFcqQ1EO7PfhUN49enYJ2LG8DBGm yJ11si4Ja3/hNGN5TNMNFmU8QzMGidOxeMZJ7/mHM0vSzumkyaoOAQMDomo+2xqRQKxv c0CNGOGDyqNKmtHut+idOaHvXbiduGg4Fyul/UI7/Kiw88lPkugmY55I4bY3SCD+pj3J byvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=8IZAySK+ZNwbbsd60vhvY/nKlpaHuRhBttE/IQQEsRU=; b=xC03HlAABSrUVz9ehFDME6DGv/aGc6gRbgEhaQjPAU3tQrQM7oaY5sb8oBoRb7bPJu 49VB2qW652HDDmcErmsnYYyFEmqrs20gqpigooyPDvTbPTJ5Q+Qj6IeasKPCUsd/Lfl7 oeSvK4u91gJ3myzzv8er0STxYqvPpXlrKkxVlTCZ1JD0LLGe/jEMmwmcIPSGPDhT3JXh 4X27e8HxAh8OHWND4lv/+rPRmVfe1kHgrRN3YIv92ZCzDoKOn/jRKV+6Af3a0wgM1Kjq 0jiTtecYeETj9wpb5MJbw0uEqcV7/nUMsJgNEkbIBT94eJ0lU3JiG4wBUoO7f+xOSGkt reiA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 71-v6si5475516plb.511.2018.04.20.01.59.03; Fri, 20 Apr 2018 01:59:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754210AbeDTI5a (ORCPT + 99 others); Fri, 20 Apr 2018 04:57:30 -0400 Received: from mail-wr0-f195.google.com ([209.85.128.195]:38433 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754106AbeDTI52 (ORCPT ); Fri, 20 Apr 2018 04:57:28 -0400 Received: by mail-wr0-f195.google.com with SMTP id h3-v6so20907277wrh.5 for ; Fri, 20 Apr 2018 01:57:28 -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:user-agent; bh=8IZAySK+ZNwbbsd60vhvY/nKlpaHuRhBttE/IQQEsRU=; b=N2osaZUd/Gfz0kN3vHe8FElzec5IyYup4LqvE1Gs7fITBVbem+2Tr3QrsKiAfxEMVi s4dP2SLI+1es7IiSo47rZ8zCOd8ffgfEsGWMz7HPSQ5qPppL387L7HnBYf3DsXslnANZ VPq8fYX6okcxsFGNMWFlRJqZ9J4sRdvVKgLkOMnbyur9b/YPpJbqO1s+D6Sd08tZd379 cgB2SP11WAhuwVULij8NH1KjzxNS/jnW0rtyqL+jCyA60G+e2WHnhf00R+0wKjeJ8jiS qgv7ScmKY/1EmHLCZXuu823GNA01p+yvVB4Mp6RSi9R74y57bW3Oh0Tf/dfw2tlaw2ta wN/Q== X-Gm-Message-State: ALQs6tAb4jCjx5UWvKAqR07IehgjL6lTGmcsH7GwRLa2r5Ex4pYoSoiO 75UXv1orXXmMhydA6G6yXIQeCA== X-Received: by 2002:adf:9205:: with SMTP id 5-v6mr7417228wrj.282.1524214647654; Fri, 20 Apr 2018 01:57:27 -0700 (PDT) Received: from localhost.localdomain ([151.15.228.118]) by smtp.gmail.com with ESMTPSA id 63-v6sm6952414wrh.70.2018.04.20.01.57.25 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 20 Apr 2018 01:57:26 -0700 (PDT) Date: Fri, 20 Apr 2018 10:57:23 +0200 From: Juri Lelli To: Quentin Perret Cc: Joel Fernandes , Dietmar Eggemann , LKML , Peter Zijlstra , Thara Gopinath , Linux PM , Morten Rasmussen , Chris Redpath , Patrick Bellasi , Valentin Schneider , "Rafael J . Wysocki" , Greg Kroah-Hartman , Vincent Guittot , Viresh Kumar , Todd Kjos , Steve Muckle , Eduardo Valentin Subject: Re: [RFC PATCH v2 3/6] sched: Add over-utilization/tipping point indicator Message-ID: <20180420085723.GE24599@localhost.localdomain> References: <20180406153607.17815-1-dietmar.eggemann@arm.com> <20180406153607.17815-4-dietmar.eggemann@arm.com> <20180418111729.GB6783@e108498-lin.cambridge.arm.com> <20180420083118.GA14391@e108498-lin.cambridge.arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180420083118.GA14391@e108498-lin.cambridge.arm.com> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 20/04/18 09:31, Quentin Perret wrote: > On Friday 20 Apr 2018 at 01:14:35 (-0700), Joel Fernandes wrote: > > On Fri, Apr 20, 2018 at 1:13 AM, Joel Fernandes wrote: > > > On Wed, Apr 18, 2018 at 4:17 AM, Quentin Perret wrote: > > >> On Friday 13 Apr 2018 at 16:56:39 (-0700), Joel Fernandes wrote: [...] > > >>> > > >>> I'm wondering if it makes sense for considering scenarios whether > > >>> other classes cause CPUs in the domain to go above the tipping point. > > >>> Then in that case also, it makes sense to not to do EAS in that domain > > >>> because of the overutilization. > > >>> > > >>> I guess task_fits using cpu_util which is PELT only at the moment... > > >>> so may require some other method like aggregation of CFS PELT, with > > >>> RT-PELT and DL running bw or something. > > >>> > > >> > > >> So at the moment in cpu_overutilized() we comapre cpu_util() to > > >> capacity_of() which should include RT and IRQ pressure IIRC. But > > >> you're right, we might be able to do more here... Perhaps we > > >> could also use cpu_util_dl() which is available in sched.h now ? > > > > > > Yes, should be Ok, and then when RT utilization stuff is available, > > > then that can be included in the equation as well (probably for now > > > you could use rt_avg). > > > > > > Another crazy idea is to check the contribution of higher classes in > > > one-shot with (capacity_orig_of - capacity_of) although I think that > > > method would be less instantaneous/accurate. > > > > Just to add to the last point, the capacity_of also factors in the IRQ > > contribution if I remember correctly, which is probably a good thing? > > > > I think so too yes. But actually, since we compare cpu_util() to > capacity_of() in cpu_overutilized(), the current implementation should > already be fairly similar to the "capacity_orig_of - capacity_of" > implementation you're suggesting I guess. > And I agree that when Vincent's RT PELT patches get merged we should > probably use that :-) Mind that rt_avg contains DL contribution as well ATM https://elixir.bootlin.com/linux/v4.17-rc1/source/kernel/sched/deadline.c#L1182 So you shouldn't add newer DL utilization signal to it. OTOH, using RT PELT (once in) is of course to be preferred. Best, - Juri