Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3939153ybz; Mon, 20 Apr 2020 12:15:55 -0700 (PDT) X-Google-Smtp-Source: APiQypJz3cqRWyl6XrqshXCBHsgEj/Gihd38CTCtPZepDzI4JsApdfb0DEH9cXemzPr3ktgTuRBY X-Received: by 2002:a50:d7d3:: with SMTP id m19mr15969503edj.285.1587410155470; Mon, 20 Apr 2020 12:15:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587410155; cv=none; d=google.com; s=arc-20160816; b=tSUl22T9iyOOcB/V2g4QMIWzbrxS8sfde6wGSxf2wMvH+8OVk4SRS1zAYpZiOwlTSa KftIWLXliPjq1ss36mBXTtVllAXC38mx0rZNFvHDBFLFyqGlXYqz8fjV/cbSfWK9UT0c b5XsYxW7KO13Gd8SNtv9D6O5/zRi8xefpxpj3l9cgENFRAuLPOlVoNtD45yQRX4Q/oGx 7KXkCBahSfc3F55Ten75bSt2rSwtx/0IUtbuXrnhjXMQXGdDBJupNnL2UMPTgNYIyf0M arHnoq/pEzUl5VT3Bf315x9EKuApnc2/bfSB3q9T0zH3O9uMUYRlGBJaeRD5ZwcsqcYh 7M6Q== 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=8HGDegx+kGpjwn1/GckrWYW28OTALFvmx7Qs3hk7rBM=; b=p2YzPOGVxiVgh35RIMG713o9Qcy20I0IM1VcUzlzpyAdX0mg2sBLEgN0VfpwBF1L8m x8YX7rn6wdMzxT0884qeIr+OkGf7xqn0NsBlXxPmG+w7e2vZ4+a+hDOQrbFaVNwjq2ZU qU6GyZmfAYi9GVIgcWEEOUZSjgWPV7Yoq54QsG6RY4XR1COgHdEIWCKZegV83qjRq9C2 +pB4w8Yrjwwxiy3qZvp5+gbl1qVgFihrenTp4NkGPZYg1xaMg6SU8huskv/v76GFJa4t sTkXfUVnqqzAYaCXxbiBT46XS86aubL6rAWqGRBl9nclJ9ThlWWYTv6Qr0hnBCsvnBRm EiQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b=aCC3ants; 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 c6si272940edq.393.2020.04.20.12.15.32; Mon, 20 Apr 2020 12:15:55 -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=@joelfernandes.org header.s=google header.b=aCC3ants; 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 S1727902AbgDTTOe (ORCPT + 99 others); Mon, 20 Apr 2020 15:14:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38242 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725896AbgDTTOd (ORCPT ); Mon, 20 Apr 2020 15:14:33 -0400 Received: from mail-qt1-x844.google.com (mail-qt1-x844.google.com [IPv6:2607:f8b0:4864:20::844]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 95B18C061A0C for ; Mon, 20 Apr 2020 12:14:33 -0700 (PDT) Received: by mail-qt1-x844.google.com with SMTP id n20so3311178qtp.9 for ; Mon, 20 Apr 2020 12:14:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joelfernandes.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=8HGDegx+kGpjwn1/GckrWYW28OTALFvmx7Qs3hk7rBM=; b=aCC3antsZfqvzj5CdafkTpV3OjDe2nl4TxRPqk3Bi5acoWuTSpuEVT/wb28db7wFR0 3axoAkSyoADptYw5L20w1h5mCVUFDl03Xb4o5xQX1LVmgo6hHnoXhBKf0/YKtlA/cwFI DiB92+KQ2SlbLiTN5KAAi1qlgGzLcQozCjAkQ= 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=8HGDegx+kGpjwn1/GckrWYW28OTALFvmx7Qs3hk7rBM=; b=YcrLYUr0KNFI1laS9+Zrx2J1t+oYkrgLTTSpviAIPpVAyDMNJ5mGfB5s2m7LHyA7Xr 3noGY2JsWhlYLE3qt6CjrHtBDn9x+eohawJMAnDx7VoEMf6/lQw2maw3QLhihE0dFf9D JhsmC4LN6shZL8p6gBJhWD3o6nbJG1Tei570kmPfI8BpQIp5XTVRQ2nrbyXjYW0KxbNv gDgjOQt5BiibRJl581SA9VMwS36AC049I+G4SW5v0TySk4nrtuHd0SyUfPAarl2uCD/J f2JBg/+ANTOvvJYr++1lCO7m1fMslI/GQ2caTR38juqKnfVG1p190wFI9wd4m7isMvI7 xxFA== X-Gm-Message-State: AGi0Pua32xBDcac/iq9eKCknJt4UxTACeAanEv7yBrXGj4JbusK01wD0 H0i0mpIfHPygsxS7OinO7wO33A== X-Received: by 2002:aed:2b64:: with SMTP id p91mr17061597qtd.202.1587410072709; Mon, 20 Apr 2020 12:14:32 -0700 (PDT) Received: from localhost ([2620:15c:6:12:9c46:e0da:efbf:69cc]) by smtp.gmail.com with ESMTPSA id s15sm158958qtc.31.2020.04.20.12.14.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Apr 2020 12:14:32 -0700 (PDT) Date: Mon, 20 Apr 2020 15:14:31 -0400 From: Joel Fernandes To: Parth Shah Cc: Dietmar Eggemann , Qais Yousef , Peter Zijlstra , Patrick Bellasi , Subhra Mazumdar , LKML , Ingo Molnar , Thomas Glexiner , steven.sistare@oracle.com, Dhaval Giani , Daniel Lezcano , Vincent Guittot , Viresh Kumar , Tim Chen , Mel Gorman Subject: Re: [RFC PATCH 1/9] sched,cgroup: Add interface for latency-nice Message-ID: <20200420191431.GB67569@google.com> References: <20190905083127.GA2332@hirez.programming.kicks-ass.net> <87r24v2i14.fsf@arm.com> <20190905104616.GD2332@hirez.programming.kicks-ass.net> <20190905111346.2w6kuqrdvaqvgilu@e107158-lin.cambridge.arm.com> <20190905113002.GK2349@hirez.programming.kicks-ass.net> <20190905114725.ehi5ea6qg3rychlz@e107158-lin.cambridge.arm.com> <20200416000235.GA211099@google.com> <730928f8-b48b-ea3a-149a-18932eb18c90@arm.com> <7d4637c8-da8c-463d-30c6-a55c0a173316@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7d4637c8-da8c-463d-30c6-a55c0a173316@linux.ibm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 20, 2020 at 04:56:55PM +0530, Parth Shah wrote: > >> > >> There are two presentations/discussions planned: > >> > >> "Introducing Latency Nice for Scheduler Hints and Optimizing Scheduler > >> Task Wakeup" and "The latency nice use case for Energy-Aware-Scheduling > >> (EAS) in Android Common Kernel (ACK)" > >> > >> We'll probably merge those two into one presentation/discussion. > >> > >> So far we have Parth's per-task implementation > >> > >> https://lore.kernel.org/lkml/20200228090755.22829-1-parth@linux.ibm.com > > > > Cool, I see it has some Reviewed-by tags so that's a good sign. Will > > look more into that. > > > >> What's missing is the per-taskgroup implementation, at least from the > >> standpoint of ACK. > >> > >> The (mainline) EAS use-case for latency nice is already in ACK > >> (android-5.4): > >> > >> https://android.googlesource.com/kernel/common/+/760b82c9b88d2c8125abfc5f732cc3cd460b2a54 > > > > Yes, I was aware of this. But if we use task groups, then the > > transition from schedtune -> uclamp means now the tasks that use > > uclamp would also be subjected to cpu.shares. That's why we were > > looking into the per-task interface and glad there's some work on this > > already done. > > > > Yes, that series of latency_nice seems to be in good shape to be used for > any usecases. Hopefully, OSPM will lead to its upstreaming sooner :-) Cool :) > But at the end, we aim to have both the per-task and cgroup based interface > to mark the latency_nice value of a task. Ok. We'd likely use the per-task interface unless we decide to assign cpu.shares for the groups as well. > Till, then I'm finding some generic use-cases to show benefits of such task > attribute to increase community interest. Ok. Feel free to add ChromeOS as a usecase as well. thanks, - Joel