Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp509650imm; Fri, 15 Jun 2018 01:25:32 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLQO6z5g5HWKDQNOQN1mrquQIp6ELCxQnjVycW0fvBaaqyP0DFL7/hdQR+qqIx/8Eol0z0w X-Received: by 2002:a17:902:4203:: with SMTP id g3-v6mr839646pld.315.1529051132905; Fri, 15 Jun 2018 01:25:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529051132; cv=none; d=google.com; s=arc-20160816; b=p4MEw+wxfQYjUVUA6vVAAKCie1lPiq570rII8itpWoPmTFtBhvZfpnDGFDkVuHxXPz HfiCU/ma6+lZcDAyIkXGoTqnlUA+DepFqVAXw3d8x3tqLT3tCgVU5ZTI/BY7ik5lCA5A wBXI711lOAANVdG+DDDVvLBc43ifhUnYQlNr+DJwzKvyrCiE6pjadl0To64d0LncilVs YiH3h9m43Wdm+OUfJn9bqqOkFMBnQ6R4YpUfz8hgZHGyxvAlhHZknILRZvkGrTuQbnYf PXIP2ihlAWFxA8Y3ysymTzJf9C9mT3m6VHFSgOve85Ym+gDvyQi4C76guBwhnNKwJsFX I5Cg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=9Z1VOm2Z+/d187yaBBQAY60l5vetXzttIXwEzQtNem8=; b=oaqMaWHjAxfP5Wi2NbuNhNSuQyg03bO572vDTpYoT9UzfilMQpDGM+9U5r0pS1Jj1f 6t6F4on6vy9vOGQl8YjUYUMTyfIdp+fMFEIl7Rdk4kLYxHJ3cGjQCP2zSHzzNywHsMao 5Wp6NQSRCXPbcTEilQok7NSF10hCEaPrjoet47jtEoTu1KjoJZjvIX1+gOM6FxzRjCnb 7T+XO0wU44ScSXUug4vNhOR8eWdbEhC+Dv7cDG7nftdNa0Ap3Sc/Qf8/QTHc3bK5Af/b MO2wzuvj1MTvGxQwgUYkUkaX23OrjCCVzB5/5tRFUBpcWTT/DWwxSR0p22q5HeIE+veq RlDA== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w12-v6si7365624pfa.113.2018.06.15.01.25.17; Fri, 15 Jun 2018 01:25:32 -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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756029AbeFOIYx (ORCPT + 99 others); Fri, 15 Jun 2018 04:24:53 -0400 Received: from mga18.intel.com ([134.134.136.126]:5053 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755847AbeFOIYw (ORCPT ); Fri, 15 Jun 2018 04:24:52 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 15 Jun 2018 01:24:52 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,226,1526367600"; d="scan'208";a="237381833" Received: from yjin15-mobl.ccr.corp.intel.com (HELO [10.239.161.30]) ([10.239.161.30]) by fmsmga005.fm.intel.com with ESMTP; 15 Jun 2018 01:24:49 -0700 Subject: Re: [PATCH v1 0/2] perf: Drop leaked kernel samples To: Peter Zijlstra Cc: acme@kernel.org, jolsa@kernel.org, mingo@redhat.com, alexander.shishkin@linux.intel.com, me@kylehuey.com, Linux-kernel@vger.kernel.org, vincent.weaver@maine.edu, will.deacon@arm.com, eranian@google.com, namhyung@kernel.org, ak@linux.intel.com, kan.liang@intel.com, yao.jin@intel.com 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> From: "Jin, Yao" Message-ID: Date: Fri, 15 Jun 2018 16:24:49 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <20180615081223.GB2458@hirez.programming.kicks-ass.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/15/2018 4:12 PM, 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. > Yeah, agree, but a little bit overhead ... >> 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? > Yes, default I can't know that window. I have to use sysctl to enable. Thanks Jin Yao