Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp916991pxt; Thu, 5 Aug 2021 15:12:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzRvbgNGabl3kp4lsNf2V2Fhigr4xPnHB8UQlh2b2pH5y0wydTa2bmi7shKLDJxJYDabvNJ X-Received: by 2002:a92:7d08:: with SMTP id y8mr1384967ilc.111.1628201550217; Thu, 05 Aug 2021 15:12:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628201550; cv=none; d=google.com; s=arc-20160816; b=JFrw4MR4G9Pw5GLw/WrsLn4Ay9W+1w41Ctg+DraHqNmwTQerEh0oXd7K9v6BOGLa3g iXMjwAnA24b1mjf1zYMqyvvrY2U81d1QrIJIa4PwWGCzjXawvgpfOA6A/vMcBe0mOwXt FQtJx9SRDC6ZcBFJV7OQCYg1P/vJjhwej165AGX35gmLXzfSGl92UTU7s4ZTkNpPwGX8 aUDMb07sskgZ1D7okp0kKCv6qTZVCHxOeAHzu9ScKbrIcNNwD8RwLUhYEGOHbaJRoaAV rGdoMub+zU1igl1lUAKLZxw64U34izulZ0MFVCPZX6MciOPlSuhbU7WC3Vey/D+yCTtB qCTA== 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=XPgDJLGsRBQVkQdL0/TJfav3l6o8zyNQM/bO6ZSWu9c=; b=Y1sFdmZH8RaqE4BRsM07CRZfAO+3AEacvj6vVuSpjPnquV5IIHd4mvJJ5P4gNeSUdd F36HTieAclJuMYRGnGFIRcUg7V3rJsCKFZY4yQkqBa3QGbazrSoIjF/AouRoO6haiJsP QbbYBkNMjDP3bSYAnnFkT1/evyiKKoAbqnn9Akl/xNfBoeXaA3S+Nh9jPfMs+adxbBhn zqH5V9UYOjq7KHpgB+U6KJMZgYNcuM99nKAfzFO9RK82pKiq0/6J5V2Z89QLjoALWaSi sbzM0YiSn7HD7Uo2S07pYsvruqcYwXjpEp8UwWu8r7K8bUIHo+oygDp11lqweP/RgNow zghQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gsNqgUPG; 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 p64si3893066iod.71.2021.08.05.15.12.16; Thu, 05 Aug 2021 15:12:30 -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=gsNqgUPG; 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 S242080AbhHEPhm (ORCPT + 99 others); Thu, 5 Aug 2021 11:37:42 -0400 Received: from mail.kernel.org ([198.145.29.99]:44282 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242000AbhHEPhm (ORCPT ); Thu, 5 Aug 2021 11:37:42 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9D6A160E78; Thu, 5 Aug 2021 15:37:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1628177847; bh=KJFGnAesTb/YE5RvbTnTHSc1LxNKuUkzXiyHn6mZRFA=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=gsNqgUPG9mDnGruEjlLobzw0dmjBqaDui9bCFV1mRJ2JldTKHUIMRUgOBKjZVU77m F+PrkYW0EPUa0OYfnskR/SobY3vnm1x2L6QNuS9RoC4Kydg6kZUlDxia6f20YjO8Ri YG1IFmzJJSX0HxSrFri+rk9DxJwSjMzAiI9kY0Kwd4kcxzYJ3Nmh1wHu+qvzgadO3w RVRhrKs/3TdC3dLe2j8sfM50nZATU3Z4aoZcdqd/YYz3OijkbBcv+mKOR9xsHcMev7 Qt4e0ZjrkMn3lerUTKaRhfWgHQMgF84ovnymlzRH9QZOp8+LS2rsPznx00StJv2i7Y lHjozz1FU7GzQ== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 679E35C098A; Thu, 5 Aug 2021 08:37:27 -0700 (PDT) Date: Thu, 5 Aug 2021 08:37:27 -0700 From: "Paul E. McKenney" To: Chao Gao 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: <20210805153727.GG4397@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> <20210805053938.GA12593@gao-cwp> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210805053938.GA12593@gao-cwp> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 05, 2021 at 01:39:40PM +0800, Chao Gao wrote: > [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 Very good, thank you! I will apply this on the next rebase. > >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. Whew! ;-) So about once per 13 clocksource watchdog checks. To Andi's point, do you have enough information in your console log to work out the longest run of course-grained clocksource checks? > >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. Sounds good! Thanx, Paul