Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp265683pxt; Wed, 4 Aug 2021 22:17:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz+YwyKxGS5u/cVFffw573YtSEWrGO47XdKP95Twxe9oXrhvN6yTUSqQ8Ap9cBdVdg19fPQ X-Received: by 2002:a02:2a88:: with SMTP id w130mr2849559jaw.60.1628140637552; Wed, 04 Aug 2021 22:17:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628140637; cv=none; d=google.com; s=arc-20160816; b=Qc4LhxN130idMLXFZO5DhHDAn9h7+tr1iv8o458FXLGb77N8EyBRyoo6/GRX5AiqDu nbivXvanpTAhrUSBWaI+oYWT6uqfSgXlkm9mwgGpypCgxtK2mixLQDOUctLBQWNy+9N3 /Qbn9ND7UZAKkjMC3PeCfpucXh0ZtjgM+8jd7EYBPW8GdefV9QXXkfdR9VD4WmKmxjEP ptk5ebTNPaCDqBJEZYuhwKW+UdWlyqa+K34s4FT3d33TNxrYukLYwQ16q2g/PI4bHElc eGWhkBETrB5F577ArmSsYmjbm6iLmKoYpGAm+u9FpFNL/HKtUG8EPhzIq9GasDxODZiw nCEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=d0V+gLAUG6RttUHECLh6yo1OnRX4Zc1nVaWS7NYaZ5E=; b=pdO/gUZj+zM0GTyDPWELz4Sjh8j/9XSk6VSM4JpfUaVqXihnzW03z9Kcctl9k9YOi9 6OLhkS4H9wCrCDrrO6VkccmDOSzRb1VUv1lwXib8VDjtQxeriwpG0wm28R5usuKPoBE2 r2Eb2G8a0olz1prTbbwq0w9LLsduqLOU3D5Oz7YIIVIhyCXOCvs6RW8Xi413fXNl7F7v ru7IiRhOxkelRYqY8OXI0++XKeQ+mBeoCc2t1uLhG8hZh15DwuKuSSGo3cQ4IQsnAnqh 5Od97XihXiqdBLMDF+CV5KUI+cz2aNpULcxAZeuVE1aP05QiMJAVK+E1MeEO+4SiF37c 3IwQ== 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 l4si4662648ilf.23.2021.08.04.22.17.05; Wed, 04 Aug 2021 22:17:17 -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 S234016AbhHEEeb (ORCPT + 99 others); Thu, 5 Aug 2021 00:34:31 -0400 Received: from mga12.intel.com ([192.55.52.136]:1627 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229470AbhHEEea (ORCPT ); Thu, 5 Aug 2021 00:34:30 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10066"; a="193661041" X-IronPort-AV: E=Sophos;i="5.84,296,1620716400"; d="scan'208";a="193661041" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Aug 2021 21:34:16 -0700 X-IronPort-AV: E=Sophos;i="5.84,296,1620716400"; d="scan'208";a="522296741" Received: from akleen-mobl1.amr.corp.intel.com (HELO [10.209.32.138]) ([10.209.32.138]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Aug 2021 21:34:15 -0700 Subject: Re: [clocksource] 8901ecc231: stress-ng.lockbus.ops_per_sec -9.5% regression To: paulmck@kernel.org, Chao Gao Cc: 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 References: <20210521135617.GT4441@paulmck-ThinkPad-P17-Gen-1> <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> From: Andi Kleen Message-ID: Date: Wed, 4 Aug 2021 21:34:13 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: <20210805040349.GD4397@paulmck-ThinkPad-P17-Gen-1> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > 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. -Andi > >