Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754593AbbETPZn (ORCPT ); Wed, 20 May 2015 11:25:43 -0400 Received: from casper.infradead.org ([85.118.1.10]:34164 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752835AbbETPZj (ORCPT ); Wed, 20 May 2015 11:25:39 -0400 Date: Wed, 20 May 2015 17:25:34 +0200 From: Peter Zijlstra To: Vince Weaver Cc: LKML , Stephane Eranian , Arnaldo Carvalho de Melo , Jiri Olsa , Ingo Molnar , Paul Mackerras Subject: Re: perf: odd event scheduling issue Message-ID: <20150520152534.GJ18673@twins.programming.kicks-ass.net> References: <20150520070057.GK3644@twins.programming.kicks-ass.net> <20150520092842.GF18673@twins.programming.kicks-ass.net> <20150520135209.GI18673@twins.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150520135209.GI18673@twins.programming.kicks-ass.net> User-Agent: Mutt/1.5.21 (2012-12-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 939 Lines: 23 On Wed, May 20, 2015 at 03:52:09PM +0200, Peter Zijlstra wrote: > > > > This patch limits the number of counters available to each CPU when > > the HT bug workaround is enabled. > > > > This is necessary to avoid situation of counter starvation. Such can > > arise from configuration where one HT thread, HT0, is using all 4 counters > > with corrupting events which require exclusion the the sibling HT, HT1. > > > > OK, so if you have the watchdog enabled, that's 1 event, and having a > max of 2 GP events, adding another 2 events is fail. Hmm, so we count all events, including those scheduled on fixed purpose counters. Lemme see if I can cure that. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/