Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp281703ybz; Tue, 21 Apr 2020 08:56:59 -0700 (PDT) X-Google-Smtp-Source: APiQypJFjWpSjxXhV9mHebD9/T5p2bLLYGAdC75PFyjaMXCnUsMe8bKh083H6xRrFxmDLWpfwd3P X-Received: by 2002:a17:906:168f:: with SMTP id s15mr22754463ejd.17.1587484618879; Tue, 21 Apr 2020 08:56:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587484618; cv=none; d=google.com; s=arc-20160816; b=JkvE1IsEvxBTUcPYxvmlnFZoLOOjc7puRQ8WIEdXwg3j1iZFTh4GzYDe9+T97cYhWC 4kH5qd9/CVrEh6kQ0IcNpJpUcHCFQEagHke4HQowuEkXl/ytYd+WJr8KVEB2pm3paY68 nrYvMP+7a3gq0Q23S4Ff9xW0Ea9jnghjv118BqKMaXg4yqd0rGRO2lVGptPnW4ti4/DP Ag7DQSZgk+A0z71u1fQg6eFlH7brv3vb2YG0q2S3zA7xctHqaq7Zj9nH8+Z9RM2QUR5p kJSEwmxumlOznzwNFV76/551r9lSH/D7EghOKfM/VjajYDUaZoLf5R6okL8mSPh7kOHg fC3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-transfer-encoding :content-language:mime-version:user-agent:date:organization:subject :from:cc:to; bh=MsvpUtS9Hudf6rV1PllOmqkT4CGNid1yRqj+QhwDGJg=; b=iMYAQnq3lFsQ0Hrr7GWEUmYMY0/vhWadcfcP+QiJuGxjKxgqqcBh5xeDghCY3sscwZ LO45jnZZkbjAEbj0Rg8+wOSstWTmefg9Vk+ixRXqonLnEzrYPozwuapm1RImM88Bwgew dmIdSvYjbMDsKhqysEfz74iJTeDRbE352ZZM3nWxAWU814hJQSXbAqjmdSOFPEMMqnjE QVDgl3i+jvHugUm2jLjHdcZafSK1YMj+TFkmopCiVPQ6SuUIqziXoagppb5s9rH4Fei8 UljU9Z4d1GEhPk9kLb1Es5uFmDKtC71XOAB7DJmFmc7I9pErVZN/6vrXk1+idIo+xkdg xNWg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u25si1780590edi.574.2020.04.21.08.56.35; Tue, 21 Apr 2020 08:56:58 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726530AbgDUPyr (ORCPT + 99 others); Tue, 21 Apr 2020 11:54:47 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:27746 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725613AbgDUPyq (ORCPT ); Tue, 21 Apr 2020 11:54:46 -0400 Received: from pps.filterd (m0098396.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 03LFXENr112181 for ; Tue, 21 Apr 2020 11:54:45 -0400 Received: from e06smtp07.uk.ibm.com (e06smtp07.uk.ibm.com [195.75.94.103]) by mx0a-001b2d01.pphosted.com with ESMTP id 30gfebpxk7-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 21 Apr 2020 11:54:45 -0400 Received: from localhost by e06smtp07.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 21 Apr 2020 16:54:37 +0100 Received: from b06cxnps3074.portsmouth.uk.ibm.com (9.149.109.194) by e06smtp07.uk.ibm.com (192.168.101.137) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Tue, 21 Apr 2020 16:54:34 +0100 Received: from d06av21.portsmouth.uk.ibm.com (d06av21.portsmouth.uk.ibm.com [9.149.105.232]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 03LFsdqQ6815904 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 21 Apr 2020 15:54:39 GMT Received: from d06av21.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id EBAE252050; Tue, 21 Apr 2020 15:54:38 +0000 (GMT) Received: from oc3784624756.ibm.com (unknown [9.206.132.69]) by d06av21.portsmouth.uk.ibm.com (Postfix) with ESMTP id E29F05204E; Tue, 21 Apr 2020 15:54:33 +0000 (GMT) To: "linux-perf-use." , Linux Kernel Mailing List , Arnaldo Carvalho de Melo Cc: Heiko Carstens , Sumanth Korikkar , Vasily Gorbik From: Thomas Richter Subject: kernel/perf: Sample data being lost Organization: IBM Date: Tue, 21 Apr 2020 17:54:29 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 x-cbid: 20042115-0028-0000-0000-000003FC661A X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 20042115-0029-0000-0000-000024C22A44 Message-Id: X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138,18.0.676 definitions=2020-04-21_05:2020-04-20,2020-04-21 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 priorityscore=1501 adultscore=0 lowpriorityscore=0 mlxlogscore=999 spamscore=0 phishscore=0 malwarescore=0 bulkscore=0 impostorscore=0 suspectscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2004210121 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Thanks a lot. -- Thomas Richter, Dept 3252, IBM s390 Linux Development, Boeblingen, Germany -- Vorsitzender des Aufsichtsrats: Matthias Hartmann Geschäftsführung: Dirk Wittkopp Sitz der Gesellschaft: Böblingen / Registergericht: Amtsgericht Stuttgart, HRB 243294