Received: by 2002:a05:7412:8d11:b0:fa:4934:9f with SMTP id bj17csp531639rdb; Mon, 15 Jan 2024 05:29:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IHBKDNS+wX9UtK0gt3rF/NEjLNrzjo+Xx4O59U5WOCr3U7flLyMv5iHSrmPTqOz8UeWrnyt X-Received: by 2002:a05:6808:1242:b0:3bb:ceb4:b7a5 with SMTP id o2-20020a056808124200b003bbceb4b7a5mr6310713oiv.74.1705325386253; Mon, 15 Jan 2024 05:29:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705325386; cv=none; d=google.com; s=arc-20160816; b=OcaH9ekD8LL+qgsfc/WtCmZQiP/d8RyMXoVdMWOBYD4ThWHLV72a1A/Ebo1Z6FYtaC qdSYTbAnw0ofA5sVUL7ZhBXdrnmdWSNVNhEtE4FvUyR6JaU9SA5RWxVG0WQR+mZEolK7 RPJaw4cuO+vrd5yS/YviNPESUoSMG6D5c3kzl6Sttum1PNY8wHGvpJ5uriGhB0PLNpqw ULvr7NditS8kB6LWZse5k7erjRruG8dhlRxfI2/1h/j9GZ0eMLbT2CCtlejQvM3FgV6k UW52EEVfNgPy/Wx51AogF3m0GQZlF/tU5Ys002W3hkS/luWZC+S6FzcxLBl4MnxtsmQJ rftQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=lgAzS/zHQ4xeL2VQeCafin7hplTfrsTL8fPdzk5Mezg=; fh=+J7+A9qfA0v3YvWBDW7ZJMzdpW2TFQEkMv9hPaw9peY=; b=DXRz/Djuce+RsZRrNGwL879Pq+eDjPNG5D4iKqDxD+eCGS6L3uiwqzmDMqXqShmk+a us8ftCigjjgmBsAwR5QZEdXueVMsjGw1Nyp+guD7o9DJDdR2IAfHMJyRCQHXSEtUzXbT 4VSKEZ6RXVmQAMXSbyTasJ5U/D6vwybHl9PUNJh1DzwDqSEt4HeETDiT6B64IyF9tOnt kM9QI5//XY1Mzrp7mYWHfKMoQprdkD8BaxvIyVglF5MTPRdcZTrLl6g5vCD+BzpDYmTt BmmacG3jO1khILg0B/CkIzsUJq/HfEq06AMpanycZOPualKG0t8WeHYfDUo3BNpOIYg8 QgWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=llicJO5i; spf=pass (google.com: domain of linux-kernel+bounces-26025-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-26025-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id f21-20020a37ad15000000b00781935ebac7si7874039qkm.92.2024.01.15.05.29.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jan 2024 05:29:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-26025-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=@linaro.org header.s=google header.b=llicJO5i; spf=pass (google.com: domain of linux-kernel+bounces-26025-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-26025-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 051211C2165E for ; Mon, 15 Jan 2024 13:29:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 024C5171B4; Mon, 15 Jan 2024 13:29:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="llicJO5i" Received: from mail-pl1-f178.google.com (mail-pl1-f178.google.com [209.85.214.178]) (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 D0F61171A2 for ; Mon, 15 Jan 2024 13:29:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-pl1-f178.google.com with SMTP id d9443c01a7336-1d3f29fea66so47467585ad.3 for ; Mon, 15 Jan 2024 05:29:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1705325377; x=1705930177; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=lgAzS/zHQ4xeL2VQeCafin7hplTfrsTL8fPdzk5Mezg=; b=llicJO5im6//9gKJ+8BvdhkXL2+HHPBRBRs7yc+zp/2hk9p3RG5YuuMD7mZ9aoH6AR m+gX283B+19BtDcqrZGgucYQOO/QwvNBUbUph03Lz4jzXQYw2ZEU71SiyqO4cz2xx97V Ol6lSIvxhncl49TZZz4t0SerR5bRCNYvrGRDYX0jUXayO6igB4msea67hHuLoL2qae0C 6Su5j+eWBnTYR/l/p2canHlMfSy6ACOoud5yyQu2NI99da5Kw3YQLrSlQziUF3PkQhgs xxzDahv+pm1p00COyACDSeRaCayjIHjP3PsAdEC9eCogjJ5bI3N9X0Bi2amOWV45oU+v sw8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705325377; x=1705930177; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=lgAzS/zHQ4xeL2VQeCafin7hplTfrsTL8fPdzk5Mezg=; b=fgoOB01JrzqlEciculjWeCPJOOrGDQ2QqDEB9ist2nnStIWl/Kf4LNmgU3W6wv5Qg6 yskHzpxkkZWt16AjwHpSoAkzBL1zHsN0Ase2U0y6ZzQuX0OlwT3KKA1tNzfIOaSrshkq /nhGsqGOb8XA7J2/xo7yCH5WoTnRiZvqHHjzGRzgenW9O+fT6PlTYW8O0YRzIoDWiqKv 4MzTdubh2w55X5tQ4JvG7s3DIP1OtYtegcxhd97mAnzR9jRv6ShWhfBD0zutq/J6g8SP H8PAlC8QL8cP2ibPFyHVGmMVJBGavOUYRE33A2OXEQXhFddR9crsCb+EypV2sMo3BQqJ klHw== X-Gm-Message-State: AOJu0Yw/NvkMA3vVWC4wm6oXR0DhWIlN7hyASqZhWP0J5kObpiq/1fHG 8gJW/MT8tb0wh8FSrsJ30G48VSBCA8N4SgUI5I+dILrntDeF3w== X-Received: by 2002:a17:90b:2cce:b0:28d:2a47:177f with SMTP id sx14-20020a17090b2cce00b0028d2a47177fmr2762645pjb.45.1705325377076; Mon, 15 Jan 2024 05:29:37 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20231215130501.24542-1-anna-maria@linutronix.de> <87ttnmiif9.fsf@somnus> <06a2561f-557b-4eaa-8f11-75883bbbaef9@arm.com> <87a5pag6q7.fsf@somnus> <87mstaioy6.ffs@tglx> In-Reply-To: From: Vincent Guittot Date: Mon, 15 Jan 2024 14:29:26 +0100 Message-ID: Subject: Re: [PATCH] sched/idle: Prevent stopping the tick when there is no cpuidle driver To: Pierre Gondois 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 Content-Type: text/plain; charset="UTF-8" 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 ? > > 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