Received: by 2002:ac8:5491:0:b0:40f:fb00:664b with SMTP id h17csp615161qtq; Thu, 10 Aug 2023 10:34:41 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHADme8uTXlBOs9eC/Q/it+OzxFIWo9stQyE1MHbTOcRGQsKXs0If9Sy9Yrb5uaTtKlF2Y/ X-Received: by 2002:a05:6a20:969a:b0:138:60e:9c4 with SMTP id hp26-20020a056a20969a00b00138060e09c4mr2877895pzc.23.1691688881344; Thu, 10 Aug 2023 10:34:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691688881; cv=none; d=google.com; s=arc-20160816; b=i407mDb4f1hVIqkAXWcpG46x/PrLHQ83jQLmJARZ2GMUqY68tjoz41cqo2WgHrWzKu D4z/2JdFjEuCdnBaKf6qAvXXe4S2muCkErBL19m/CoJ6w52WLpzsJATvmvxpQ3edMeFo 3P0vC4F+ZSIOtVbhxnGFkM6R1C+XhyOYgHPWr1k25qWl5SzM4Xj0kZM74myYby2A+1GD D2u12GbQy8ZwqfZzubGMKJpKjrjmnEUDHNpXQ0pIJpkM+i2HE+ENi+Cz05/IdjUoimNb A96jKyzm0FACC0A0zqadPVqZoc4qA22a0Yu/y1hzl4lPctcBpiKULWJyNa+VBwp9fth5 ga6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=gDhyTyA9Om29miQRZWUIhK0p43w+QxRqlw1Arvt4/Rc=; fh=LGeE9rY1M9o1xZKbxs587cc3FsoZ1KnDIX/q+CvqEMM=; b=Ub/brk+Gzv0p9nsXYsbT0Xv4Ap2eT3yR+X/TAOiObWLXaEBId/R4ND6GEMTNdOvuoX BPJRF9eJeSgt2lmvF8BksC0Gv+yEp80VGv/393u5tKU2XLGJHEESgAeuLt/hfhkFXwhZ YK7oRzeLsdoRnVEqOkZBLjMbBNXOcM4vlx9iflXVsNGsPRGlRGVWfjwWFFXQuj5XHIvS IbwoKmQsTe+NRu+iAEu/VbfPsuFwEgTtT/ItqvTxmimHVZm6pU/FIepGdmISJwVkyxNc Pm6EHDHxWaMdEotk8rYLnjI6tjSoZSgTlmL8PDaymmNv6QsD8NMOp7YLfZjKOMQAjbOK YUpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@telus.net header.s=google header.b=C4zc3vKY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=telus.net Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bv64-20020a632e43000000b00563e87fdac9si1790124pgb.36.2023.08.10.10.34.29; Thu, 10 Aug 2023 10:34:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@telus.net header.s=google header.b=C4zc3vKY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=telus.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235863AbjHJQ2K (ORCPT + 99 others); Thu, 10 Aug 2023 12:28:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37948 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236644AbjHJQ16 (ORCPT ); Thu, 10 Aug 2023 12:27:58 -0400 Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B6E2B2133 for ; Thu, 10 Aug 2023 09:27:57 -0700 (PDT) Received: by mail-wm1-x335.google.com with SMTP id 5b1f17b1804b1-3fe1a17f983so9571725e9.3 for ; Thu, 10 Aug 2023 09:27:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telus.net; s=google; t=1691684876; x=1692289676; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=gDhyTyA9Om29miQRZWUIhK0p43w+QxRqlw1Arvt4/Rc=; b=C4zc3vKY1Wh4sB+gBuFT57OSA5VZlNBzxcA2KbTQo3kI+4u3JyaaGPUkMU3rdTGUMm chBriyzhco92wPj36k89U2dN7ZXeeUSutDgaIv6Wt8bzxmW/P3FTNo9xOIf5k9Mx6DkB seNdgFQywP1Y43XuzgAto0I/pM1pBA8S7yZuBkZQ2tWRkdk+VQvAwLDbFT6N9/eBJ6lf fxLchL3gXlRvYWSFSyKw4ez/pyWnrphg0pLwxj0Zk0j09GSOaSkwz5mp9X2usbdoULYk 7kCGc0hdj8HwFDmbPjaf3I9oHrAiFumgWdMnOW5rLaImvXUbvsPf/8NDTXZwNG4ohrxP 1jvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691684876; x=1692289676; h=content-transfer-encoding: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=gDhyTyA9Om29miQRZWUIhK0p43w+QxRqlw1Arvt4/Rc=; b=Xqn1TSH0b7Hfv5T0nvklMWUXGyANo8i0PWwD3RWl3usPud1P9DWIYMiZd+Okj98mns ixdEebGijcB2/YmJtv7E43tcSlud4EDH5nZ9cz0iSBh+UqDjCmAxyyieBEHIL1ZJJsNA jg1DC7qGSwe4GzVH6rP+tR4vkXOT/g9QyzAPc7tbS5/ZUgqlpvHq7C4ifmvNSk6PXpMi iZzKYtUz0HHsJVzfiznh3NHPfkAgZnXWrUct3tjw11K7ZBMhY//o53yyZOWIytXbjzqR jdmGn2UvrKQpyEH3NMHl/m8507DOVdwe8rreJwm+CeHo6YSniC4EXqgfdmZNeD7pF1CV yJUg== X-Gm-Message-State: AOJu0YxIKQfh8ERTp2bUN7IO0n9z9Bfwj88X8XmLV+xnwqxeH+C9QdOW JxYr32qjsBebNyYlgh1J3y1XxtZLUbFk66+QLwatfQ== X-Received: by 2002:a05:600c:d7:b0:3fb:b5dc:dab1 with SMTP id u23-20020a05600c00d700b003fbb5dcdab1mr2371296wmm.39.1691684876297; Thu, 10 Aug 2023 09:27:56 -0700 (PDT) MIME-Version: 1.0 References: <5708364.DvuYhMxLoT@kreacher> In-Reply-To: From: Doug Smythies Date: Thu, 10 Aug 2023 09:27:47 -0700 Message-ID: Subject: Re: [RFT] [PATCH v1] cpuidle: menu: Skip tick_nohz_get_sleep_length() call in some cases To: "Rafael J. Wysocki" Cc: Linux PM , Anna-Maria Behnsen , Peter Zijlstra , LKML , Frederic Weisbecker , Kajetan Puchalski , Srinivas Pandruvada , "Rafael J. Wysocki" , Doug Smythies Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 9, 2023 at 11:16=E2=80=AFAM Rafael J. Wysocki wrote: > On Wed, Aug 9, 2023 at 4:53=E2=80=AFPM Rafael J. Wysocki wrote: > > > > From: Rafael J. Wysocki > > > > Because the cost of calling tick_nohz_get_sleep_length() may increase > > in the future, reorder the code in menu_select() so it first uses the > > statistics to determine the expected idle duration. If that value is > > higher than RESIDENCY_THRESHOLD_NS, tick_nohz_get_sleep_length() will > > be called to obtain the time till the closest timer and refine the > > idle duration prediction if necessary. > > > > This causes the governor to always take the full overhead of > > get_typical_interval() with the assumption that the cost will be > > amortized by skipping the tick_nohz_get_sleep_length() call in the > > cases when the predicted idle duration is relatively very small. > > > > Signed-off-by: Rafael J. Wysocki > > --- ... deleted... > > This patch is now present in the git branch at > > git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ > pm-cpuidle-gov > > along with the previous teo governor changes. Hi Rafael, Thanks for the branch and adding it to the previous 6.5-rc4 code, as now I can re-use the menu baseline tests already done. My test computer boots by default to use the teo idle governor. When I change to the menu governor, my system becomes unresponsive and I have to re-boot. Is anyone else having this difficulty? ... Doug