Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1013235ybv; Thu, 20 Feb 2020 11:25:38 -0800 (PST) X-Google-Smtp-Source: APXvYqwgXXeoEzeVQ7fRcr/X5LyElayZNcPu9hVTErc7nZxCFcbbv5mopbL9r1uBzGghRi+kL6OX X-Received: by 2002:a9d:674f:: with SMTP id w15mr24900578otm.243.1582226738676; Thu, 20 Feb 2020 11:25:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582226738; cv=none; d=google.com; s=arc-20160816; b=g36KWhfuS4f0DqgiTjh2L/OPF2KmIi/P1eZhmrf7nyyNqifcpaeIPN4p2lBrAiO7+r 1fQ/RANFnKn0cLvpg6YJj/fP/wuqRC5U7ovpwfefrJq8K8+mCY+V0A83F8yPI4YzSRQu tPlAsXIJMItb5p+SMXngnpuKtTvFVAP1bWfMimx1KqVMDxkgybLtBEdLqkXtbqp2dTTu Bf+3uyaJHcNJ/GwRrWwaeHjClGDLxdrWd9CubunIRhc0lqiInjn6AYdE1QwZlYrit2Jp j+JNbpc1SeLUWEscPMYC5seqDNIZ0jwK8XO3bWd+LP6+rTYI08bE7reXK8TY2psVV4+e 7G4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=tNZ+5+IOamqeJ52XZ8Bvq8wJd70v+rADv3cEwpFvnJI=; b=IPZwIzvDeq48fkFjNnFUd4bT9AP9xj5fFyUTOn2M9ymOkWiDI2Z9RqFvn0GISVymGm lg2Yj4YjHh3o8uZzfvaPlKrjo5ny2OFfyaUn3H00MxZaro92f20FN1vRYbZXgIE/wOJ0 GqZUfs+6jva6fvtXxIlpROdx4nANXw4BfPQCqIndYMydWGzoaqydDT+oHlxntY8KFOfz VCscXbd7RVrkr8UlAM3zCQyAk8f9MAYkTnSVRNPhmTw1T1BpVdDywi/faYYRtbSdABwO QF+TP+dnsBGUPSFF94oePjlPdv1unVLN9FphbZ7ScO7jFzaR/LI+vgpYwMWPXrdLRgbU 8U/w== 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 d5si110523oij.139.2020.02.20.11.25.25; Thu, 20 Feb 2020 11:25:38 -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 S1728596AbgBTTZH (ORCPT + 99 others); Thu, 20 Feb 2020 14:25:07 -0500 Received: from mga05.intel.com ([192.55.52.43]:49967 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728334AbgBTTZH (ORCPT ); Thu, 20 Feb 2020 14:25:07 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 Feb 2020 11:25:06 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,465,1574150400"; d="scan'208";a="224963014" Received: from linux.intel.com ([10.54.29.200]) by orsmga007.jf.intel.com with ESMTP; 20 Feb 2020 11:25:06 -0800 Received: from [10.251.25.159] (kliang2-mobl.ccr.corp.intel.com [10.251.25.159]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by linux.intel.com (Postfix) with ESMTPS id 54F0958056A; Thu, 20 Feb 2020 11:25:05 -0800 (PST) Subject: Re: [PATCH 0/5] Support metric group constraint To: Andi Kleen Cc: Jiri Olsa , acme@kernel.org, mingo@redhat.com, peterz@infradead.org, linux-kernel@vger.kernel.org, mark.rutland@arm.com, namhyung@kernel.org, ravi.bangoria@linux.ibm.com, yao.jin@linux.intel.com References: <1582139320-75181-1-git-send-email-kan.liang@linux.intel.com> <20200220113924.GB565976@krava> <534b4b99-466a-0a5b-e9f5-b4711abd8a4a@linux.intel.com> <20200220164317.GG160988@tassilo.jf.intel.com> From: "Liang, Kan" Message-ID: <616a4f00-dd1f-20b2-a228-3fa9d7391016@linux.intel.com> Date: Thu, 20 Feb 2020 14:25:03 -0500 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: <20200220164317.GG160988@tassilo.jf.intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/20/2020 11:43 AM, Andi Kleen wrote: >> For other metric groups, even they have cycles, the issue should not be >> triggered. >> For example, if they have 4 or less events, the cycles can be scheduled to >> GP counter instead. >> If they have 6 or more events, the weak group will be reject anyway. >> Perf tool will open it as non-group (standalone metrics). > > Technically it can also happen for 9 events with Hyper Threading off or > on Icelake (8 generic counters) > > I didn't think we had any of those, but please double check. > I checked all public metrics groups. Right, we don't have such metrics group with 8 GP events + 1 cycles. We only need to add watchdog constraint for Page_Walks_Utilization for now. Thanks, Kan