Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp3625579rdb; Sun, 10 Dec 2023 13:36:25 -0800 (PST) X-Google-Smtp-Source: AGHT+IGPN1PhOxYRaBHnXnLKa8lCG1xOPr0A6gznm8FpKuo77IT58l7/qxQk8A6FkmEbProYKFe0 X-Received: by 2002:a05:6808:14d5:b0:3b9:dbc5:2fda with SMTP id f21-20020a05680814d500b003b9dbc52fdamr4959235oiw.49.1702244185451; Sun, 10 Dec 2023 13:36:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702244185; cv=none; d=google.com; s=arc-20160816; b=0ok/CxuBIHsVX+uY/AxoHY+iQp/ViNl0A2QvgnuimtrHVsIvWaljDS161nslJvtEd7 YRL7kovzB1lvnzm6yPS/0gfJMt+715a2yLYMHWDyKR34aqqtsAjfvcFmhFSIzJOk7Pjl WaxZjiPrI4r2r+mA5IqFNP7Z7XfixKDgEHuesrruU8a9iJaWvw7wowHHNHSaFFKgnqul mAfdNUF4+sp5O9ruixHVIUZqA0Vx9fpAoWiTcHawZRN3AUX7bs3JaxRfV9ibx6YYeKwy QHsDJhFWU+Uec8+Bu9BgIg2qRj0+FpbD/6BgHkBNp59hjT6IqEQlyqJqXIdOGDrcggTx S12A== 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:dkim-signature; bh=mqEf7WmuKDGX9nvRdQA8LWh5OGSEy6Iu2m6IfkFvvR8=; fh=hDkT4kX2AFB2MJLbl/VBysYL38LICGGsc1cZjBgN95A=; b=1IS7Smr2lD6/1S3AKuv6WO/eBJVLodiClE5U5ucw4x9GEEDjfxsfMeaidNfqbJZyRc D/4LyfOtrTktaDf/OvJQgd5cwO2Ky5nDzmtb4orEfJFL6T+G+xTuh/mFpaQv/llQJadv t7S9b0wo4VUF+YiAF0NI+kmZ8c7TeRYVULeVlHbYk7fVzuyOqY9FUagQ1fdaNBhuWK7k HtLSm1/VDRgXPLihyT3OwNXyKo0H6kRATDGqPhLe+kiPTpQ6vx5RGmb9xJerYKhPpKa0 JqWg7+g9q175Sxpr9BewoyiWN8fXIcShsQf8DnRVYsDmnkj6z5x+BInNkktQHhvEY13u 8Bbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@layalina-io.20230601.gappssmtp.com header.s=20230601 header.b=FZoPsK9L; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id mg15-20020a17090b370f00b0028869a825adsi6354331pjb.56.2023.12.10.13.36.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 Dec 2023 13:36:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@layalina-io.20230601.gappssmtp.com header.s=20230601 header.b=FZoPsK9L; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 7898B8057915; Sun, 10 Dec 2023 13:36:22 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229882AbjLJVYJ (ORCPT + 99 others); Sun, 10 Dec 2023 16:24:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51550 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229462AbjLJVYJ (ORCPT ); Sun, 10 Dec 2023 16:24:09 -0500 Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3441BDA for ; Sun, 10 Dec 2023 13:24:15 -0800 (PST) Received: by mail-wr1-x432.google.com with SMTP id ffacd0b85a97d-33349b3f99aso3614770f8f.0 for ; Sun, 10 Dec 2023 13:24:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=layalina-io.20230601.gappssmtp.com; s=20230601; t=1702243453; x=1702848253; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=mqEf7WmuKDGX9nvRdQA8LWh5OGSEy6Iu2m6IfkFvvR8=; b=FZoPsK9LRG4psqsGmAMfhEbonWl7qM1oYWXL2NkrKTyc9ijDckexMNcyVe0/btkP1f UcS2NqlgT3AG3Vr07JafFUJtu0BVuU6tBAODrsJ90kSdjHqqNWlz+sSzcEtEnuWD3YuT GMWfd0n4+ztuM41n72SEsefxXsSb0etAFR6QuBI+11uFZzAUjL2imszV2/Ubxi7TgfFV bqcp1F4IXPp7sbkrlUh1wh1SAZYpUWCnFVoA+k36JnaC1NubAIXG/SpMSRkCuJErzvtu T8svHvASWAYtNkcetvDc5YrDHIi5WgN3UPEe5kL+C70niG+TMGddQYYwOvFjkkMbtNkB badQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702243453; x=1702848253; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=mqEf7WmuKDGX9nvRdQA8LWh5OGSEy6Iu2m6IfkFvvR8=; b=Asmc57w2tQEZQTllBBeLaT2fD20dfICQmor84RMe6VgK9+NRgd8LYvd61YQK36urpD 71pDk4hHWQ+SCWRVVW7LSOeSur1xf8hKJmcXcoNGdilg2BjlhZJ2nNCm9uCaqJDr49XY msp0M90L2wouWKs9fwGJiX5zN5p8/dJQN+Xbv1XutNIaEqZRgjxG5N/iK0nfThwGLq4j dxfB54F/lKy2uBIeRJNFY/+YrHHUa/D8ci3Zf3Y6bJXxnLhxtx3yPGWgGTq4rJorXJNO ZQTSNAtelfdmwKa+HiVTaWevk1HB6TIgMv0cYrCkfTzp4QrtUIwlIIdtcu2ovGceLlW2 9+MA== X-Gm-Message-State: AOJu0Yz8VGlke9FbYS+2D+y+7/A21lRJbOKv2+w2hf6tnoJrgoG+PNUh nRDQpb38+E5yHkUqUtw8G4sZiA== X-Received: by 2002:a05:6000:4c4:b0:333:28f6:d9e3 with SMTP id h4-20020a05600004c400b0033328f6d9e3mr1730755wri.33.1702243453583; Sun, 10 Dec 2023 13:24:13 -0800 (PST) Received: from airbuntu (host109-153-232-45.range109-153.btcentralplus.com. [109.153.232.45]) by smtp.gmail.com with ESMTPSA id h4-20020a05600004c400b0033621fe3a29sm706874wri.26.2023.12.10.13.24.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 Dec 2023 13:24:13 -0800 (PST) Date: Sun, 10 Dec 2023 20:51:56 +0000 From: Qais Yousef To: Lukasz Luba Cc: linux-kernel@vger.kernel.org, Vincent Guittot , Viresh Kumar , "Rafael J. Wysocki" , Dietmar Eggemann , linux-pm@vger.kernel.org, Ingo Molnar , Wei Wang , Rick Yiu , Chung-Kai Mei , Hongyan Xia , Peter Zijlstra Subject: Re: [PATCH 1/4] sched/fair: Be less aggressive in calling cpufreq_update_util() Message-ID: <20231210205156.kausxdcwsydggwie@airbuntu> References: <20231208015242.385103-1-qyousef@layalina.io> <20231208015242.385103-2-qyousef@layalina.io> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.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 (pete.vger.email [0.0.0.0]); Sun, 10 Dec 2023 13:36:22 -0800 (PST) On 12/08/23 10:05, Lukasz Luba wrote: > Hi Qais, > > On 12/8/23 01:52, Qais Yousef wrote: > > [snip] > > > @@ -6704,14 +6677,6 @@ enqueue_task_fair(struct rq *rq, struct task_struct *p, int flags) > > */ > > util_est_enqueue(&rq->cfs, p); > > - /* > > - * If in_iowait is set, the code below may not trigger any cpufreq > > - * utilization updates, so do it here explicitly with the IOWAIT flag > > - * passed. > > - */ > > - if (p->in_iowait) > > - cpufreq_update_util(rq, SCHED_CPUFREQ_IOWAIT); > > - > > Why this io wait boost is considered as the $subject says 'aggressive' > calling? This will trigger a frequency update along with the iowait boost. Did I miss something? Cheers -- Qais Yousef