Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp3308969pxy; Sun, 25 Apr 2021 21:13:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyqh8gyKTYSxJZmVxb1cjzvZdZeEjQAEeiqNPOjkvSuDMJwAbG4y7HYJf1Jxjcd4kciCxcP X-Received: by 2002:a63:1a48:: with SMTP id a8mr15036477pgm.81.1619410403936; Sun, 25 Apr 2021 21:13:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619410403; cv=none; d=google.com; s=arc-20160816; b=QHuEMZVQqzG9nNwtJUEqQaBcYq2RMEh6ImGgj5pGqz607fqCkiuLqJyKzQ+Fyc+umS dE1wzVYaED580U09fHZEjMz0ldUYdb5mDj7eX5fmq0+LrnToePt3TQa4KiWgXMRHuBXu oy2h3iH8xy6pGbQcgTxpLHOaPrGhFD+S6rsP2vWkgKJzJXm4JoXwom7Rfbyn6g2eyLMO y5FZgoTw+XUu7vQnHCmpuR5Py0XWryznvg99dNM82qq8XvfuL2tQgBrw746K0XWEGsRh CaUMu5Uu8XyNbf//30l+OlnZyc18Rmp3APKDLSLY2t8fjNbyCpcBlJTxjWU8hIsHUXBJ ILPQ== 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:message-id:subject:cc:to:from:date:ironport-sdr :ironport-sdr; bh=bTI7FhCvVpp8NzGvuSkja+oz5jBS/bxqIHOvUG3arNU=; b=vUbuSmVTmKlL0+M+mntYCHWZmgkhCG1in5Jl7dvZJP2vupJtMAdLKBAC5HutYNK7ms Q8YjFb4YUte/zETPtp9i1ceVXrWRp3Lxl+waFP1r2XwTk+YhmTkk1AtZ5UP0ENkjyiCe An1ZehSp8TIHA+VTQoiKIjk+uWxmbVV2EvGEkPKd3V1Gx+sIC2Go4v0dUZFzJG6FTc6h +hMWYyHHpYHADz0N2Pq7o7yT4k/6Tt7sKHjaE2ZGVjG+sq8SIVw6vq/t8yu46Lz+GV4X aH0CgkjdKj5lzQAVMADXJ3sfG52OlHtaYqAflr7Wg1AEKpGc8LdrWnELSK2732ujLa6Y oDoA== 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 z7si20210060pfz.153.2021.04.25.21.13.11; Sun, 25 Apr 2021 21:13:23 -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 S229517AbhDZENS (ORCPT + 99 others); Mon, 26 Apr 2021 00:13:18 -0400 Received: from mga11.intel.com ([192.55.52.93]:29774 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229469AbhDZENS (ORCPT ); Mon, 26 Apr 2021 00:13:18 -0400 IronPort-SDR: U7R76eiWsR0VPsvaYF4T1iG7XOLBc8k24Bu3/CKsJKR6qsma+cZqu+MOXFLf17egUgaoXgKT15 zvbqcfMsTF5Q== X-IronPort-AV: E=McAfee;i="6200,9189,9965"; a="193091258" X-IronPort-AV: E=Sophos;i="5.82,251,1613462400"; d="scan'208";a="193091258" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Apr 2021 21:12:37 -0700 IronPort-SDR: poc0boSHS8hNFEnmuaRhbOJsfcCUlbhbuMNMfaMbfNts51iNwtUpXZgbS0CNYbqqnARSLPidXx sG+lRRzDQzxA== X-IronPort-AV: E=Sophos;i="5.82,251,1613462400"; d="scan'208";a="422450585" Received: from tassilo.jf.intel.com ([10.54.74.11]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Apr 2021 21:12:36 -0700 Date: Sun, 25 Apr 2021 21:12:35 -0700 From: Andi Kleen To: "Paul E. McKenney" Cc: tglx@linutronix.de, linux-kernel@vger.kernel.org, john.stultz@linaro.org, sboyd@kernel.org, corbet@lwn.net, Mark.Rutland@arm.com, maz@kernel.org, kernel-team@fb.com, neeraju@codeaurora.org, feng.tang@intel.com, zhengjun.xing@intel.com, Chris Mason Subject: Re: [PATCH v10 clocksource 3/7] clocksource: Check per-CPU clock synchronization when marked unstable Message-ID: <20210426041235.GT1401198@tassilo.jf.intel.com> References: <20210425224540.GA1312438@paulmck-ThinkPad-P17-Gen-1> <20210425224709.1312655-3-paulmck@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210425224709.1312655-3-paulmck@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Apr 25, 2021 at 03:47:04PM -0700, Paul E. McKenney wrote: > Some sorts of per-CPU clock sources have a history of going out of > synchronization with each other. However, this problem has purportedy > been solved in the past ten years. Except that it is all too possible > that the problem has instead simply been made less likely, which might > mean that some of the occasional "Marking clocksource 'tsc' as unstable" > messages might be due to desynchronization. How would anyone know? > > Therefore apply CPU-to-CPU synchronization checking to newly unstable > clocksource that are marked with the new CLOCK_SOURCE_VERIFY_PERCPU flag. > Lists of desynchronized CPUs are printed, with the caveat that if it > is the reporting CPU that is itself desynchronized, it will appear that > all the other clocks are wrong. Just like in real life. Well I could see this causing a gigantic flood of messages then. Assume I have 300 cores, do I get all those messages 300 times repeated then? If the console is slow this might end up taking a lot of CPU time. And in a larger cluster this might not be uncommon. There must be some way to throttle this. -Andi