Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2541415lqp; Mon, 25 Mar 2024 01:49:46 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXJppitLyhXvWfxpg66u8xaQHd3/fkLqQze4TQI01qYR/Ulc5yZibpQjVtYDD3Fx/eOnagQnF+W8HtXf05znbrS7aBjs0/rasAgIKgycg== X-Google-Smtp-Source: AGHT+IEHzbpdU/9zMXIrgZThBBnDoQAqang/rj2mu3VA6vmWcOtL+2JbVLZwBR03MN0r/GS4uXGN X-Received: by 2002:a50:a69e:0:b0:56b:b278:d57b with SMTP id e30-20020a50a69e000000b0056bb278d57bmr4018036edc.16.1711356585861; Mon, 25 Mar 2024 01:49:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711356582; cv=pass; d=google.com; s=arc-20160816; b=PiLiDUAFpGqhd5pe94OJbj0Eho/F8DrhjRF6xQr4KT/uiUhNVVrMuvx2hAy5HAXWd4 mRC/4vEmwc6vq29obcx8qh3y3zjUjwKNRPkJ/K4X3WgmA+MHwyo+sCB68qzq+etzqItB fZxBxlZYqGDgGErl6Ejho+OUnoFdfklselBMF9Ezxbtb8bml0Re7bsGvMUw6YElxFtoE 2aN5xBn0/Mvc3vG1tZkwSgTLooywsLGo500guDxgI3JNguGMQsUcKPl8/I/7X6x8Zcgq TieglhZJLBzDwm0JH2QT8cw2duCo6XhGL8xwXRbMb4I6B9mjuiVe0me3iPdwDOLsanqB BzpA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=OmGpqFfHYwDGnVVZ3jzAGoFdzesxBNnjTqhjXueHYVY=; fh=D0g8tt2kh1Zqvw01RsGAULRMXfMdoPsMesI5HyrOc7g=; b=F6/d9jFHDKXs5eSJmq8xWsUXIBpDHxM5ErbXKRimKeqapf8PSM7NgKolBeKmu+dm3U hKr+bTA6DPPPlPykU2vi0hzMBVIfJ8dpVRs4LSEstb20BYy++Y8Iw4jaDYKmvuYZY7PW 7Sg2DZXTugzio7hcGdni2LOkSASy8FoSUHrkRDGarK5/Vtd3s3OEgqYQnuL4zvVno89D xMEAVkK2SeAcHOCzexrnDv+L/OpiFatqs+XRi7NbjYEV8EdzoQ26TecNqQGWNSFpNfw/ hGskr7Dl0z5WUJI3hfbsLy3ckrPB5/VVix0JdvuXhaQwUYhSRP7aR/9UtxaBzYxYG9wC XmdA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@layalina-io.20230601.gappssmtp.com header.s=20230601 header.b=2Jz0jA0+; arc=pass (i=1 spf=pass spfdomain=layalina.io dkim=pass dkdomain=layalina-io.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-116390-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-116390-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id bl19-20020a056402211300b00568a7528b6dsi2465969edb.32.2024.03.25.01.49.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 01:49:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-116390-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@layalina-io.20230601.gappssmtp.com header.s=20230601 header.b=2Jz0jA0+; arc=pass (i=1 spf=pass spfdomain=layalina.io dkim=pass dkdomain=layalina-io.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-116390-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-116390-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 32A571F31713 for ; Mon, 25 Mar 2024 08:49:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9221213791A; Mon, 25 Mar 2024 05:31:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=layalina-io.20230601.gappssmtp.com header.i=@layalina-io.20230601.gappssmtp.com header.b="2Jz0jA0+" Received: from mail-wr1-f54.google.com (mail-wr1-f54.google.com [209.85.221.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id ECCBA210862 for ; Mon, 25 Mar 2024 02:37:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711334252; cv=none; b=XrfEvho0zteS0yh0bR51cycUzhY0Ktfbp86yF3sM+wTcRSEpdfATwJY1QychrDaK6YilIb4X1QWSr7OhD+Z3L9hvVPdGNWAJ9/uHfWQW4+Le7ZgZ86jSe3O7Aj4DbePWOuBlnLK9AJdiqsmxeb+Vs6OmFvjNdsfojMO6poS+l8s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711334252; c=relaxed/simple; bh=CUhu4fcoHxot+obl+L/lIB2mjnnCYJgKXU5JhtEOyz4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Ad7kJKBcXn4QdR4ijfcLoN000P4n/CNxk6mPmYLpu/jl1zHv5un8mD+w4UjheeookQx0idjU78/vvmPklO8h0zyu1Dd5pwiho1+BuwCusUor4R6Fcfg0qaD1ou+pr1+XpV1ICbHP8Kg0K7f0LVf/wq1mRl35xufE/Tg0QixsEsc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=layalina.io; spf=pass smtp.mailfrom=layalina.io; dkim=pass (2048-bit key) header.d=layalina-io.20230601.gappssmtp.com header.i=@layalina-io.20230601.gappssmtp.com header.b=2Jz0jA0+; arc=none smtp.client-ip=209.85.221.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=layalina.io Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=layalina.io Received: by mail-wr1-f54.google.com with SMTP id ffacd0b85a97d-33ecb04e018so2711349f8f.1 for ; Sun, 24 Mar 2024 19:37:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=layalina-io.20230601.gappssmtp.com; s=20230601; t=1711334248; x=1711939048; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=OmGpqFfHYwDGnVVZ3jzAGoFdzesxBNnjTqhjXueHYVY=; b=2Jz0jA0+gY0hPyGeZZI/SS29mN7sv/9v/HpfhXgWqXrc9xBobiybpkROmw1LG7IR6n SD07nDUS2Nu1c8sz/xv+BGN8p9T9xHQLUZd5p0WVk8MOb6hJvau5X8rd2I0T5BenOE+U yedEE1zb2ySqyWfEPZlOfoAyZV5Wh3/MoOLmRNnfVb6lZpD3UMeIRj6JY3ZlTiaOeO6v GROdaPeZVy4uCnbht1zSMf9RKkSXPxkkWm503kszhbMEkS7oT6qH7VUFO66YxFLOR4Gb ELbzWQ+3C28ehNmvr+GwfFsPPhnkQOVVe/qZ9intuoj33pShgVlyIhXq2+E59QbtOnfc //7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711334248; x=1711939048; h=in-reply-to:content-transfer-encoding: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=OmGpqFfHYwDGnVVZ3jzAGoFdzesxBNnjTqhjXueHYVY=; b=nP+he3LoAIwZg5amedKUhX/oAoiHif0qAY85jhhPBFTbgC6HXiBVoHJiiWlNjXbNZg orVXq5xFHi2YGMzaKUMEsEWUH20S+lrVlHr7dvIHwnk+rEgzR7edPNob7VMhfCB9+QIE K0ZraTM/Wy7Pk644zSHS0UtKFsjqbyVqjbacfUl6taI2LfQJw/MXqNcUEBuotIjEzGp/ AjXwlD3rU7CeUQBmFH4YZEeo7SpJLhrLUTUzYEbzr+HxKyqr4LFy+UYGCb0zvq3urY4/ I5M+KrRKeJJ6Z4h449qzB5mEufiG39++A35Xo+v7MBphI66Jt5FZndmNyX7sGgEB5M6N k9WQ== X-Forwarded-Encrypted: i=1; AJvYcCWbNHtRFmDdpojdE2mrhkaya1PDonbFUBAqD+EcHzxOxz9JEUD4517Q5ygXGEHA2cJNQH7vIEtHkjy+CSHQ6Rr+V6ZP5BOoONsO80ev X-Gm-Message-State: AOJu0Ywp6LX6rzQQAZytzeWwqzTXQIQx4XgPvUgtIRLy7iCtrL9NZS+X vciaAFmHicHcB0weFupTd8JmHjYUHPydjyMjxQ9WGjEBh7l59YC4qCBtPFILMMk= X-Received: by 2002:a05:6000:1d85:b0:341:c9d1:eae5 with SMTP id bk5-20020a0560001d8500b00341c9d1eae5mr2379711wrb.27.1711334248259; Sun, 24 Mar 2024 19:37:28 -0700 (PDT) Received: from airbuntu (host81-157-90-255.range81-157.btcentralplus.com. [81.157.90.255]) by smtp.gmail.com with ESMTPSA id ck19-20020a5d5e93000000b00341c6440c36sm3898009wrb.74.2024.03.24.19.37.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Mar 2024 19:37:27 -0700 (PDT) Date: Mon, 25 Mar 2024 02:37:26 +0000 From: Qais Yousef To: "Rafael J. Wysocki" Cc: Christian Loehle , linux-kernel@vger.kernel.org, peterz@infradead.org, juri.lelli@redhat.com, mingo@redhat.com, dietmar.eggemann@arm.com, vschneid@redhat.com, vincent.guittot@linaro.org, Johannes.Thumshirn@wdc.com, adrian.hunter@intel.com, ulf.hansson@linaro.org, andres@anarazel.de, asml.silence@gmail.com, linux-pm@vger.kernel.org, linux-block@vger.kernel.org, io-uring@vger.kernel.org Subject: Re: [RFC PATCH 2/2] cpufreq/schedutil: Remove iowait boost Message-ID: <20240325023726.itkhlg66uo5kbljx@airbuntu> References: <20240304201625.100619-1-christian.loehle@arm.com> <20240304201625.100619-3-christian.loehle@arm.com> <5060c335-e90a-430f-bca5-c0ee46a49249@arm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On 03/18/24 18:08, Rafael J. Wysocki wrote: > On Mon, Mar 18, 2024 at 5:40 PM Christian Loehle > wrote: > > > > On 18/03/2024 14:07, Rafael J. Wysocki wrote: > > > On Mon, Mar 4, 2024 at 9:17 PM Christian Loehle > > > wrote: > > >> > > >> The previous commit provides a new cpu_util_cfs_boost_io interface for > > >> schedutil which uses the io boosted utilization of the per-task > > >> tracking strategy. Schedutil iowait boosting is therefore no longer > > >> necessary so remove it. > > > > > > I'm wondering about the cases when schedutil is used without EAS. > > > > > > Are they still going to be handled as before after this change? > > > > Well they should still get boosted (under the new conditions) and according > > to my tests that does work. > > OK > > > Anything in particular you're worried about? > > It is not particularly clear to me how exactly the boost is taken into > account without EAS. > > > So in terms of throughput I see similar results with EAS and CAS+sugov. > > I'm happy including numbers in the cover letter for future versions, too. > > So far my intuition was that nobody would care enough to include them > > (as long as it generally still works). > > Well, IMV clear understanding of the changes is more important. I think the major thing we need to be careful about is the behavior when the task is sleeping. I think the boosting will be removed when the task is dequeued and I can bet there will be systems out there where the BLOCK softirq being boosted when the task is sleeping will matter. FWIW I do have an implementation for per-task iowait boost where I went a step further and converted intel_pstate too and like Christian didn't notice a regression. But I am not sure (rather don't think) I triggered this use case. I can't tell when the systems truly have per-cpu cpufreq control or just appear so and they are actually shared but not visible at linux level.