Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp344258pxt; Thu, 5 Aug 2021 00:47:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxzYrOi14YcaHZbphOvZFgN4qArAmkqxjVila4fGOrZXtnhzvuQx5P5n9EbeZkrDAOB+WDk X-Received: by 2002:a92:8747:: with SMTP id d7mr1057974ilm.173.1628149664019; Thu, 05 Aug 2021 00:47:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628149664; cv=none; d=google.com; s=arc-20160816; b=bgfgNJuTSCf4zfqRNllRUc9rrSfT7y5hMIzqMTdepcMejgnLnWIpaWqbQQKanoBpH8 TGu7dMdN4nXVleJHgPzDNIqBSrgcmh5CiGz3ic9d2Rwoq0Hnz7xy3+rNH+ZtW2u/x54s zEZ+5V05T1PCIHkmbCAdE4Euj3AWPK3syz2Nv3qg9DThdIichA+WN4ghZSbh3Dx7hNcY KTOu1W+lrXzFlSllB5HuqHAHFlV/yX0/4eOXoSZ4HJ/VnlOSeoXBJQi9sueGHFrIaZrJ 1BiXa8/ZOMpNbGomeNaJGOYWuRLqgv8jDypADtihpQTZYO32TZSRITfybRNykK+71zX4 /3Rw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=9cZRkUlBM4haYm6Z4KPIipLS1UQto1qmJuvX6uvD8wI=; b=hUhxw6ORuX7vqwNJTpuyUf2XSWl3hv7nc+GtlyKpiKcDJ6kRCZxcR+7OXbuAyOo0dT hj2xu8iEQb4hWjeyeR6Nr9GK/B+xe2J/y3COo/KP6TV6A3WSQS0iEX5cmBJdzc2QeHgN aN1KwuLPO242pwwr5B7yZ3h2aEkxZt+m16TCddOOvKHPLBxxoMwk5NPPDVWfYKyfmWfz aJevmnaTeX6bTOVwHWnmGQTcY7cVM1PxfnCvcFeVYT+d+H9ouSi7p0s8dUrLp6kbAP31 s63n8lL8yohMt9O/Hb9QG1e4KIyVf2YV8av+TQgH0A3AVf9lLVT+YwjaoPBiLz/VD14t epNA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o15si4788637ilf.79.2021.08.05.00.47.28; Thu, 05 Aug 2021 00:47:44 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234268AbhHEFcd (ORCPT + 99 others); Thu, 5 Aug 2021 01:32:33 -0400 Received: from mga04.intel.com ([192.55.52.120]:17962 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234171AbhHEFcd (ORCPT ); Thu, 5 Aug 2021 01:32:33 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10066"; a="212217410" X-IronPort-AV: E=Sophos;i="5.84,296,1620716400"; d="scan'208";a="212217410" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Aug 2021 22:32:18 -0700 X-IronPort-AV: E=Sophos;i="5.84,296,1620716400"; d="scan'208";a="522386543" Received: from gao-cwp.sh.intel.com (HELO gao-cwp) ([10.239.159.133]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Aug 2021 22:32:14 -0700 Date: Thu, 5 Aug 2021 13:39:40 +0800 From: Chao Gao To: "Paul E. McKenney" Cc: Feng Tang , kernel test robot , John Stultz , Thomas Gleixner , Stephen Boyd , Jonathan Corbet , Mark Rutland , Marc Zyngier , Andi Kleen , 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: <20210805053938.GA12593@gao-cwp> References: <20210522160827.GA2625834@paulmck-ThinkPad-P17-Gen-1> <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: <20210805040349.GD4397@paulmck-ThinkPad-P17-Gen-1> User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [snip] >> This patch works well; no false-positive (marking TSC unstable) in a >> 10hr stress test. > >Very good, thank you! May I add your Tested-by? sure. Tested-by: Chao Gao > >I expect that I will need to modify the patch a bit more to check for >a system where it is -never- able to get a good fine-grained read from >the clock. Agreed. >And it might be that your test run ended up in that state. Not that case judging from kernel logs. Coarse-grained check happened 6475 times in 43k seconds (by grep "coarse-grained skew check" in kernel logs). So, still many checks were fine-grained. > >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? It makes sense to me. Thanks Chao