Received: by 10.192.165.156 with SMTP id m28csp1980498imm; Thu, 12 Apr 2018 06:48:58 -0700 (PDT) X-Google-Smtp-Source: AIpwx485PaizC5T8k0E7msGwbf2rfACQPXl6/tBA0nRa6gm8OfOvafIJPE6GjrFFXOy0rFSNh6k/ X-Received: by 10.98.180.24 with SMTP id h24mr7759788pfn.213.1523540938107; Thu, 12 Apr 2018 06:48:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523540938; cv=none; d=google.com; s=arc-20160816; b=kKSwmKkXLvszEd4fP1bljoEohAFHQzZ/FCltdg6d7RlAPoWI2GgG0Sz7/H7EBP5XuI LD2VB5CO98wQHRf1GVWBKqfM9z8EGl/Uxh5x+1vRWRIiarHKGiEuDuFQZYVm+pK4wNVQ oQ43jt8K4Sog8t1WBLp7yk3aTvT8Xp7lZlL8kz771tWCPOfCFCZxYqgC6euspj/KTY6G ZQnKocS1L4KXFkTdJeXxVwUg6PJ/YHar00PC6PkHd0/grfHICVTYz/674VWf4tKfU3D7 5NkFW0nkfH78N6FBQjklj7ErY1okk/3JM9UFelN2IAYjY7akb7/RvPDLGGnCmuPRrdm9 CvKw== 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:in-reply-to:mime-version:user-agent:date:from :references:cc:to:subject:arc-authentication-results; bh=xMc+TzLxoCF9U4V7to1s4IwYn95tvYf7PyGy2xcZAwg=; b=vJN2/dn21HlQWz6wqaY7LK7vctMJQkYIE63TzwYGIR08IfuFWTUDSHxE/Osh118f1G UAB1kbz7xCk98hhgZk1sApbaGvNIeIumwsUfPVpJFPPXsFMvMBUVO5JVPvmnzjPopkTj t9hHDKTSUf3wyqrh/ac86i3l3PDGZOZFMQusqZLLdQVhM9LCoObsTu/xtnO1JPOItuN9 bYhLSn72HyMRyAey0xb2LeKSDjqXZQbCVfbg9jYQGB/ZDZaqdESTWZQXx375Kkg3l5Zu 0B+bjgvb/iuEBk4DgAmDBPkuMdPoNjw5OSX+8/a1hhremzZVe4NUAZNFgleFGnUSAL8i 0/Yw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t20si2637444pfk.228.2018.04.12.06.48.08; Thu, 12 Apr 2018 06:48:58 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752432AbeDLNov (ORCPT + 99 others); Thu, 12 Apr 2018 09:44:51 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:36482 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751819AbeDLNou (ORCPT ); Thu, 12 Apr 2018 09:44:50 -0400 Received: from pps.filterd (m0098420.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w3CDciDd060515 for ; Thu, 12 Apr 2018 09:44:50 -0400 Received: from e06smtp14.uk.ibm.com (e06smtp14.uk.ibm.com [195.75.94.110]) by mx0b-001b2d01.pphosted.com with ESMTP id 2ha8c08yxm-1 (version=TLSv1.2 cipher=AES256-SHA256 bits=256 verify=NOT) for ; Thu, 12 Apr 2018 09:44:49 -0400 Received: from localhost by e06smtp14.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 12 Apr 2018 14:44:46 +0100 Received: from b06cxnps4076.portsmouth.uk.ibm.com (9.149.109.198) by e06smtp14.uk.ibm.com (192.168.101.144) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Thu, 12 Apr 2018 14:44:38 +0100 Received: from d06av21.portsmouth.uk.ibm.com (d06av21.portsmouth.uk.ibm.com [9.149.105.232]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w3CDibOx54591582; Thu, 12 Apr 2018 13:44:37 GMT Received: from d06av21.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id F006552043; Thu, 12 Apr 2018 13:35:33 +0100 (BST) Received: from [9.101.4.33] (unknown [9.101.4.33]) by d06av21.portsmouth.uk.ibm.com (Postfix) with ESMTP id BD57D52045; Thu, 12 Apr 2018 13:35:32 +0100 (BST) Subject: Re: [PATCH v9 21/24] perf tools: Add support for the SPF perf event To: David Rientjes , Andi Kleen Cc: paulmck@linux.vnet.ibm.com, peterz@infradead.org, akpm@linux-foundation.org, kirill@shutemov.name, mhocko@kernel.org, dave@stgolabs.net, jack@suse.cz, Matthew Wilcox , benh@kernel.crashing.org, mpe@ellerman.id.au, paulus@samba.org, Thomas Gleixner , Ingo Molnar , hpa@zytor.com, Will Deacon , Sergey Senozhatsky , Andrea Arcangeli , Alexei Starovoitov , kemi.wang@intel.com, sergey.senozhatsky.work@gmail.com, Daniel Jordan , linux-kernel@vger.kernel.org, linux-mm@kvack.org, haren@linux.vnet.ibm.com, khandual@linux.vnet.ibm.com, npiggin@gmail.com, bsingharora@gmail.com, Tim Chen , linuxppc-dev@lists.ozlabs.org, x86@kernel.org References: <1520963994-28477-1-git-send-email-ldufour@linux.vnet.ibm.com> <1520963994-28477-22-git-send-email-ldufour@linux.vnet.ibm.com> <20180327034936.GO13724@tassilo.jf.intel.com> From: Laurent Dufour Date: Thu, 12 Apr 2018 15:44:36 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 x-cbid: 18041213-0044-0000-0000-000005468050 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18041213-0045-0000-0000-00002886BBAE Message-Id: X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-04-12_07:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1804120136 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/04/2018 08:47, David Rientjes wrote: > On Mon, 26 Mar 2018, Andi Kleen wrote: > >>> Aside: should there be a new spec_flt field for struct task_struct that >>> complements maj_flt and min_flt and be exported through /proc/pid/stat? >> >> No. task_struct is already too bloated. If you need per process tracking >> you can always get it through trace points. >> > > Hi Andi, > > We have > > count_vm_event(PGFAULT); > count_memcg_event_mm(vma->vm_mm, PGFAULT); > > in handle_mm_fault() but not counterpart for spf. I think it would be > helpful to be able to determine how much faulting can be done > speculatively if there is no per-process tracking without tracing. That sounds to be a good idea, I will create a separate patch a dedicated speculative_pgfault counter as PGFAULT is. Thanks, Laurent.