Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp658921pxt; Thu, 5 Aug 2021 08:35:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyfzIpNNI9RkkcXkwDnrNW0hRMI8Ehg53JX9rBuRnTjHdXhansDBRwBb9dRtjIl83FAnbjk X-Received: by 2002:a17:907:987c:: with SMTP id ko28mr5527616ejc.200.1628177755573; Thu, 05 Aug 2021 08:35:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628177755; cv=none; d=google.com; s=arc-20160816; b=NbaevhMIRrv/YOJjgUdw33X1LLVFEl2s+D63sqo1AGkzNKMayXmmdky/+GQ8pLYnim +7cMLFqCWh5uanJua8S83wK3G2vtelz1JJ1/K6XctQU5ip4I/UO8mP2shDxr6ayFUzMI muZPIm8OYqPJ2fvUX5RV0OEnJFhm0cQbpqBwIpEsvhmySU+Ip9Wq4faXJv5K3+49Edng cECQykaIQTH5+/1m8o3Qr77vfd5MasDL/1nbUQANtl+25pxI2yoxC3WbEzUjJPsPYoBv ywrS/MuN8ijqHZfX4WGHab4Wei7IcjumnAGFAnCaz0yuVQJZwY9lCpbcpig3WwGN0TuI PYBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=cr9jBWjNqbLaOWhJ+x2M+HDDk0hy/8rPWXWgXgZZMFw=; b=c+sM8GzhnO7pA55JVAdrrt9wA81gYgUcmLZcmxcYa69xuit1+3LJKwbFBDHm9UWvHO MN8wxNxXgJ2mlSmfVkeL/ED+vcRWg2w18MHUTEctwi8H6etlDFPSKQT7jcOzyNpJPuDF qCR/389yQ44DhuGs/MA6GQ89h17wZ+fqdZZL5jj/YxjAdwyPoS9223moDZWlNRroepBc r11kZgcKK2sG8oXtMjrze+6p+0yxO4tPgRzTecQx1ZUaEGx4j5wDb0EYwJT3B+xRONuC 1lUsngYJUIiPaMDiWCQjfHrI0ieZk37lqEQhTNWgO9v9/8M8cs2hjcMzTIdAxAtC2kV6 yD2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ENULft1j; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r4si5806125edv.196.2021.08.05.08.35.31; Thu, 05 Aug 2021 08:35:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ENULft1j; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232116AbhHEPdZ (ORCPT + 99 others); Thu, 5 Aug 2021 11:33:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:42794 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230298AbhHEPdY (ORCPT ); Thu, 5 Aug 2021 11:33:24 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 55A9960EE8; Thu, 5 Aug 2021 15:33:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1628177590; bh=KCw/HboD352KeqrLkTM/GnuIXejBTJnkUaCOM1fsses=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=ENULft1j+sRlwYRV3nUNOTZxyyKS2cLJH+rSilFUJbM8uehCsQPCsbJyqcZa7Du+d WydicoEL7ihW+8pqqklPoDcutb2fBSCtYPW0AT3PLZkPv/ig9s78y+yVXhsPQgzeZO ViX28Azl5Z3w6iqr3jSe9GJkO6WJlZlH+EyjKeVDYh9xmjGub2+yvixEMJbvRIgEJc pr8dQUhPBbp6M6u/4sRJ/KcYdkq7jPq2C+/H9YphVULRYaEXTKRrbxlZDCOsMnuRNk tOtZnfNd3FK8HTJRyUrJfnaqf6EJRtlbpdeUBzjVoqwMDSlqM6uygStNH5ZzqY4Cmv m4h8sDMzOlJdw== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 274B45C098A; Thu, 5 Aug 2021 08:33:10 -0700 (PDT) Date: Thu, 5 Aug 2021 08:33:10 -0700 From: "Paul E. McKenney" To: Andi Kleen Cc: Chao Gao , Feng Tang , kernel test robot , John Stultz , Thomas Gleixner , Stephen Boyd , Jonathan Corbet , Mark Rutland , Marc Zyngier , Xing Zhengjun , Chris Mason , LKML , Linux Memory Management List , lkp@lists.01.org, lkp@intel.com, ying.huang@intel.com, zhengjun.xing@intel.com Subject: Re: [clocksource] 8901ecc231: stress-ng.lockbus.ops_per_sec -9.5% regression Message-ID: <20210805153310.GF4397@paulmck-ThinkPad-P17-Gen-1> Reply-To: paulmck@kernel.org References: <20210526064922.GD5262@shbuild999.sh.intel.com> <20210526134911.GB4441@paulmck-ThinkPad-P17-Gen-1> <20210527182959.GA437082@paulmck-ThinkPad-P17-Gen-1> <20210802062008.GA24720@gao-cwp> <20210802170257.GL4397@paulmck-ThinkPad-P17-Gen-1> <20210803085759.GA31621@gao-cwp> <20210803134816.GO4397@paulmck-ThinkPad-P17-Gen-1> <20210805021646.GA11629@gao-cwp> <20210805040349.GD4397@paulmck-ThinkPad-P17-Gen-1> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 04, 2021 at 09:34:13PM -0700, Andi Kleen wrote: > > > My current thought is that if more than (say) 100 consecutive attempts > > to read the clocksource get hit with excessive delays, it is time to at > > least do a WARN_ON(), and maybe also time to disable the clocksource > > due to skew. The reason is that if reading the clocksource -always- > > sees excessive delays, perhaps the clock driver or hardware is to blame. > > > > Thoughts? > > On TDX this would be fatal because we don't have a usable fallback source > > (just jiffies). Better try as hard as possible. At some point, won't the system's suffering in silence become quite the disservice to its users? One alternative would be to give a warning splat, but avoid reporting skew. Unless there is the traditional 62.5ms of skew, of course. Thanx, Paul