Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp2199804imm; Sat, 23 Jun 2018 11:51:14 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJD01XPMbl0ClvryBWZK9+MgQUC8VgqpcAtQ2iw7ORQ6XhJONRLIp6BlqajnKw5pmSgmB6P X-Received: by 2002:a17:902:9883:: with SMTP id s3-v6mr6378595plp.194.1529779874279; Sat, 23 Jun 2018 11:51:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529779874; cv=none; d=google.com; s=arc-20160816; b=Y1QNk4v1m2dXED2A2RHuaBIZPRzVQkr5KqpbFD2b0ojkwiXGye91Ms4YvUxcPvjwiy mONO9cr3BPl9HMtGGTvVg179789NwTZDC4eC8SFC2xWEnNMhaHpqGEVMEVPSP3lFef82 bZRYx3MwP4fh4GAOakbopzr5XXeeIhW56jaFLM4mO1OqCXoZo2zvTMpBxWdQHL8jujL8 GaxHKHFP00pM2n6VUUPR/bxZi/ArlRWdSYVYzCocTvy93zpOTZ2UEs7yvi5mx6E3u60Q CAEm6bIDO8hbCn900onqpVRmzYD8OOx0X8HZy6fs/UMf+dcG14gLAZNvOqNsg1+U/Bpy beVg== 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:arc-authentication-results; bh=+p27wgI88p2+DMlOLMg4LmyNx0hlbqpNSXTlvmHI5sU=; b=n2F064qmdxCnRAqcfDD22VLtHu8gqtJWK2JImwl7XjvJUKEtomrihI7+WHRJLGikFN hZjtPN7/ciY/6KXhRGHCTCES6bI8VQOUjtzov7zGeXqHkTHiHf5lTgYuu7KIMz7oST9/ TrybWBAIqJ+6K/OpgMte3xVFGFcNOyfYHFWjPowJ0b5iZVD44gjQgBVNNQly3xCdfp8a Aw2vBSn0SEjnRHtYcqNihjKDh6gVfPQoyjKz8d6In34D0QScAP9JGgNRJJFAY6Argrwe qBuWXQvsr7WtjDVtGkJFQrYmAqjps6Q5lWlbIXYT0oRvb0g/V/wIgc6SIrrVSskEqTRh x3pA== 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 d34-v6si10132728pld.252.2018.06.23.11.50.20; Sat, 23 Jun 2018 11:51:14 -0700 (PDT) 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 S1751859AbeFWSs2 (ORCPT + 99 others); Sat, 23 Jun 2018 14:48:28 -0400 Received: from mga11.intel.com ([192.55.52.93]:13275 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751804AbeFWSs1 (ORCPT ); Sat, 23 Jun 2018 14:48:27 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 23 Jun 2018 11:48:27 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,262,1526367600"; d="scan'208";a="59635053" Received: from romley-ivt3.sc.intel.com ([172.25.110.60]) by FMSMGA003.fm.intel.com with ESMTP; 23 Jun 2018 11:48:27 -0700 Date: Sat, 23 Jun 2018 11:47:55 -0700 From: Fenghua Yu To: Peter Zijlstra Cc: Fenghua Yu , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Ashok Raj , Dave Hansen , Rafael Wysocki , Tony Luck , Alan Cox , Ravi V Shankar , Arjan van de Ven , linux-kernel , x86 Subject: Re: [RFC PATCH 00/16] x86/split_lock: Enable #AC exception for split locked accesses Message-ID: <20180623184755.GH18979@romley-ivt3.sc.intel.com> References: <1527435965-202085-1-git-send-email-fenghua.yu@intel.com> <20180621193738.GA13636@worktop.programming.kicks-ass.net> <20180621201851.GC114883@romley-ivt3.sc.intel.com> <20180621220003.GD114883@romley-ivt3.sc.intel.com> <20180621221337.GE2494@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180621221337.GE2494@hirez.programming.kicks-ass.net> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 22, 2018 at 12:13:37AM +0200, Peter Zijlstra wrote: > On Thu, Jun 21, 2018 at 03:00:03PM -0700, Fenghua Yu wrote: > > For example, on a consolidated real-time machine, some cores are running > > > Another example, in a public cloud deployed in the field, a user process > > In either case a single split-lock shouldn't be a real problem, if you > program the event with a count of 1 and have the NMI handler kill the > offending task, you should be good. > > Not saying the #AC isn't nicer, just saying the PMU based thing can > still work. The difference between perf event and #AC for split lock is perf event is after the fact while #AC is before the fact. In the examples (esp. the first example), hard real time cannot afforrd a split lock/bus lock. Perf captures the event and kill the task; but the split lock has been issued and harm has been done. #AC for split lock kills the task before the task generates split lock or bus lock to hurt real time tasks. Thanks. -Fenghua