Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp1878566rdg; Sun, 15 Oct 2023 01:03:23 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEN8MknsE9HoqRMlRRmTtgwMHSWiFm0/CuuFSs+fnEdpzlnh83cNKo7t76u9gciuRruZrl/ X-Received: by 2002:a81:7357:0:b0:59f:b0d9:5df2 with SMTP id o84-20020a817357000000b0059fb0d95df2mr35578582ywc.0.1697357003275; Sun, 15 Oct 2023 01:03:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697357003; cv=none; d=google.com; s=arc-20160816; b=R+MytPxX7+sFTlMVFu+qEmbux4UnFR8f8DQhrEPaETf2sCLSnl5wMvq82ov/JezKI2 3n4iX1QjZcJ39+PCw6iKJqGT9pX6VOKSlnl4YhGesWPfX6q6aKspy2P1iiQeLaCXVSj1 sUraAJVVjjUU4v5DFXnPcV3O/X459C2iAExymJ5hnvV2VoKpJU8fe/w0QVZwx/L0/mmR wSUXKupqi0gjtl9kWGYk2p0SO0EuJgbmUWJ06ySdTaHcPJfv1Us6JSoFFuxvqNNeSOU8 bI+cqWvdgwsOcUStQuegfBoGVXH7lwXNduqyjvDAIRquwPT656UC6RAnHfhNGoVupOHb OKCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=yN7gGAyE9oM4bMEMV3YqtWjtS74g/Jr4Bfj1PCxwr0I=; fh=OsVjE1wPt24Uj3WuTsNmCwc38kNsdi0OPd5ybOep5EM=; b=yI8T09yo7PABupuvR+RwjwDU3gsXFztHRSRG7916b6dENyVWNpodB4EKTIewTbgGzY 8uzWnc6nsgnbGYQed4L26wABt6GeFK663Dp5ocqbh7BrLg1I2E5UPF6sOVlg9S5WPG5x 0UYWQnQTFaw90locsUf8rucZgWBQwhC9rctZW3trfIdCS/xrw5l/jVoP4xVQ+Zewg9tJ 1m/YfI+fW1I/SvGzT1SUBfIBvqSR4iHoU+y08Buy95Vn+6+4f6JtHS5Td8IkgLm7WUJ1 JyYwJMeRw9vW63ItsfjwsRLhwswPASZqMndJyWN6YDsH7/iRK84r1TmQvjxJW3iEd3nN cfPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NCbEChls; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id q5-20020a17090311c500b001bda18ea0e1si8756154plh.80.2023.10.15.01.03.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Oct 2023 01:03:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NCbEChls; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 78307803D56B; Sun, 15 Oct 2023 01:03:20 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233218AbjJOICu (ORCPT + 99 others); Sun, 15 Oct 2023 04:02:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58828 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232643AbjJOICu (ORCPT ); Sun, 15 Oct 2023 04:02:50 -0400 Received: from mail-oi1-x22f.google.com (mail-oi1-x22f.google.com [IPv6:2607:f8b0:4864:20::22f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7EA11D8 for ; Sun, 15 Oct 2023 01:02:47 -0700 (PDT) Received: by mail-oi1-x22f.google.com with SMTP id 5614622812f47-3ae35773a04so2259086b6e.0 for ; Sun, 15 Oct 2023 01:02:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1697356967; x=1697961767; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=yN7gGAyE9oM4bMEMV3YqtWjtS74g/Jr4Bfj1PCxwr0I=; b=NCbEChlsjltWqnEb/aHW5HL/y1rfiaIDI5kaDAb7A7+6NZI1eNSbm9vzvEbEb/ZKqP rzCYuKXXnoaLvOu4iQaxu/vMCXWdSVQtYSBi8Xaad5mJv/8bxS/6To2GWZgKClF54nJT vzE9u/omiwsogJx7Kv+uYtywGBmvUO61M/kheB3FWp8Gf+wBoFn4rwrjwHHX5ZDIenAc uICzOFd1n0KiWt1hfJZ0Er4B4Hsx6q2y71zvrvm8H02UccGW0zI8gDmiAJUgU0XSGChp j5TRjj3OBMHWFY2gzRCN3Nci6abMeKZYj7FdDBXJ1qk1RB9yYhNyzNwjWl88ubuEKrda p/pg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697356967; x=1697961767; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=yN7gGAyE9oM4bMEMV3YqtWjtS74g/Jr4Bfj1PCxwr0I=; b=GOrXGRElSRNWzjhH3dF/uq0VvvSVg3z+luE4tfBOLGAsGfHuehgrUSSKLK3dlv+JIQ i6lQv8BHJKs3kTxqBo6t/LdDTte/bLSE4/g/N4onZ5+SKl721I+/fq+ZVftgATwVdFRx wEWZeDI5+6f4B0zGfrUwHwuczFX+9/EYY0/NDMDoqDmXFVrEysVmQuBJbNYqedeWuvt/ 4xFPZ8hjOzrueRLotxs6nhb/KStHGcznTdwoO06r43y39krvHRv05LrAZYLRz61mSJuQ 5iXG1Ipg1SMhVkK2SytW8anRxxASzm1gWHCa7MB57qEKbh88Gd2OSZe1Jd5vUA30BAYN u4oQ== X-Gm-Message-State: AOJu0Yxd03arTCF2T6iroC9TXqqwdcfYADXe2zEDFh718e63KWqTiwpj vDtXlW1SqvGQo0jrV6L3cUCkwwSysOLpB8smML3epg== X-Received: by 2002:a05:6808:14c3:b0:3a7:2621:2daf with SMTP id f3-20020a05680814c300b003a726212dafmr42247567oiw.42.1697356966769; Sun, 15 Oct 2023 01:02:46 -0700 (PDT) MIME-Version: 1.0 References: <20231013151450.257891-1-vincent.guittot@linaro.org> <20231013151450.257891-2-vincent.guittot@linaro.org> In-Reply-To: From: Vincent Guittot Date: Sun, 15 Oct 2023 10:02:35 +0200 Message-ID: Subject: Re: [PATCH 1/2] sched/schedutil: rework performance estimation To: Ingo Molnar Cc: mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, bristot@redhat.com, vschneid@redhat.com, rafael@kernel.org, viresh.kumar@linaro.org, qyousef@layalina.io, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, lukasz.luba@arm.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Sun, 15 Oct 2023 01:03:20 -0700 (PDT) On Fri, 13 Oct 2023 at 20:21, Ingo Molnar wrote: > > > * Vincent Guittot wrote: > > > + > > + /* The minimum utilization returns the highest level between: > > + * - the computed DL bandwidth needed with the irq pressure which > > + * steals time to the deadline task. > > + * - The minimum bandwidth requirement for CFS. > > + */ > > Nit: please use the standard multi-line Linux kernel comment style. Yes, I don't know how I ended up with such comment style. I will fix it and others below > > > + /* The maximum hint is a soft bandwidth requirement which can be lower > > + * than the actual utilization because of max uclamp requirments > > */ > > Ditto. > > > +unsigned long sugov_effective_cpu_perf(int cpu, unsigned long actual, > > + unsigned long min, > > + unsigned long max) > > +{ > > + unsigned long target; > > + struct rq *rq = cpu_rq(cpu); > > + > > + if (rt_rq_is_runnable(&rq->rt)) > > + return max; > > + > > + /* Provide at least enough capacity for DL + irq */ > > + target = min; > > s/ / / > s/irq/IRQ/ > > Thanks, > > Ingo