Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7220815imu; Thu, 31 Jan 2019 06:57:16 -0800 (PST) X-Google-Smtp-Source: ALg8bN6LATPu7yYvvhg0kMxDg6qi1BzuFnlWiVAM1B3zKPRCma4l0phrWXIUELkflY2S0bHrIIvg X-Received: by 2002:a63:86c1:: with SMTP id x184mr31553585pgd.305.1548946636942; Thu, 31 Jan 2019 06:57:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548946636; cv=none; d=google.com; s=arc-20160816; b=DCDY8mTNyaiwFO+acjYt3t5w3mcTkxCDseZ9vjVLKYYxNns8YbcakQlIj9/LDb2Z22 /itSSXclAauhWVpqDFTBmVPKmWL1tzwZkiReVo0glzZUgyUT4eRTd2AmUg2R65xkTDry hkAx1mTGJ1IiNC1OBJv2vq61/Ylkjw6v7UtrEPjdka1+TztThUVuzZ9VjB8QW2m4v4l0 goo4zcgtRjRD9nDQMkpQAVDaUGPd/DJm/nHhgi+UCRtnLvy89ERRSfDR0TfamA2tuuVx KdjtRAK0i3WoLW+g+qEmvmlsz/IoXBA4D9DckHVciBOYT5ooabyK75L9gomMFabxRipu p4kw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=M4PSBRhDrhORCv0TlqDF/38Qz9qUFAtoRIhwmc9/CB0=; b=Gt2mmCnbXKTB57n0g0Rv5qS5drkfNXb7jY8PWFXYytcgeGoKKwnioO2JBzaRYNw7ma STstBoFJa8r6Kt5EM5Hk1N1pyobppgOpv31bTZQLq+yHa3sweq2uAa+uk0E0xEl5CVdi suc4/3xUp/niWmR9FEPRH9nK/pbpl/TG67oVxltzNpT5ZdPi3StotrQwprkFC1ijIMnq zGOpAzEEm8YnqqGtJYlAnSdM8iiU/QPbGqxbP3NjxO55qGeEOh+jlaDfqqSnWvgytiRO xLcEurh8Ne9wJ4CrS4m6alqfg0yKaU1LC+tRC75IEg1MPEeI3WjnE+Kd2zydAz6jbC7k RJ0A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j1si4485163plk.342.2019.01.31.06.57.01; Thu, 31 Jan 2019 06:57:16 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387446AbfAaO1A (ORCPT + 99 others); Thu, 31 Jan 2019 09:27:00 -0500 Received: from Galois.linutronix.de ([146.0.238.70]:49544 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726775AbfAaO1A (ORCPT ); Thu, 31 Jan 2019 09:27:00 -0500 Received: from p5492e0d8.dip0.t-ipconnect.de ([84.146.224.216] helo=nanos) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1gpDIv-000701-Ca; Thu, 31 Jan 2019 15:26:57 +0100 Date: Thu, 31 Jan 2019 15:26:56 +0100 (CET) From: Thomas Gleixner To: Zhenzhong Duan cc: linux-kernel@vger.kernel.org, x86@kernel.org, Daniel Lezcano , Waiman Long , Srinivas Eeda Subject: Re: [PATCH] acpi_pm: Reduce PMTMR counter read contention In-Reply-To: <019e583c-7bcb-c234-200c-fcdb6c49fbb0@oracle.com> Message-ID: References: <1548141807-25825-1-git-send-email-zhenzhong.duan@oracle.com> <019e583c-7bcb-c234-200c-fcdb6c49fbb0@oracle.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 31 Jan 2019, Zhenzhong Duan wrote: > On 2019/1/30 16:06, Thomas Gleixner wrote: > > On Tue, 22 Jan 2019, Zhenzhong Duan wrote: > > > > > On a large system with many CPUs, using PMTMR as the clock source can > > > have a significant impact on the overall system performance because > > > of the following reasons: > > > 1) There is a single PMTMR counter shared by all the CPUs. > > > 2) PMTMR counter reading is a very slow operation. > > > > > > Using PMTMR as the default clock source may happen when, for example, > > > the TSC clock calibration exceeds the allowable tolerance and HPET > > > disabled by nohpet on kernel command line. Sometimes the performance > > > > The question is why would anyone disable HPET on a larger machine when the > > TSC is wreckaged? > > There may be broken hardware where TSC is wreckaged. I know that. > > I'm not against the change per se, but I really want to understand why we > > need all the complexity for something which should never be used in a real > > world deployment. > > Hmm, it's a strong word of "never be used". Customers may happen to use > nohpet(sanity test?) and report bug to us. Sometimes they does report a bug > that reproduce with their customed config. There may also be BIOS setting HPET > disabled. And because the customer MAY do completely nonsensical things (and there are a lot more than the HPET) the kernel has to handle all of them? Thanks, tglx