Received: by 2002:a05:7412:8d11:b0:fa:4934:9f with SMTP id bj17csp523479rdb; Mon, 15 Jan 2024 05:14:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IE7A77sVEBlrAOpBw8DlHjO4cmadx7OJiciFyR4rdZzhZy45DISq6hwEnTUL3VSBDIV/wU6 X-Received: by 2002:ac8:7f43:0:b0:429:b161:8a7 with SMTP id g3-20020ac87f43000000b00429b16108a7mr7658792qtk.132.1705324447134; Mon, 15 Jan 2024 05:14:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705324447; cv=none; d=google.com; s=arc-20160816; b=o9cr2T/9xmn68MUJzmbwTBksvOBafB9jqXL/JFqcOyEWdcjSTcljua7CReQ766y6Lq 1d1y4z8kXX5ybbROPiq3N2iWPSpOPR2S42Jtel+fB6mNyPPCXi6IB7kCG3mDplRpZj4o OXcgaogB0oO7K8zT5xmGOkBD7bfWIk6Sgch4F7ZysaRNzBkzjoSWOZMIxVbIs/mDrku2 2CfzL1fLYbp7jSA6/LLGwHP9sxyVA8BgiH/YLY7I3J5PTx3FXI3BxUOq5ILv65xly4+Q 7r0d690njJoOyg7gnne0LBx909K+vRF/4GD7ugyjk0f0i24uDuC0MI4CVacup6KhlzCJ FTzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:references:in-reply-to:subject:cc:to:dkim-signature :dkim-signature:from; bh=hWEMqJ3ZY8IoMhDyU06y+UtP311AunIjwISjvPisJoY=; fh=+ZoS9v4ycGhoswwdB0N28m236btU/CBwpewEV8LWi6s=; b=tLAumTQZVl9II5AKnk8nnEyTWm8EjbVyAMBgNyFjIGEZbsOt6xFpppfko9quAVft4z dBrk+y0TGFvGOlslQ16e7YjlPg0FCJeH2SvETWXbyIOUsv6rjPnvxQ2i0hPWcwzIvwYq GTVFPIMCtVI61pQ8pou7c7p9/2guf43OaL5fI+toYZM3J1b/Hb9KDAtq6WUFvF55zFW9 Ce33wjWynlmR4whlaEbnoUp8Ro+k+w/fFX0PbOWOJdX/6EBTxiVSKPBhk+ENt8yYS7Gb LobuPZerqfDrzw0dUMpADARdCAAeON80CLBBa66TyAeXmbNhs0lGfG3256MT14T5AWSV WCGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=v3usj8aN; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; spf=pass (google.com: domain of linux-kernel+bounces-26010-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-26010-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id c13-20020ac87dcd000000b00429d58393acsi4991353qte.404.2024.01.15.05.14.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jan 2024 05:14:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-26010-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=v3usj8aN; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; spf=pass (google.com: domain of linux-kernel+bounces-26010-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-26010-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id DD0C01C203A6 for ; Mon, 15 Jan 2024 13:14:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5177D168DD; Mon, 15 Jan 2024 13:11:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="v3usj8aN"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="fo0RYHwo" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 01B44168C4 for ; Mon, 15 Jan 2024 13:10:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de From: Anna-Maria Behnsen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1705324251; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=hWEMqJ3ZY8IoMhDyU06y+UtP311AunIjwISjvPisJoY=; b=v3usj8aNlB+kVv2boYs/C1kzdjc8i+y3spoTxS427OnOvfaNG0q//S0MVWT9KIdbCOryBU lG4SNUTCs02L1l6rI8C2ic1qmn+A2wXgwgxlxLhctGXGVyZ0fvVH6dZqM5fnfwGwk0vBfs 52qCiitpIMVu+LzNQoztLDq/M7NV+ATIaAnb8z/IAqORDVAZ16kmXCvZ8dcGVeOahZibiE a1m/8NOFqERZB7FHGHlS39Ai1c7ei7aWEPq7nQHf61czUqOk7XFUFy+S7NHMpz7uSLLg4b VIVXuBVCQfHjXo3CFYLWbO4+IwyHITV8vrdFDdW+9ofTz8/CL1xDdP9ckW1kZQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1705324251; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=hWEMqJ3ZY8IoMhDyU06y+UtP311AunIjwISjvPisJoY=; b=fo0RYHwomUHBXvSpZCiQ7cTaaIOTdLIz4OYN3ByVC9R65et59Xh8Z7uxNeXkMDXstmkJdE 4X7v0DliNivg0nCA== To: Pierre Gondois , Thomas Gleixner , linux-kernel@vger.kernel.org Cc: Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira , Valentin Schneider Subject: Re: [PATCH] sched/idle: Prevent stopping the tick when there is no cpuidle driver In-Reply-To: References: <20231215130501.24542-1-anna-maria@linutronix.de> <87ttnmiif9.fsf@somnus> <06a2561f-557b-4eaa-8f11-75883bbbaef9@arm.com> <87a5pag6q7.fsf@somnus> <87mstaioy6.ffs@tglx> Date: Mon, 15 Jan 2024 14:10:50 +0100 Message-ID: <877ckad9np.fsf@somnus> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Pierre Gondois writes: > 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. > > 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, > I saw tons of calls trying to stop the tick on a loaded system - which decreased performance. Deep sleep states were disabled (by accident) in the BIOS but NOHZ was enabled. So my proposal is to remove this unconditional call trying to stop the tick. Thanks, Anna-Maria