Received: by 2002:a05:7412:8d11:b0:fa:4934:9f with SMTP id bj17csp607433rdb; Mon, 15 Jan 2024 07:42:54 -0800 (PST) X-Google-Smtp-Source: AGHT+IEO2GNyQ61HjhpGMaoW0+2a8OxgTAalPWtIJ/Fu3j+l0080PpX7nB2P++S41nTGvt6ShksB X-Received: by 2002:a17:902:f54a:b0:1d4:88a5:fdac with SMTP id h10-20020a170902f54a00b001d488a5fdacmr7818260plf.38.1705333373823; Mon, 15 Jan 2024 07:42:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705333373; cv=none; d=google.com; s=arc-20160816; b=YwCalS2JFJRPVb/BkOVu3WifT+wl0cX8hYoLxC5yitkT2dxldoWs7O4WUN13M4bWQV Y3uZHHtN4JmxWEFSKyPpJis3ddFK0JoAkSjpQO3nfTW9MibPoMqKmdQ1geR89XTTuY/u iXVkgdw6SSJ7WAMxweuU3+6Is3+K/kPwb0RsawdyOvWZAzH5jSXW0XE7tQ8GjLdHjMvr yJcaniMd+lKh4LYLsmDex4Y68OcCczWFTIFhO8FjVuExtilHRwcoFIWpXsT9Ox1Hf3wp 74sFz6z3yAJ+ctX49xWR3EteA+mbP4llcTG63q4+PucmAUucugHeiY8OeM9V3cnYw+Jg avgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=heC52KrKbFPVB7pTS4UhgB51Xcj3SBJo4KztosUOGHg=; fh=khZg+U2hnj6LsTBikecL7a0YpPvl6NROG3wVjmqbmEk=; b=1Ce6sMV57iR7rZpspbtRbC1ucR9MSY+lC1IttTndNk9vy3Fp4canJgedP2+V9POeqx 8aEoX1UHV+3h80qEGkVNWsuybQwggFHG1pEVKDGKzf+gSYoT/OcnjQ8vHLADFa7rEtp0 J3q07Ut+ZprFZxvzj8vYO1/ECbEHj4sno72PGgEAW+THD5Sxwx+uVEodE0W+ryssssD7 sOtkoK7d95HBDvbRlWplDv4jqSfrphobgj1snExEdOjJTkgVoJiX94GerT6i2RG7YQXC jWjadTFc1vZTIvTMIsl1fV5p9A9mOfo9T9zMnnUxh8oW6nFeuHNkFhFDPtbceyk4oirQ 2+DQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-26188-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-26188-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id kv8-20020a17090328c800b001d574250a18si8730015plb.169.2024.01.15.07.42.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jan 2024 07:42:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-26188-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-26188-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-26188-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id A04F5B20F5E for ; Mon, 15 Jan 2024 15:42:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6E60717C69; Mon, 15 Jan 2024 15:41:32 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 621BF17BDD for ; Mon, 15 Jan 2024 15:41:29 +0000 (UTC) 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 1AA122F4; Mon, 15 Jan 2024 07:42:15 -0800 (PST) Received: from [10.34.100.129] (e126645.nice.arm.com [10.34.100.129]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 8A5243F73F; Mon, 15 Jan 2024 07:41:26 -0800 (PST) Message-ID: Date: Mon, 15 Jan 2024 16:41:25 +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] sched/idle: Prevent stopping the tick when there is no cpuidle driver Content-Language: en-US To: Vincent Guittot Cc: Thomas Gleixner , Anna-Maria Behnsen , linux-kernel@vger.kernel.org, Ingo Molnar , Peter Zijlstra , Juri Lelli , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira , Valentin Schneider References: <20231215130501.24542-1-anna-maria@linutronix.de> <87ttnmiif9.fsf@somnus> <06a2561f-557b-4eaa-8f11-75883bbbaef9@arm.com> <87a5pag6q7.fsf@somnus> <87mstaioy6.ffs@tglx> From: Pierre Gondois In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 1/15/24 14:29, Vincent Guittot wrote: > On Mon, 15 Jan 2024 at 13:40, Pierre Gondois wrote: >> >> Hello Thomas, >> >> On 1/12/24 15:52, Thomas Gleixner wrote: >>> On Fri, Jan 12 2024 at 14:39, Pierre Gondois wrote: >>>> On 1/12/24 11:56, Anna-Maria Behnsen wrote: >>>>> Pierre Gondois writes: >>>>>> I agree that the absence of cpuidle driver prevents from reaching deep >>>>>> idle states. FWIU, there is however still benefits in stopping the tick >>>>>> on such platform. >>>>> >>>>> What's the benefit? >>>> >>>> I did the following test: >>>> - on an arm64 Juno-r2 platform (2 big A-72 and 4 little A-53 CPUs) >>>> - booting with 'cpuidle.off=1' >>>> - using the energy counters of the platforms >>>> (the counters measure energy for the whole cluster of big/little CPUs) >>>> - letting the platform idling during 10s >>>> >>>> So the energy consumption would be up: >>>> - ~6% for the big CPUs >>>> - ~10% for the litte CPUs >>> >>> Fair enough, but what's the actual usecase? >>> >>> NOHZ w/o cpuidle driver seems a rather academic exercise to me. > > Don't know if it's really a valid use case but can't we have VMs in > such a configuration ? > NOHZ enabled and no cpuidle driver as VM doesn't manage HW anyway ? Yes right, I tried with a kvmtool generated VM and it seemed to be the case: $ grep . /sys/devices/system/cpu/cpuidle/* /sys/devices/system/cpu/cpuidle/available_governors:menu /sys/devices/system/cpu/cpuidle/current_driver:none /sys/devices/system/cpu/cpuidle/current_governor:menu /sys/devices/system/cpu/cpuidle/current_governor_ro:menu > >> >> I thought Anna-Maria had a use-case for this. >> I just wanted to point out that this patch could potentially >> increase the energy consumption for her use-case, nothing more, >> >> Regards, >> Pierre >> >>> >>> Thanks, >>> >>> tglx