From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andi Kleen Subject: Re: perf memory metrics on ec2 instance Date: Sun, 07 Jan 2018 21:09:30 -0800 Message-ID: <87o9m53pit.fsf@linux.intel.com> References: <87608i5xcd.fsf@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from mga14.intel.com ([192.55.52.115]:64223 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755991AbeAHV3y (ORCPT ); Mon, 8 Jan 2018 16:29:54 -0500 In-Reply-To: (Dmitry Dolgov's message of "Sun, 7 Jan 2018 16:37:11 +0100") Sender: linux-perf-users-owner@vger.kernel.org List-ID: To: Dmitry Dolgov <9erthalion6@gmail.com> Cc: linux-perf-users@vger.kernel.org Dmitry Dolgov <9erthalion6@gmail.com> writes: >> On 4 January 2018 at 00:36, Andi Kleen wrote: >> >> perf mem requires PEBS. PEBS is currently not supported in VMs. You >> should let Amazon know that you need it though, so it could be possibly >> implemented. > > Thanks for the explanation. Is there any alternative way to get memory > counters? If I need to know only how many times an event appeared, can I do > more or less the same with perf stat -e 'counter_name' without PEBS support? Counting these events should work if the PMU is enabled. I believe you need a special setup in AWS to get the PMU enabled though. -Andi