Received: by 10.213.65.68 with SMTP id h4csp3528948imn; Mon, 9 Apr 2018 23:51:22 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/iga//SG4YO3mVxdR+Ow2CsztrfLXqLVOYp094SJOejhIlCbeC4fPitppdbP/T4/fMI1/X X-Received: by 10.99.109.75 with SMTP id i72mr27156535pgc.403.1523343082141; Mon, 09 Apr 2018 23:51:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523343082; cv=none; d=google.com; s=arc-20160816; b=fvtRRQFmJtZdbICut7d2n96IKUlV5fRjugd9n8paCxY1k6RByrYpHTGo+GxFrgwyXS nJPKOvEShZn4pO/IUpKuHq8RaFNR+oqm9Pj+bdIA8dz1Pv8sNA5ZhAjtxerXQzk0uvGf ZfA8FqRjUct2AO11SSzh4MP15qLJvxyb/cyQ1lGAvyjF0066NnRO5maOLuRwxmavPgtQ Fl33mIFI+QgbvPXpGyBSexH7qLHpK8LPqx+UGN9oYE1mm9qpNXlYAlXddEJoAHDwxIAh XA7VF0+OTiK8sOjuTZxpOM6BB8i5ii7mqVo/MhZm1hqquJls0Laed4qRHy0Nb+yoNiNY jfjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=Q7iQSb4X35gAswPhPPgBy7FUkHA1tssDPNrOmsBuB30=; b=j0+4a9VZFBUcRUST5PmkKRwjd4txFamPvhtW6aSYgcbq+P8/Fsj0Uf/rc8aXb0LH0n MlMmxT4Bqp1R8mA+KWfQF4o4blqfDcfsP+qtX8doaDXufuCzLauQciUa1S4VBDmbE+3f AKHYoFCsH+1rEPsoT2C0R8ruNYu9hr6GQumYWrc4a8CR7YDy/lMY0cm3pb7exxljs9AH uq6kUAiRIPTeOgRS5GedT1MjMA7d4VImlto91qe4MatODGHxx1LBpTxfUlBoJTVXtN41 NjXsijON0JNUnNL17neD6EcUWOQYJUYCyubL5kXfoD3KHmZfnfWRZeqZDqDG3TtZ8+40 sLIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=r5+jcOtg; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t3si1349130pgs.763.2018.04.09.23.50.45; Mon, 09 Apr 2018 23:51: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=@google.com header.s=20161025 header.b=r5+jcOtg; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752194AbeDJGrw (ORCPT + 99 others); Tue, 10 Apr 2018 02:47:52 -0400 Received: from mail-pf0-f179.google.com ([209.85.192.179]:43973 "EHLO mail-pf0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751856AbeDJGrv (ORCPT ); Tue, 10 Apr 2018 02:47:51 -0400 Received: by mail-pf0-f179.google.com with SMTP id j2so7455862pff.10 for ; Mon, 09 Apr 2018 23:47:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=Q7iQSb4X35gAswPhPPgBy7FUkHA1tssDPNrOmsBuB30=; b=r5+jcOtgzSxY2rShDWqd8Mxzs8Gahy/9swyS9YyfmqIHVTBLG5rc8q2cdSj1bpj9UI fPwaFTALTLGUqGE4JtaVNmUp4o9UC1dVF8rpMlSc6vUhmhZ6c/0/11okqlQTHATnybbj 837OpS16nnog1oGBDbksE8D3ga2ypSxiU/TN5e0csCglUFqRpDFQ/FkcXFLuuatImb+9 U56/BEdeOlJtM/l/gQ+ZHuV3UV+3D6/yjc9p5u7aAF06vnxr8faRdxT9gYD4qf0SiI8V wSKa1VUc4vdE3zZ3/OdLyQCWEBw1aj0ecoLIcYTE7lKcDQvQDwO09yaZtsUFAUBvDNeR o88w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=Q7iQSb4X35gAswPhPPgBy7FUkHA1tssDPNrOmsBuB30=; b=FzxUlKaUqxd5Wb59X8ai9xmD1dVk5i+X8qxoNP5Fv01Xf9/VZ1vMK75P6EP9DlG9oA 8SD3CMEoHqXKYohSnnsjPdOx/fF5xsFbvbt0TvXoSF9ZV9ThRTzS8U5i1I81t9B0Zxu1 Hq1oy8kS+/8SG0Ek2Q3xcvJ5Afc8NPypqwkU2VBZHkaTJ0ECwKonnu3SMfAgRdIxhYP2 AKg50SH3COoRI3dwWBY0MkP77r7xJuCF8fWZu2OaB3dm/H1+C/KSUZ6KOfNYLFjb2OfJ aIm/HnSdAnVHxG2FUpeScbmf/dgtTHVBv1wFZXlLJeHYayMS9p4Mdn/ghUAgxbeJJ/pf ME5w== X-Gm-Message-State: AElRT7EO1pu4BSE930FMp3UehrDbOMceQcRANWXvdb6MVXITbhrGcmMK 7I7paRpqaa0yeCcMnVPnIIyImw== X-Received: by 10.99.111.6 with SMTP id k6mr27252909pgc.444.1523342869991; Mon, 09 Apr 2018 23:47:49 -0700 (PDT) Received: from [2620:15c:17:3:3a5:23a7:5e32:4598] ([2620:15c:17:3:3a5:23a7:5e32:4598]) by smtp.gmail.com with ESMTPSA id m10sm3388377pgd.32.2018.04.09.23.47.48 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 09 Apr 2018 23:47:49 -0700 (PDT) Date: Mon, 9 Apr 2018 23:47:48 -0700 (PDT) From: David Rientjes X-X-Sender: rientjes@chino.kir.corp.google.com To: Andi Kleen cc: Laurent Dufour , 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 Subject: Re: [PATCH v9 21/24] perf tools: Add support for the SPF perf event In-Reply-To: <20180327034936.GO13724@tassilo.jf.intel.com> Message-ID: 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> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.