Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3506101imm; Tue, 17 Jul 2018 06:04:56 -0700 (PDT) X-Google-Smtp-Source: AAOMgpf1eS5+HZWuVGPuByHGT3zyaPe1NWbpFAoBIP3Z8Arzm7miLhMipP1fcvwq9nwPr4V6D3ss X-Received: by 2002:a65:5683:: with SMTP id v3-v6mr1501277pgs.176.1531832696387; Tue, 17 Jul 2018 06:04:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531832696; cv=none; d=google.com; s=arc-20160816; b=nBbj0Q/haiQrtKXKNMGdH5NhoKNP9L7785NLilD+gIPzBiPClUye9U62boieZbNIRg nN1zXd/GGaQYuym+A/k139LfyvFVdG0czWuVCtkBXDnVNiJzS3drhLS/tiWN+6mKXyOA M7pl7xwG+tgPla+oBQL0mtAg3gsW3riMieVsy7oZgtF04/n0YLnpATz7n48KeGhXAdL6 Gp5GOlbfqY8UtkQxwmWjwf23sg5/+32xwr49ex6ww+7uW1EE8OZEEbr2jTERDBfI1F1o Tx1K0N6CRX8jdvTVy+c4BsqNPDr4Hp8Obc3pWeC1II2rYTeMa2K/ycZlXXrbPgxouGNY R1dw== 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:dkim-signature:arc-authentication-results; bh=Gv4W8nGAHM+Ge3egwRfGgTP8VH7brii8tl8m/22o5io=; b=EVuI//yhqFXVRw8IqtdzCmnMbdz7Wj/LfFYpR2Udc/meSiU1VQpdecpOLzEt7h5NZP 04G8OnV/b/B5U5qptRygMOvatEFNXL5dMoCrZNTu3g+sCFDb8HrVzwOD8hpQMxf1D1qF zG9Wehn13WqJYknyLTMqhWdmPTuyWscx+1EF/KpUdjMNR4yPNnTVLH1+yDsOePvlnmYb hKThVEBiCWAVQYdxocMVybG8pwDoUFTJm5N5mge8zSS3mJQGqC12V1ve5WEbsm5LflA+ hgbI4gyZDL+OHYySAorj+Xm21/q0VDj+4vQrcz57SQ6XtQ8zY+j+PrhwFYOYg3ZB29ap V7Ow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b=T0zqIuO6; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bc12-v6si785125plb.373.2018.07.17.06.04.41; Tue, 17 Jul 2018 06:04:56 -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; dkim=pass header.i=@joelfernandes.org header.s=google header.b=T0zqIuO6; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731481AbeGQNgd (ORCPT + 99 others); Tue, 17 Jul 2018 09:36:33 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:39872 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728889AbeGQNgd (ORCPT ); Tue, 17 Jul 2018 09:36:33 -0400 Received: by mail-pf0-f196.google.com with SMTP id j8-v6so474811pff.6 for ; Tue, 17 Jul 2018 06:03:58 -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:user-agent; bh=Gv4W8nGAHM+Ge3egwRfGgTP8VH7brii8tl8m/22o5io=; b=T0zqIuO65Kz8Mu7bydxFKutavSE0X7/3R40nFtIXGOGWd3/8OwK3H9xo6w0tsn5Dqr Hm1/dDKtbS5acg303oluvpqaYt6Idm0L1O7fjd0L/eH62LISMB0hRlYa+FfIcE6BeUXn oxay2XnW+ZvJZUAE3T3srl9t6MuBdg7QyPalc= 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=Gv4W8nGAHM+Ge3egwRfGgTP8VH7brii8tl8m/22o5io=; b=A+12A/dNqVoXLtuv/o3zsdM5c1LBbHxQU5kRvA8Mp+pm/RVWMNeFYai0/Guffy24Ok uwYsW2WrND7vPao/QmpOfcRmrcj2LkMKLUjaxnjvf17i5VXkxiHc0k/Rp5urfolG2uNr yEtjdrXTJQFKWSyQy9manf0ZV4uqpL2/y81sf9QNIDm3IG8J2uwfN7ZiKZWbJHwrBZG4 kH1NgBhvslivqY2UgL6Ylw7QCxf8KvlKMf7AuN8cvEJrIp6iqVPflt2GZ26b2kcW+IZ7 cCNNVay1Wrl7tatTCEhV+4st4XbglI8DpuRHTK/Nh96l8HnMSF7xl2fhHuzepgDH75UZ zhOA== X-Gm-Message-State: AOUpUlFTlTpfwOa1vqqrogcLfGSqD4/0rOG7/Fue5n83M7t5ECzkWHPK 9CmKrOr3ZyDt7QI3ti/mhWOm2g== X-Received: by 2002:a63:b504:: with SMTP id y4-v6mr1541689pge.247.1531832638298; Tue, 17 Jul 2018 06:03:58 -0700 (PDT) Received: from localhost ([2620:0:1000:1600:3122:ea9c:d178:eb]) by smtp.gmail.com with ESMTPSA id s184-v6sm1925253pfb.56.2018.07.17.06.03.57 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 17 Jul 2018 06:03:57 -0700 (PDT) Date: Tue, 17 Jul 2018 06:03:57 -0700 From: Joel Fernandes To: Patrick Bellasi Cc: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Ingo Molnar , Peter Zijlstra , Tejun Heo , "Rafael J . Wysocki" , Viresh Kumar , Vincent Guittot , Paul Turner , Dietmar Eggemann , Morten Rasmussen , Juri Lelli , Todd Kjos , Joel Fernandes , Steve Muckle , Suren Baghdasaryan Subject: Re: [PATCH v2 00/12] Add utilization clamping support Message-ID: <20180717130357.GA17824@joelaf.mtv.corp.google.com> References: <20180716082906.6061-1-patrick.bellasi@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180716082906.6061-1-patrick.bellasi@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 Mon, Jul 16, 2018 at 09:28:54AM +0100, Patrick Bellasi wrote: > This is a respin of: > > https://lore.kernel.org/lkml/20180409165615.2326-1-patrick.bellasi@arm.com > > which addresses all the feedbacks collected from the LKML discussion as well > as during the presentation at last OSPM Summit: > > https://www.youtube.com/watch?v=0Yv9smm9i78 > > Further comments and feedbacks are more than welcome! > [...] > > Patrick Bellasi (12): > sched/core: uclamp: extend sched_setattr to support utilization > clamping > sched/core: uclamp: map TASK's clamp values into CPU's clamp groups > sched/core: uclamp: add CPU's clamp groups accounting > sched/core: uclamp: update CPU's refcount on clamp changes > sched/cpufreq: uclamp: add utilization clamping for FAIR tasks > sched/cpufreq: uclamp: add utilization clamping for RT tasks > sched/core: uclamp: enforce last task UCLAMP_MAX > sched/core: uclamp: extend cpu's cgroup controller > sched/core: uclamp: map TG's clamp values into CPU's clamp groups > sched/core: uclamp: use TG's clamps to restrict Task's clamps > sched/core: uclamp: update CPU's refcount on TG's clamp changes > sched/core: uclamp: use percentage clamp values > > Documentation/admin-guide/cgroup-v2.rst | 25 + > include/linux/sched.h | 53 ++ > include/uapi/linux/sched.h | 4 +- > include/uapi/linux/sched/types.h | 66 +- > init/Kconfig | 63 ++ > kernel/sched/core.c | 876 ++++++++++++++++++++++++ While I'm reviewing these patches, I had a quick thought. core.c is already 7k+ lines. Based on this diffstat, does it make sense for uclamp to be in its own kernel/sched/uclamp.c file? thanks, - Joel