Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1022406imm; Fri, 15 Jun 2018 09:55:25 -0700 (PDT) X-Google-Smtp-Source: ADUXVKICoUyIzMah0MMUD7dhDnQp11hRL5RM5zm/zIbeZgPnBwwqAc0hBsfrh56uOzXweJfwXweL X-Received: by 2002:a62:fb05:: with SMTP id x5-v6mr2828565pfm.210.1529081725757; Fri, 15 Jun 2018 09:55:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529081725; cv=none; d=google.com; s=arc-20160816; b=HolaWCm5OZvBf5rFHH/j26SSHIsdaZj6aX5Rg2HbUehfd/Sac1Y3tzqPurDdYGlwA1 fFYKOD3Y35kAUdvuiqUmGOVhporrZGDAsZq0w4dsDjxPVTY+SfaurnvAtnNrMSt3cvgq UiiU8Ar8LYhuIRApvy/BoG5PMf3dYLjr+ngdvnnX/DIxbafNI4rmzAWOZiAwZFwmP0W4 ABpH11INGgPhznKPn2J4KTr9N2Ur4EVBGJ7k3ohf4WX11xS8xmdFUEGus7IvwDvkKUo5 DWAv6xU8jVv11Il/zUnCd38dIllJj0kR5rdVWw7CLizmY/Z2JB/hkufRdKW9pqtOWmGZ ezkg== 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 :arc-authentication-results; bh=Ja3999jF5iQXwv7wt/N13Hgg7KOi5Ldzx9DUYdpdmrs=; b=PXB+LNjBm5HXNh76Mqo6yX7Amtnsp55N+DwxR3MKuxynydKFpHCmDwkQF0mg7rr4if ZsPqd9BIDcI/492SZ8fkwI9kqOMQnQAt+GEo8Kv2Xn5pLyBFvnKLxQIUN6Uxlh49vBoE STEzhBmUj/XyGCG6tzpX5Ym7m2LI8cn+evP3bXT4TUjvcHBCMF+PEsvRv7a8V6vg0ngr b5hmp/2MO8QRu6vHPnkqBSGMsNmkEiElLemtLveGtk4U2wNwNrYm7iXCzNr6iCPI/QK5 kquxbcRXiz+GT9OKpWXzWOsju7NcEegXhRjL6E4VBSz9COfAW1pvX4BixX4pAQtVauyt PZCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=eGNINlcD; 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 191-v6si6885408pgh.407.2018.06.15.09.55.11; Fri, 15 Jun 2018 09:55:25 -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=eGNINlcD; 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 S1756235AbeFOQyj (ORCPT + 99 others); Fri, 15 Jun 2018 12:54:39 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:37703 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752703AbeFOQyi (ORCPT ); Fri, 15 Jun 2018 12:54:38 -0400 Received: by mail-wm0-f66.google.com with SMTP id r125-v6so5005188wmg.2 for ; Fri, 15 Jun 2018 09:54:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Ja3999jF5iQXwv7wt/N13Hgg7KOi5Ldzx9DUYdpdmrs=; b=eGNINlcDzGLD0Xn3vJLHaFV4MDLoo8x2wrPzf9iwmYX+EB6xYcsf3h7vf4w8YM7b6N N1o+I1goOIxLP7640RbXNZrnrT+xM9gx8NwF5LmH/SzyUwgqx1VIlunGY0li6DLwlSeT Ibg2LXY8btXMv2AS1NgyUD7lRF+vZqeL0xht5yL068v/0G7bLILEDISFNzGnezrrfGJd y8qT02lX4B1l9wj5xH9rxmBueFQmJmAqySx14uFhePTjOpUv1gHMpGrGX4L6YTxFHkcx npDJNFlyZSVo0f1CGKOfYZm6c9M+mLNxdjLp/VTkFm2t0zEJfT0/FPGg9pkicMpLI0lV Q1+A== 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=Ja3999jF5iQXwv7wt/N13Hgg7KOi5Ldzx9DUYdpdmrs=; b=W2oyQqzLOa/VimzivKsEwxZzhwuiEfLN47IzPA8T2e8gZ2Nl8TfPLZDWpOouAc8sFG kgph2ylUbNIkGLyfH6c6jcxihmOc922YtG7vjUACdZnc3g0RJ9riSrHVYWkz0Uvu/xDl mBknUol+4JPmM9L1fankUPIJHwDtKv/+iDHfPtox8tObAgyNDET8aO20tl4hiE8EM9H6 jXtPgBvc1TdiMmCXBg07w54N5MRk7L+yHkozmm9i+Wry3SlynhpgM8EJVSO6A2iFf3vy BrWXyj2/xGaZdffUx+550O21fyzxV0MhX+1POmzZjz7fOG5tu2IQepP6dFiR7dQ9KZds QALg== X-Gm-Message-State: APt69E1e4x4AuaqK5mJf9eVfpGVqdYxVCA7JHgJwSWJ54AtOipMe4z9n t65vK/ORWevoavPDOleV3s1esFCS0p7rN1uU30YJZg== X-Received: by 2002:a1c:afc3:: with SMTP id y186-v6mr1732789wme.87.1529081676963; Fri, 15 Jun 2018 09:54:36 -0700 (PDT) MIME-Version: 1.0 References: <1529057003-2212-1-git-send-email-yao.jin@linux.intel.com> <20180615074504.GA2458@hirez.programming.kicks-ass.net> <11958be5-dc05-611b-6839-f1f6903c7ca8@linux.intel.com> <20180615081223.GB2458@hirez.programming.kicks-ass.net> In-Reply-To: <20180615081223.GB2458@hirez.programming.kicks-ass.net> From: Stephane Eranian Date: Fri, 15 Jun 2018 09:54:44 -0700 Message-ID: Subject: Re: [PATCH v1 0/2] perf: Drop leaked kernel samples To: Peter Zijlstra Cc: yao.jin@linux.intel.com, Arnaldo Carvalho de Melo , Jiri Olsa , Ingo Molnar , Alexander Shishkin , me@kylehuey.com, LKML , Vince Weaver , Will Deacon , Namhyung Kim , Andi Kleen , "Liang, Kan" , "Jin, Yao" 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, On Fri, Jun 15, 2018 at 1:12 AM Peter Zijlstra wrote: > > On Fri, Jun 15, 2018 at 04:01:45PM +0800, Jin, Yao wrote: > > > Bring more overhead to kernel if we zero the bits considering the number of > > leaked samples may be not too small? > > Keeping the samples at least allows you to know how many samples > happened and such things. > Yes, important point. You cannot just drop a sample. It may break some calculations done like num_samples x fixed_periods = total number of events observed. Some tools do this. > > And the skid information may be interesting (see example of hitting on > > page_fault in previous mail). If we zero it, we will not know. > > If you throw them out the window you also don't know, do you?