Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp1140267rdg; Fri, 13 Oct 2023 11:21:16 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG/VYH0naftJmoBXiC+cblxuCPGpedZVE5o0D0uc+8MFcvyo/rbT0V4OMQJy8UdXqd2oO3B X-Received: by 2002:a17:902:f54f:b0:1b8:66f6:87a3 with SMTP id h15-20020a170902f54f00b001b866f687a3mr33952814plf.52.1697221276542; Fri, 13 Oct 2023 11:21:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697221276; cv=none; d=google.com; s=arc-20160816; b=FJkTN3eveAGqoYG6JwUKjCVGViklDJSbTjecI//RZ2LsrKo0HsD+/2dwuN48ALsRQz DfTkagjjPJY2BdHKeKi2AlXeK5+qd9MGWqzS6KT6VdFSZjRysG7c2sxGxux7HlPEa/+K ia5BMrcHnIO7Mt3iLyrMKc7hTW3SItll1JVUJlRFhooEVd/1bhNAjC8gHpFN4gMIEFku 80M0qy4uR6IqCcGQpB8qq+ycgDWjv0RS2VKFVrByrd4VxoSK/ntwyqvFfLSLPqOkrJvQ nSCQTdoWKYBErRLrx5WkJFV1xzGwKxYC51g6/GJF9ggoRrggMSzL6iSk79NIRtc8SJ80 UyzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:sender:dkim-signature; bh=gv9tvIF0FJcUZfx9a5PjRlvRxUAHlFbHKhq9rtR1+SM=; fh=79hGRW0ML0Iy4HowEpXdD8RHXqgbNvkVvZ8+E7CaG9A=; b=NZY0+Vy/w+tJgnp1XgjF0wzTcz30U4q+KFxyl33krBvcliEGZS7L7PTHXj2FlLINU7 MT9Oxo2FgaVv+ERgiB2r6RB9QqkMxb6WbCZJ5yFNPzKk/jFqyskIe1/hsgvFGa0hEwvS 3bomGhYMJ1MzzlJaMEZsv3V4zu95o12ZI04ArTnmmmU+ngyigi02Ld65musbVHxe/0b6 MZZgT/H/762n/xlLPjLBXugiQMFgJdNNF45g5DzhZEgBnsO3T/+ma0Zp/WmlsbcWWQ+Y zQw09qvmHpbbbeUy7XAOEcnwRah0rN9d4SrENe3kvqE6D4Q96uZvytdpGguwSd1QrZOV 875w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Jx0M6m4F; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id y7-20020a17090322c700b001bbad1883d5si5378137plg.293.2023.10.13.11.21.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Oct 2023 11:21:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Jx0M6m4F; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 00449835D2C9; Fri, 13 Oct 2023 11:21:13 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231402AbjJMSVG (ORCPT + 99 others); Fri, 13 Oct 2023 14:21:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54268 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229830AbjJMSVF (ORCPT ); Fri, 13 Oct 2023 14:21:05 -0400 Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4A6CB91; Fri, 13 Oct 2023 11:21:03 -0700 (PDT) Received: by mail-wm1-x32d.google.com with SMTP id 5b1f17b1804b1-40776b200e5so3793015e9.2; Fri, 13 Oct 2023 11:21:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697221262; x=1697826062; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:from:to:cc:subject:date:message-id :reply-to; bh=gv9tvIF0FJcUZfx9a5PjRlvRxUAHlFbHKhq9rtR1+SM=; b=Jx0M6m4FSS6T6LnRxoh7pGwl3UyGqF11seGtQwCcXkE/Yi6kaplUL2aAtq81TRQ0gy 3qy/hoEwmz27s4LC7+yVlArPXbsMI5NYNavhhrJ3diqxriiwp3uU+yATPk2TpgqlCUmt Z4pvV6LAGFbxhnTCHKhfa00nHTTZpZ5L61Y4BuGV7E2lKe48tukZOfTsVP30UHa7D0Vm lb3/j3xS8Y4rV/50V4IHZW6AXvGeErbA0g6dd8VTRnSDH0q6hTXUJDHUiJghG6Ty0+8U CGxihbDbPI0KFMQ57vtzPZ9YEdTWeOiuNDCek977noqfx+8s7dwhfAUeq8TX+AF1+Vtq myLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697221262; x=1697826062; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=gv9tvIF0FJcUZfx9a5PjRlvRxUAHlFbHKhq9rtR1+SM=; b=mQjihCPy/AO5Q0TUZ6irRxLHoWgYtc0LNEoJPJL7lGUJj20OYG/8bOGGS3tysY97p+ JiAbgs69SmR5sXbNOksq0I2dOk229l1fFgV1NC8TclJ5eeMGwG7QT5V45Zl6wSXk5DTt 1H+R9JvnKgOHttxSxa51zspOxivx3Q/0iLnW2oBZ2F9TsLuCgbhTTIogN1X9tR34Okaz efNJiJ9goSIfGJZPPJzjzC5FNIVVXVLvfx0VZ8EJxgBET5aAtNKekM+gSPi/lGk8Ryil LVBkTrZe81pXHaz3LK4+vUBwuqB0hvtMhKsStmVw7jnkaUC0rm7D+djQRbNxgQoNrtlT X7qQ== X-Gm-Message-State: AOJu0YxMgG2uIhlsQGyPQTfHKoUkvgdPuMfbvzUj4DEkor66djtZQ++k /Q9R8j46LqbPl7y7JTlO8GI= X-Received: by 2002:a05:600c:3781:b0:405:1bfb:ff14 with SMTP id o1-20020a05600c378100b004051bfbff14mr22984089wmr.9.1697221261269; Fri, 13 Oct 2023 11:21:01 -0700 (PDT) Received: from gmail.com (1F2EF405.nat.pool.telekom.hu. [31.46.244.5]) by smtp.gmail.com with ESMTPSA id ew14-20020a05600c808e00b004064ac107cfsm788824wmb.39.2023.10.13.11.21.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Oct 2023 11:21:00 -0700 (PDT) Sender: Ingo Molnar Date: Fri, 13 Oct 2023 20:20:58 +0200 From: Ingo Molnar To: Vincent Guittot 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 Subject: Re: [PATCH 1/2] sched/schedutil: rework performance estimation Message-ID: References: <20231013151450.257891-1-vincent.guittot@linaro.org> <20231013151450.257891-2-vincent.guittot@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231013151450.257891-2-vincent.guittot@linaro.org> X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, 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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Fri, 13 Oct 2023 11:21:14 -0700 (PDT) * 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. > + /* 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