Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1250414ybl; Fri, 23 Aug 2019 16:11:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqysw62IcUW+OK3XBv9QQM96NrlrpIb0tIB4ufDfUoEcu1nALU0bq1AgOcF2nWV29t143f1e X-Received: by 2002:a63:6947:: with SMTP id e68mr6111288pgc.60.1566601899844; Fri, 23 Aug 2019 16:11:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566601899; cv=none; d=google.com; s=arc-20160816; b=VXgS5xGpTsPoW44DU6kl9DB2quxGXly2lhh+Yp504WVwdx3pA9YSH9JO71tEMAp5t9 r7o0s0sv+5Ph168yvILR5wTvHMB5rI2aozOOHOVAXy3Bxxik3CGnEMvBj3OadsfeQR9e 4wj62yfM8LSe7SZlTh1yLgCfAq73wRAhrC8rfIwOilouJTwqia3VXwG4a2cE1PaSkGkI Mrm4hwVAEk76FsTtKSEeWfffuBwTU+OMd/DH++yD55c02FXFZSzEW7O8Vw1L46bi761F WalthcNVk+ORj1gKJ9VRSrp5a5N/nFKz7VsamGKEiAeoiVQao50I46XFs768g/13dQbT 700w== 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=MCKmImQ0R7fs/6XAgJnWu6vihJ6Hr3Y99gy4SyfNOlA=; b=PW+qucUvYpAHR9yjrUPRYBO/YZov5QYQDWIOHNJvhRBsvHJEFXFpY8IiIPWcMUiQTp hiEL453cbDMaowi809ivIts/9ioCnAgxxge2TycwUDun35U19Vmmx7+IthfpanO5LCt2 96Yaia+zj8bhEhWZhvOAlz25OsR18TChctuJLCwEdzUOf4K+YrXjx1l7aU6+hRBkIfxp 44Zq6BtGbi8hxGzL7rf1sCTPw08pBJTqD2/KlBD6QhUjbZ5s+BHcwSDYU6d6q7cUU54T nJV2e5DSxXkcR1WZqi3qlOP64SE+oFhxRL9cIV9ydwKaCJIBxkBpeXOz1Sbnz8UUOhbz S2+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=FZCOxMDJ; 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 1si3720716pli.374.2019.08.23.16.11.24; Fri, 23 Aug 2019 16:11:39 -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=bombadil.20170209 header.b=FZCOxMDJ; 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 S2388296AbfHWL7z (ORCPT + 99 others); Fri, 23 Aug 2019 07:59:55 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:49014 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727894AbfHWL7y (ORCPT ); Fri, 23 Aug 2019 07:59:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.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=MCKmImQ0R7fs/6XAgJnWu6vihJ6Hr3Y99gy4SyfNOlA=; b=FZCOxMDJPgj2WE7xMMDZy9X0M RjCB/eg/giF5WfYFquy5CueJrkQeb1QLlbtio8nLhsZZQHINVSzGS0Cda9me4z/AQGu6c0AqYlFOD XrB/mbK1i9kKYE94F8rveai4Dx4y30knXWq8z10Yx1f4SP10blnZiw+2GMWzVInqLjoe/hHSyPYxj qdLLts3sw9WYPxjTmnz9JXC2JQT09It8LSA4bfE7B2vGZzmm/u5ER621WzilDr1KIsmTKnnezNnBn y7Rkg2zAPJ9AmnmU3cwODZDlqAIFeWjufdiwtSUav/HvhEZcz+sVKvBAAxAivIYd4vECRHKYuK8vO I/pDM7VVQ==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.92 #3 (Red Hat Linux)) id 1i18EP-0003Wt-Mm; Fri, 23 Aug 2019 11:59:49 +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 8E5DE305F65; Fri, 23 Aug 2019 13:59:13 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 4C530201E04D9; Fri, 23 Aug 2019 13:59:46 +0200 (CEST) Date: Fri, 23 Aug 2019 13:59:46 +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: <20190823115946.GM2349@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> 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 A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? 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. > 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.