Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp9262697rwl; Wed, 11 Jan 2023 03:40:13 -0800 (PST) X-Google-Smtp-Source: AMrXdXtK+8fKjay59SDPlON8PkYj+vkq7QOTvetOPoEyvXbtwArW5gr1aiRbYLR7PnW/L2C/16lV X-Received: by 2002:a17:906:279a:b0:7c1:10b4:4742 with SMTP id j26-20020a170906279a00b007c110b44742mr57943056ejc.55.1673437213176; Wed, 11 Jan 2023 03:40:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673437213; cv=none; d=google.com; s=arc-20160816; b=stI+mCpcZnl3TwYBKzyYCXMl+YiDZD7R76GyOIMkw/UKDGPLQfVrDlpcIV0eUhsk5I mhpiCF0fh9OQ2p/L5zX8Lem3tD3tIK6ycg/i/phZVoqGt7EYj94JeuwbWdqV0cgjR7rl R0P4+13WvtR6xsK4FgF7h5Ac80gvx2eaGpJSsN2GHXnOhELmY9us+ABVWk1pNzbg1rip 3YoxjrhqSeDxmEb/z2ovps29w9dz+ls3a063WuTkvgVpUGPUFrk4QRDtdg2wVLYYtq8e f+fwhzXlR+oHeZrtqjIK2pS0GAp8IdkjfX+AFe/JHMBKiXBA/8gnXrvhr9SFMUzkE9g3 0X2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=cnm+ywz+v6qAg22yzqr9Q3YUeRd4yzvHh7NAxESwhp4=; b=KLFV87Z5CVJ0T0drjm8NcdezTu1VjWbr1m+7ZWHU7xlBNDZ5gW1jup1uSLNMnU4TJc Ti+JAem/cxxv5uy6WERwzg1M3GmhdqKSbh8VTdkyCZveZKs9IVX0QdgwqBjcGR/UGpa3 rjGgRgr4dwyQsjNnLLige3cARck4mroQluQhKYzGSrsW0RJDK7A+pG6jm5XXpHv1wElK WvDhLXipnVPKxEuBfO50Hrv9FijKZytT8gonGLkd8oyWtzicPb+wAVBpUVFcwY3u0QwF tvzalqXH51RTgNY0m9pTIDzH9QbfPhAoEbK5X/Reum8h4WYWVvfGW9QEfM3F2WJKqnk/ 5Rkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=3zypZmkg; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b="Okp/ZW3/"; 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=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ne19-20020a1709077b9300b007bf9de4fe91si17038569ejc.53.2023.01.11.03.39.59; Wed, 11 Jan 2023 03:40:13 -0800 (PST) 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=@linutronix.de header.s=2020 header.b=3zypZmkg; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b="Okp/ZW3/"; 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=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232185AbjAKL2Z (ORCPT + 55 others); Wed, 11 Jan 2023 06:28:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56306 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229688AbjAKL1V (ORCPT ); Wed, 11 Jan 2023 06:27:21 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5ED3112767 for ; Wed, 11 Jan 2023 03:27:02 -0800 (PST) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1673436419; 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=cnm+ywz+v6qAg22yzqr9Q3YUeRd4yzvHh7NAxESwhp4=; b=3zypZmkgtv2BCZJBB9H8rdZt67sWWh8uxbiehYqUFH/K0C21uZlrXjrSdDeveKtYf/y6LV ets4xWTVDiGMRz1AfUX7pTcnxhnc10JUn2FZfXgjQlNtI8BSng5oKtKH1B0xT71LL9SkF/ Bbpc8kpVNMDrjhW2BomJO14sYTOWRKCsveLepK2NirohTFi08GrslAybCTEVr/VycNgeD3 TD0TjIAshf25kvKWt+hMgorQZdjDVcYiZmR+xieAFT9r3VNyuXolJylBBE93/KjXH+jhot un9q+dy7i8IlfYhRyp+MOKbrcLDw4libuw5cGzIJE5OOdW5cCMFp1b14WuMRiw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1673436419; 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=cnm+ywz+v6qAg22yzqr9Q3YUeRd4yzvHh7NAxESwhp4=; b=Okp/ZW3/ZL8Lq4j9ot9ueLm8Kg/0R/8uGcrDj/jo5nQJf3wQFvZM4rtPz4MTkiIqzUkXQN dnO/JkcSUVmpymAA== To: "Paul E. McKenney" Cc: linux-kernel@vger.kernel.org, john.stultz@linaro.org, sboyd@kernel.org, corbet@lwn.net, Mark.Rutland@arm.com, maz@kernel.org, kernel-team@meta.com, neeraju@codeaurora.org, ak@linux.intel.com, feng.tang@intel.com, zhengjun.xing@intel.com, Waiman Long , John Stultz , "Paul E . McKenney" Subject: Re: [PATCH clocksource 5/6] clocksource: Suspend the watchdog temporarily when high read latency detected In-Reply-To: <20230105010701.1773895-5-paulmck@kernel.org> References: <20230105010429.GA1773522@paulmck-ThinkPad-P17-Gen-1> <20230105010701.1773895-5-paulmck@kernel.org> Date: Wed, 11 Jan 2023 12:26:58 +0100 Message-ID: <87r0w1ia65.ffs@tglx> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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, Jan 04 2023 at 17:07, Paul E. McKenney wrote: > This can be reproduced by running memory intensive 'stream' tests, > or some of the stress-ng subcases such as 'ioport'. > > The reason for these issues is the when system is under heavy load, the > read latency of the clocksources can be very high. Even lightweight TSC > reads can show high latencies, and latencies are much worse for external > clocksources such as HPET or the APIC PM timer. These latencies can > result in false-positive clocksource-unstable determinations. > > Given that the clocksource watchdog is a continual diagnostic check with > frequency of twice a second, there is no need to rush it when the system > is under heavy load. Therefore, when high clocksource read latencies > are detected, suspend the watchdog timer for 5 minutes. We should have enough heuristics in place by now to qualify the output of the clocksource watchdog as a random number generator, right?