Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1258058ybl; Fri, 23 Aug 2019 16:21:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqwBOmvRX2UALDg3QbRZO84/Scqcbprp1896gzOtmko2HKhe/zqzKaZx9RcEBtK0Hs7924Zr X-Received: by 2002:a62:e901:: with SMTP id j1mr8172753pfh.189.1566602475253; Fri, 23 Aug 2019 16:21:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566602475; cv=none; d=google.com; s=arc-20160816; b=kKqBMDEOLdSYWtpsOlI0U+9C/UQM+xSttSWz+O7cxb/UZdkjJorUC5B9d6bx1wTWKW gTLafNfQDA4B/ymeLImRcObfVLNB1GzggJOrXFj4tb33AgA/8ikp4VOst32aARMQRe9B f029Yd6sQJoJocu/5dHApNfvwj6LXMnnmCA7f7Ops41hYt0LDyBPSfwMrCn/Fx4dsp80 q2X8f4d1+comddyrfWuyFFFfCatk+GPYHfPnX7iEgHAKCIptW4pstKWRZ22OV60eNHok FR76PaceOdNlL5NFrvRPfWcujFBHqJy8uaPK6N1AHyQsquPzfSV2VXZLJgjyHC+K58gN aCCA== 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:dkim-signature; bh=d/8OC8qK7AH729RYuk/u+nW1ro0Plfkg+QQGzVTANr8=; b=FHPUKDPbOEAgdGvLgaCXvE8U36Z/k83fLBB5PlyBGqmpBC+FHZr1NgsOBp6qBv3aV9 1B5RZqZ95bG2kA6p+emuj4J9MoYJXO1S+M3f5ngofkQkY80dh5CF8nXtw6qdWoOmAwBF RaCEm+g7F8BbIw3rZLKlDUHpNu5rUy/b5AfdbSNI/sGz5F042uDgpVLwJBm7EkeuGK5S VbI8fuoswopekTTj2Y2TsAOtDZEQZhs3NByOizrEA0IyA1FEdAKACGLYOeeUrS1f4QCh afsxSnl8Sz4Cfpmy7HKLhvz8HgYrTpjNz9jWhr5Dkd3ZmGkTfk5rbxmmZHIWaMzgfo4M ADXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=L6eKFF9y; 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 y13si3079828pgp.339.2019.08.23.16.21.00; Fri, 23 Aug 2019 16:21:15 -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; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=L6eKFF9y; 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 S2404246AbfHWNDl (ORCPT + 99 others); Fri, 23 Aug 2019 09:03:41 -0400 Received: from merlin.infradead.org ([205.233.59.134]:38238 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404041AbfHWNDk (ORCPT ); Fri, 23 Aug 2019 09:03:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=d/8OC8qK7AH729RYuk/u+nW1ro0Plfkg+QQGzVTANr8=; b=L6eKFF9ypk0LmLF7nc13NiAyN mVRGyMd+ZBjHbHJ4c7M9bpNUm5oNB/WN4clmoDYOV5w9NxfGmHN4Oc9nJLnKrqA2IqJupzfpaUCih i6TM+ZI/b+3wKv8eGVaiGjoPNwpEJgeRxtsn2oRbCYrEjl177tgUquVVTTGwqCxaa+Mk8vtpxAe+i LgpsrSIZ2p0NgK8v40CccfhA0F52zEj6Z7Dt5hUDQqZIxwzsfTVoThPb9CniCM6fo9hW1iFiqGELu lLMCC1/KQJDmngOsHyqlvYmu4JexwiqDedr62bPBsRiDVcIWHl+0Q3HzBGF7vxSKwi77m7yMieOpv GzIX+B6NA==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.92 #3 (Red Hat Linux)) id 1i19Dy-0001bh-5e; Fri, 23 Aug 2019 13:03:26 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id A027D307510; Fri, 23 Aug 2019 15:02:50 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 11044202245C4; Fri, 23 Aug 2019 15:03:23 +0200 (CEST) Date: Fri, 23 Aug 2019 15:03:23 +0200 From: Peter Zijlstra To: Ganapatrao Kulkarni Cc: Ian Rogers , Ingo Molnar , Arnaldo Carvalho de Melo , Alexander Shishkin , Jiri Olsa , Namhyung Kim , LKML , Kan Liang , Andi Kleen , Stephane Eranian , Ganapatrao Kulkarni , Jayachandran Chandrasekharan Nair Subject: Re: [PATCH] perf cgroups: Don't rotate events for cgroups unnecessarily Message-ID: <20190823130322.GO2349@hirez.programming.kicks-ass.net> References: <20190601082722.44543-1-irogers@google.com> <20190621082422.GH3436@hirez.programming.kicks-ass.net> <20190624075520.GC3436@hirez.programming.kicks-ass.net> <20190823115946.GM2349@hirez.programming.kicks-ass.net> 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 On Fri, Aug 23, 2019 at 06:26:34PM +0530, Ganapatrao Kulkarni wrote: > On Fri, Aug 23, 2019 at 5:29 PM Peter Zijlstra wrote: > > On Fri, Aug 23, 2019 at 04:13:46PM +0530, Ganapatrao Kulkarni wrote: > > > > > We are seeing regression with our uncore perf driver(Marvell's > > > ThunderX2, ARM64 server platform) on 5.3-Rc1. > > > After bisecting, it turned out to be this patch causing the issue. > > > > Funnily enough; the email you replied to didn't contain a patch. > > Hmm sorry, not sure why the patch is clipped-off, I see it in my inbox. Your email is in a random spot of the discussion for me. At least it was fairly easy to find the related patch. > > > Test case: > > > Load module and run perf for more than 4 events( we have 4 counters, > > > event multiplexing takes place for more than 4 events), then unload > > > module. > > > With this sequence of testing, the system hangs(soft lockup) after 2 > > > or 3 iterations. Same test runs for hours on 5.2. > > > > > > while [ 1 ] > > > do > > > rmmod thunderx2_pmu > > > modprobe thunderx2_pmu > > > perf stat -a -e \ > > > uncore_dmc_0/cnt_cycles/,\ > > > uncore_dmc_0/data_transfers/,\ > > > uncore_dmc_0/read_txns/,\ > > > uncore_dmc_0/config=0xE/,\ > > > uncore_dmc_0/write_txns/ sleep 1 > > > sleep 2 > > > done > > > > Can you reproduce without the module load+unload? I don't think people > > routinely unload modules. > > The issue wont happen, if module is not unloaded/reloaded. > IMHO, this could be potential bug! Does the softlockup give a useful stacktrace? I don't have a thunderx2 so I cannot reproduce.