Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1257316ybl; Fri, 23 Aug 2019 16:20:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqxffhSEfDxviN7UuKNexZg+Wk9JpYLF+fwgRdFIJJYTGg5fwBdjQwGNdRI8NjS01kLq8xml X-Received: by 2002:a17:902:b582:: with SMTP id a2mr7444250pls.199.1566602422878; Fri, 23 Aug 2019 16:20:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566602422; cv=none; d=google.com; s=arc-20160816; b=gI7bUHtiKulrqdIeit1XYxj4lFRrwmRk9AdxSGY9fpD3/nOw4+pnsofzvTCMYOQwW2 SXnKQei5vxAX6bi6Sz68gZ0U29I5TDjF0ztA6dPPxrJXYKinisCxrxjIOnF7uNu05iuC L3/V7iTxArACMcNsiT9//TXf4AvqmCAfPBCTWHJiTR5fJcNUTpwPRKqVAY5gu9fgCYXX fLiqspdbxBEtn4c+NtSaDz7Ir5nwAicjUTaNPXB7xVZHmaGHIgoMShBGKWEUCxUj/u+y UDAkOWh7s3ASt8a2ausIUXuRRBaVyxoqnwTEfRLDuJumWyuOSzWu+LbTzAKKvS6NSMZt QitQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=XID+uEqMpo1msXzHrPG2vXSXUSZE5du4xRV16C8TdVE=; b=QOc4lZspzi6tAm7w5o5HbqrbaTZkNIvm4k+Zp7cfPA9QE4Jmuy0gdavnMF20Jh05Gs SF1NlDcc0MegiEu4SMXqBHNaPCW1lKuTwUSrg+dmV8p5joXVZUGpwNunMrBA37alRkhc srCu5Rrc/bnoj1zZWsSaxtexsrfxRqpK67IHTlPeUCUxXc9WBrIzuABrhonxVhWiZFUZ CYKv+o7NTbNmB8l1OYgc00MyjCuRw9ETEseMzVssuskf4q26OvD/+HDjPRT5LqtDglHW MN8FXXRmACp0CMy0OQgDUC6NceoAlIPsI0QWTj8E5UatbJDCKEn51ioXMIzz8lM66lyA Ix4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=iQF17QvR; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h8si4008902pfr.280.2019.08.23.16.20.08; Fri, 23 Aug 2019 16:20:22 -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=pass header.i=@gmail.com header.s=20161025 header.b=iQF17QvR; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2395067AbfHWM4s (ORCPT + 99 others); Fri, 23 Aug 2019 08:56:48 -0400 Received: from mail-io1-f68.google.com ([209.85.166.68]:43079 "EHLO mail-io1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732092AbfHWM4q (ORCPT ); Fri, 23 Aug 2019 08:56:46 -0400 Received: by mail-io1-f68.google.com with SMTP id 18so19760426ioe.10 for ; Fri, 23 Aug 2019 05:56:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=XID+uEqMpo1msXzHrPG2vXSXUSZE5du4xRV16C8TdVE=; b=iQF17QvRNQaaa/SIlshzYQUZu/ekcylkeuAJeL6K9WbpMM0NllsteRFxJevNe0+vQM xiRVHpq1kNDbKoXS8G+VBhpqrKp5J3tWcXCh7mEAU63XCNhmmgP3rRJCfYqPH3MfWpRA i3kR29HYF4+GmI4vnVvvHDisZ3wyvwk34QgKZIerZ1y5D/8elj6mAxWeob51zj2Vu7eq WMG+JTt0XB21g+Ra+FeXzEkQLFdcPnFRd9hkI8yurwRog7ZVPu40P9xoV9thk7XiBrJC LnN4UN+IoFjyVohCLbJtxZwJOvjPBirv78eVraj91gXl74uiqGTf1B3b1YW/aBGnLrH3 Dqxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=XID+uEqMpo1msXzHrPG2vXSXUSZE5du4xRV16C8TdVE=; b=egn/QlrXSKK4MnsTeCX/PtyLBw1vCIiffMWBSAT3XWS+ZzJYglnwsc1I9sqAswSAod ZmUHnJQpbej896ywhYLebBFftiIR6eOtker/vxSiLyNZVapJkB8+N3dkAXbtk1Mmfp87 AwbGH4aJJeIZQCmpbjGXd6/sSnCfNbyGm13EU8Y1s8aXlg9fsUuQkJ/ohhHeOWd1th3A FZ0xwFnI2ce1fZFZiOH4Dhw9My2aeqFWzduWtz/POmlmC4FIueVZaRt1LBbYjyxApWUN Nld/ZC/FN+1E6Sm7SpBCPQP1cl6q8SS0VEzxTiI6X6lphUQy6gRFTtuIye5feJv8DkaP xSew== X-Gm-Message-State: APjAAAVfqDgGNxSFeuGGofQV00FVKXjKWglxABW4n6JTuhwZnrmVxE95 /X9zQt86TMeaD3MIHMlf0eQskYPuoZlyZ/UnWfRHOr7V X-Received: by 2002:a5e:8e09:: with SMTP id a9mr6632065ion.238.1566565005719; Fri, 23 Aug 2019 05:56:45 -0700 (PDT) MIME-Version: 1.0 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> In-Reply-To: <20190823115946.GM2349@hirez.programming.kicks-ass.net> From: Ganapatrao Kulkarni Date: Fri, 23 Aug 2019 18:26:34 +0530 Message-ID: Subject: Re: [PATCH] perf cgroups: Don't rotate events for cgroups unnecessarily To: Peter Zijlstra 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 Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Peter, On Fri, Aug 23, 2019 at 5:29 PM Peter Zijlstra wrote: > > > 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? Sorry for the top-posting. > > 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. > > > 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! > > Thanks, Ganapat