Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1212792imu; Tue, 20 Nov 2018 13:37:45 -0800 (PST) X-Google-Smtp-Source: AFSGD/UmMOYnDnuOPxVKe7AxD4w/Znmm6K7Jz4H3F/hwx2cuKSWPO6/xEQZrVc3hw06nEQHyp7Tg X-Received: by 2002:a63:a552:: with SMTP id r18mr3489284pgu.176.1542749865864; Tue, 20 Nov 2018 13:37:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542749865; cv=none; d=google.com; s=arc-20160816; b=Sn6k6sIDVSmTqv2jadaKq9T9yzN2MFee9xraToFQbO+EdQa/t04xFiTVRlC5+F7zb5 OLR6qCTz+83Lc4m5NIr9I3AeZIbozWGUB1d1l2HT1yeEJ+gFnBL6Bk/NMmNzwfi91BEt k1qNZz6h9iSCZNZdhDtHYG97Hs2D8EHNefkhmINIbNWeOCXliO/L8EbvRX18XbsVtq7y H5ZkHoJmZXyg74HyEfhkWz1MynbkAEUbAD82u8nagAMe8GJDsiP/16vYFxxHb4oi8TZo 0S9AuOdtVWNAxdJe/huH+VbbtswPZOpGlY9AZitD2OV8Q7u6CCF/ZJ9pzBB1+a4SjDBm MVdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=kHRwEqrYrNJG4wxLqoca0sZur4+pvgNslquYPk2eNQs=; b=uIZSB6kFoFRrp2fDKQDrDNnMOEptxXPuNJQSQsrsdswtY3JPdYSShEtc876jEaQEVn A9yEOSzlckqNQqgFd0hBW/tkHVnlIQASQF8CLeenTVNDo01h0gDdTzPw23uoGpttm92B hHdPar5TJnzTSPCSFOH8pgTQ+wY7AwS5QJEdfRYQvmjrdh925m0EQ4diLc+5TdGkVNST cZKV8AuycFf7ljKpPobL693dA8YEdkgUpPiOmwYSCdzuqnRiMTNqgzCtkFk7mb/OKGJJ fT3ZflJMM8Yt1s71bDSA4MrDy25lpccyCoE5cYaY5SEik8pOTJtIsYoYnnYJqO66Pi0K VlUw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o1si43488688pgq.13.2018.11.20.13.37.31; Tue, 20 Nov 2018 13:37:45 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727604AbeKUGmj (ORCPT + 99 others); Wed, 21 Nov 2018 01:42:39 -0500 Received: from mga03.intel.com ([134.134.136.65]:49472 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725887AbeKUGmi (ORCPT ); Wed, 21 Nov 2018 01:42:38 -0500 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 Nov 2018 12:11:45 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,258,1539673200"; d="scan'208";a="90847379" Received: from tassilo.jf.intel.com (HELO tassilo.localdomain) ([10.7.201.126]) by orsmga007.jf.intel.com with ESMTP; 20 Nov 2018 12:11:44 -0800 Received: by tassilo.localdomain (Postfix, from userid 1000) id E754B3018C4; Tue, 20 Nov 2018 12:11:44 -0800 (PST) Date: Tue, 20 Nov 2018 12:11:44 -0800 From: Andi Kleen To: Kyle Huey Cc: Kan Liang , "Peter Zijlstra (Intel)" , Ingo Molnar , Robert O'Callahan , Alexander Shishkin , Arnaldo Carvalho de Melo , Jiri Olsa , Linus Torvalds , Stephane Eranian , Thomas Gleixner , Vince Weaver , acme@kernel.org, open list Subject: Re: [REGRESSION] x86, perf: counter freezing breaks rr Message-ID: <20181120201144.GD13936@tassilo.jf.intel.com> References: <20181120194129.GC13936@tassilo.jf.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > > Given that we're already at rc3, and that this renders rr unusable, > > > we'd ask that counter freezing be disabled for the 4.20 release. > > > > The boot option should be good enough for the release? > > I'm not entirely sure what you mean here. We want you to flip the > default boot option so this feature is off for this release. i.e. rr > should work by default on 4.20 and people should have to opt into the > inaccurate behavior if they want faster PMI servicing. I don't think it's inaccurate, it's just different than what you are used to. For profiling including the kernel it's actually far more accurate because the count is stopped much earlier near the sampling point. Otherwise there is a considerable over count into the PMI handler. In your case you limit the count to ring 3 so it's always cut off at the transition point into the kernel, while with freezing it's at the overflow point. -Andi