Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp285633ybz; Tue, 21 Apr 2020 09:01:23 -0700 (PDT) X-Google-Smtp-Source: APiQypKT05hvQiCujIlVj1C3ORJUyomGUt1lIMwzUfS2I2A7wky48KxgvPsgHpY5f6rlID8dvsEg X-Received: by 2002:a05:6402:4ce:: with SMTP id n14mr21028414edw.32.1587484883638; Tue, 21 Apr 2020 09:01:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587484883; cv=none; d=google.com; s=arc-20160816; b=hXQUF9HKRfW6IyPnA4UuBHInMF7kfep5G1rXjr8tUpjGmkQn+P+BWK85MRzCevhA9o bQIKyO9WA3nq1GaIAtZM9FFliVEkT25RnASRo26Z6n7PYjpXyDAqV2b0ghaAypsB0h/K W3ut/ARuQKRmxF2fGsWDajRV/gs1p5eDjaJLz0mHBZjJX7+Rsh1P9wnNZmKWF7CQRnBD v2lsA3HHjhaZxOJQ7r7w2H8T+p7dIfmmusIgHS6QDTRvfpVOIJOvf6BtnkfwKJoP6CCi 89yJ0PHyxd7RnDVGrg+6GtnroeqI1HkTH1ibQQ2JgzhP7KEKY/p52yItQc+v61Pd6bc2 PRfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:date:from :dkim-signature; bh=2LEPhwH4RpFN5v0e1kCmLkv3DzSN/+rHxkSDgf5nqLw=; b=ai6b0F+ieV3vjnf6pY/fB/91hFe/V/k9bxpfFdrwUfM0qcVKm38AWJja5VLFtk4KfQ ElMABVbKL9O4ffhcgoumeYMBpVEi9I9n2MV7C+wqcBTNW+u6uVKQlxAjUMZ1ThFKxmQa BpxXgDgp7tK0g5Vi2w0PJx7m5Q/hu2WdnODpMXUnswwD6JtyJWLDsxzOXfOE0QPLa6Jw jGkarb3n/JcJ+mzOOBtAJgPMONuImaPtk8FCa3dDs07LA+jAaXIgA91nX6v9ci8W6h5p f0Dtr3vwmhH5Odq6Pq0TAzhLNaIoFRJiLcrEkGKa+zN0Ac7smSpEmLCF/gLYdif2fSF1 R5gg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Ng57rUj1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id cx19si1793146edb.230.2020.04.21.09.00.55; Tue, 21 Apr 2020 09:01:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Ng57rUj1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726335AbgDUP7u (ORCPT + 99 others); Tue, 21 Apr 2020 11:59:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34288 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726012AbgDUP7t (ORCPT ); Tue, 21 Apr 2020 11:59:49 -0400 Received: from mail-qk1-x734.google.com (mail-qk1-x734.google.com [IPv6:2607:f8b0:4864:20::734]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 86744C061A10; Tue, 21 Apr 2020 08:59:49 -0700 (PDT) Received: by mail-qk1-x734.google.com with SMTP id j4so14981545qkc.11; Tue, 21 Apr 2020 08:59:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=2LEPhwH4RpFN5v0e1kCmLkv3DzSN/+rHxkSDgf5nqLw=; b=Ng57rUj1VZE7/HCPDAIa5xhqfMdqGUuCXcW6j800BSNrl86b53MK2rH2vy0Z615Ta3 RVL10KalY/a97OIa/1geTiRpfnLg57YwERVdFp8gsKfQ78G9HUClg+OU9pm3IEwps8S0 OabqcNU3BdMwll6pQ2FFZLuKjAv4srai6LjiSqx8vZjNMdbfjLxR3qnKontYFAm+oOfQ DEoeeBQR99kpIcnUOwEOki3hZmnShN57OH8yblbINcLB5xkt9szKHbo0cy0wxHzVC/UO ks3RSJOHHBWxojKhEUrucN9W/vBWb9mDsKHYwQmidV22GM6s2nsU0PKJUBKqqgs1VmNW /J9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=2LEPhwH4RpFN5v0e1kCmLkv3DzSN/+rHxkSDgf5nqLw=; b=drfIhmXJKMTXrbiw8/ZtKuvfXg/JXIs2pNelLQSwe7QkerQ/INDeCmP904ciKOHJOw qFC+6fLJmTNIP9itnC3vJczFeLl+tC0k5YDID4UJ30osum1mAfixkDmcd+LEgS2FYGWS fwcT+XDw8I5xy0R+p1h5Kiz6JJVWgdhu8iNZbSjOc2e649hfjkiOqTxg371IcVmRYPAr /B8wjscCGs8Jdg6K7qBkP+MMCB5xlytWNZphxKPe6Mbws9esVEOXLD0iSTC/6vu2hRir zEeSoZZmITO/66MshAmFF6LGDheTU2qtrYyJtbOXTH4FmmgiwhORH351hCRYnhCOlfKI N8xA== X-Gm-Message-State: AGi0PuZXAwFPAe5EGRr5TUBT0e+QgYE70dY4HlbsSEvNtrtXttMWf5st TYDqrjtFYG/YWcI5RdxRJMSJLfVJiI8= X-Received: by 2002:a05:620a:252:: with SMTP id q18mr22487211qkn.184.1587484788691; Tue, 21 Apr 2020 08:59:48 -0700 (PDT) Received: from quaco.ghostprotocols.net ([179.97.37.151]) by smtp.gmail.com with ESMTPSA id i5sm1977969qki.42.2020.04.21.08.59.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Apr 2020 08:59:48 -0700 (PDT) From: Arnaldo Carvalho de Melo X-Google-Original-From: Arnaldo Carvalho de Melo Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 35697409A3; Tue, 21 Apr 2020 12:59:46 -0300 (-03) Date: Tue, 21 Apr 2020 12:59:46 -0300 To: Thomas Richter Cc: "linux-perf-use." , Linux Kernel Mailing List , Heiko Carstens , Sumanth Korikkar , Vasily Gorbik Subject: Re: kernel/perf: Sample data being lost Message-ID: <20200421155946.GB12295@kernel.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Url: http://acmel.wordpress.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Tue, Apr 21, 2020 at 05:54:29PM +0200, Thomas Richter escreveu: > Since a couple of days I see this warning popping up very often: > > [root@m35lp76 perf]# ./perf record --call-graph dwarf -e rb0000 -- find / > [ perf record: Woken up 282 times to write data ] > Warning: > Processed 16999 events and lost 382 chunks! > > Check IO/CPU overload! > > [ perf record: Captured and wrote 125.730 MB perf.data (16219 samples) ] > [root@m35lp76 perf]# > > The machine is idle, its my development system, so not much going on. > It also happens using a software event, for example cycles. It shows > up more often, the larger the sample size is. So for example: > > [root@m35lp76 perf]# pwd > /root/linux/tools/perf > [root@m35lp76 perf]# ./perf record --call-graph dwarf -- find > [ perf record: Woken up 2 times to write data ] > Warning: > Processed 231 events and lost 7 chunks! > > Check IO/CPU overload! > > [ perf record: Captured and wrote 1.000 MB perf.data (130 samples) ] > [root@m35lp76 perf]# > > I have very seldom observed this before, only in extremely rare cases with > a heavily loaded machine. I am wondering what has changed, I haven't > changed anything in the s390 PMU device drivers. > It could be > - common kernel code when writing into the ringbuffer. > - the perf tool too slow to read data from the mapped buffer. > However I have not come across changes in this area. > > Has anybody observed similar issue? > > PS: I have added some printk messages into my PMU devices drivers. > I have seen messages that the 16384 pages for auxilary buffers are full > and that samples have been dropped. Can you try to bisect tools/perf? Something like: git checkout v5.4 build it, no problems? Use it as the 'git bisect good' starting point. - Arnaldo