Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp311541lqd; Wed, 24 Apr 2024 03:09:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV1383qqyKvHlTfgnYIgUf7SodlUf8ViwkJzJDRC5LoWi8wmqw4H7YUWXi59WR4LwkGYXcaGaXw7FMGna/rJ1LkwawHTxJtk7RJcOd2eA== X-Google-Smtp-Source: AGHT+IEtPQ7UntoG69KRLG8x8Kno5BB3tkYBPMeP+itY3ycRfBk3pbYSeETrmu2SBjCRRNaqM/mU X-Received: by 2002:a05:6830:1bf7:b0:6eb:7963:160b with SMTP id k23-20020a0568301bf700b006eb7963160bmr2574153otb.11.1713953365312; Wed, 24 Apr 2024 03:09:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713953365; cv=pass; d=google.com; s=arc-20160816; b=icuChU1iyLQth1bGyEbd1CuY17LQOauz079CC7PHxhJmXDOzFCJcNIuqV6dmTXscn0 reHPcadDHkBBKKvMbY3ofzm5AzyWJZkQYJGtCoQCjpKXOU5xvcoaOqV4a797XyoEENXf RAcwmvkGWDX1NAobEgY/lZkkkYz6L5cOWw1i/T8U2mMNpo2mr+MLH4LpnmRSLB+V7Yib QPqcqBL0D9VOP1Wtz2JH7kI3Ik6TEQVpdLLl5coHK/2q47sm8HKohDSpcog+P0LeRdl+ HrJHhrWVmrufCrz4GTl1FIt8KJrADhmM50Y9p/u+mRtzCS4rfff7P+BsvITpOcpzNS/0 6g/Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=DqunpbpOKfONuKUYxfW3uTqReaQIYh64R9sqA+ZpqWs=; fh=b/pAWAmZEQmi6QOs84XUoz3/cAQKMVSUcvr73Ahcdec=; b=XC/nU/vM2NjBHBwImevFs1APdKe7GVA25zoXkspK/wwr9sgjDhGP2HiGtnVAMXTSMP by3OoJB5WfnpWba6gSnaFVDkCJZtUflZklFJjZLIRWziT/83a7LxWDMssaby7vpetn/P VO8W7N5c4bNpDvzx0YBaeTusuDtQs81GgCbDuT9fy137jQaK/8xQDQqq3sGAyWlpW4+7 BlIDCOewb5f5hKBv/oV1jb5RU4t9IPFfC1hU1uWgthKwWBXNrAaXsrgcNc1Jtvgxx0Q+ hPWRiG8nIYZ6OO2lMOhJbzp4Jk3NH0gFV/qBbtyfpIOUTUVNObc9yzQD3iT/y8NlgHjO qNog==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-156697-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-156697-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id l186-20020a6391c3000000b006003ea31590si4931560pge.419.2024.04.24.03.09.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 03:09:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-156697-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-156697-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-156697-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id B5FC8287E71 for ; Wed, 24 Apr 2024 10:08:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6D8F515921C; Wed, 24 Apr 2024 10:08:48 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6D457158DCF; Wed, 24 Apr 2024 10:08:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713953327; cv=none; b=QW5DG6bS60xtURUgewhQk6+4yWJBy076fu3vL3xPWYdT7zO51wwfhbX81aTI6voRIo78N1ulFYUXOTpp4fdyj/pj0I8UQQKJHtgbzIHxjpjwjdvY4/LJ+XIWms2TAi7WqKKDw/XD/gBKIQRhkWTL8QPAQ6jPNYs/yPKdueMdr+I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713953327; c=relaxed/simple; bh=Vj9BHW5iBeHIGnrdfCDKVFi1C7486OsXjCah6RXakgc=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=GBpunKO9zIl1bpT6NV+MHKqr5JJ9oA05Yb5Aeci5eek0LJZZtKeKgLqYJYX1ToIPt+DBPHsduxfgoY9+JPoY6ojcfjWLqKKANunI/uutashnDscGfq19RzgCM0cTLfWblPi0Y3vcTGSOQi3GAxLXywO4m172aLrzviWyGB3WXO4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 7C195339; Wed, 24 Apr 2024 03:09:13 -0700 (PDT) Received: from [10.1.30.55] (e133047.arm.com [10.1.30.55]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 9C4EB3F73F; Wed, 24 Apr 2024 03:08:44 -0700 (PDT) Message-ID: Date: Wed, 24 Apr 2024 11:08:42 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 4/4] sched/core: split iowait state into two states To: Peter Zijlstra , Jens Axboe Cc: linux-kernel@vger.kernel.org, tglx@linutronix.de, "Rafael J. Wysocki" , linux-pm@vger.kernel.org, daniel.lezcano@linaro.org References: <20240416121526.67022-1-axboe@kernel.dk> <20240416121526.67022-5-axboe@kernel.dk> <20240424100127.GV40213@noisy.programming.kicks-ass.net> Content-Language: en-US From: Christian Loehle In-Reply-To: <20240424100127.GV40213@noisy.programming.kicks-ass.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 24/04/2024 11:01, Peter Zijlstra wrote: > On Tue, Apr 16, 2024 at 06:11:21AM -0600, Jens Axboe wrote: >> iowait is a bogus metric, but it's helpful in the sense that it allows >> short waits to not enter sleep states that have a higher exit latency >> than would've otherwise have been picked for iowait'ing tasks. However, >> it's harmless in that lots of applications and monitoring assumes that >> iowait is busy time, or otherwise use it as a health metric. >> Particularly for async IO it's entirely nonsensical. > > Let me get this straight, all of this is about working around > cpuidle menu governor insaity? > > Rafael, how far along are we with fully deprecating that thing? Yes it > still exists, but should people really be using it still? > Well there is also the iowait boost handling in schedutil and intel_pstate which, at least in synthetic benchmarks, does have an effect [1]. io_uring (the only user of iowait but not iowait_acct) works around both. See commit ("8a796565cec3 io_uring: Use io_schedule* in cqring wait") [1] https://lore.kernel.org/lkml/20240304201625.100619-1-christian.loehle@arm.com/#t Kind Regards, Christian