Questions tagged [perf]

Perf is a profiler tool for Linux 2.6+ based systems.

Perf is a profiling tool for Linux 2.6+ based systems that uses the perf_events kernel interface to provide a command-line interface to underlying hardware, software and kernel performance counters. It abstracts away differences in performance counters implemented across different CPU architectures, allowing consistency across different hardware.

See also the perf wiki.

1032 questions
0
votes
0 answers

Perf is crashing my RH

We are running perf on a 2.6.32-358.56.1.el6.x86_64 on an 8-core, dual socket machine. We have CPU isolation on CPUs 1-31 (all except for 0), and our application is using CPUs 1-31. A few seconds into running perf with --pid set the entire blade…
c-is-best
  • 146
  • 2
  • 9
0
votes
1 answer

Event counters in ARM Cortex-A7

How many event counters supported by ARM Cortex-A7 and how can I select/read/write these counters? For example if run: ./perf stat -e L1-dcache-loads,branch-loads sleep 1 where it stores events count? Here you can see, {c9,c13,0} represent cycle…
enfinet
  • 810
  • 8
  • 18
0
votes
1 answer

How to find out the PID of the Flinks execution process?

I want to measure flinks performance with performance counters (perf). My code: var text = env.readTextFile("") var counts = text.flatMap { _.toLowerCase.split("\\W+") }.map { (_, 1)…
lary
  • 399
  • 2
  • 14
0
votes
0 answers

perf_event with openMP

I'm using perf_event to measure performance information. I confirmed that instruction counter is working well in a single core. However, when I try to use parallel computing with a openMP, the result seemed something wrong.. I thought if number of…
0
votes
0 answers

Capture perf event in realtime

I'd like to be able to monitor some linux system events (scheduling : cpu-migration, thread scheduling...) in my application written in C. Is there a way to plug my application on kernel event like perf tool…
Joker
  • 247
  • 3
  • 7
0
votes
2 answers

perf report function names and extra characters

I have profiled an application using perf, and I am confused why the names of the functions are so mangled in the report. For example, here is the output of perf report: # Overhead Command Shared Object …
mateja
  • 150
  • 11
0
votes
0 answers

Measuring Memory Bandwidth Utilization in Linux

How can I use perf to measure the hardware performance events UNC_QMC_NORMAL_READS and UNC_QMC_WRITES caused by a specific process in Linux?
user2424276
  • 591
  • 1
  • 5
  • 24
0
votes
2 answers

How to get results each sec from "perf stat -d sleep 1000"

Is there any way to get the "perf stat -d sleep 1000" command to update me about the events value every 1/2/3 second(s) during a long time? I tried it on PAPI and I made it but the problem is that I'm limited to 4/5 events max on an eventset... so I…
0
votes
1 answer

Where are hhvm command line flag definitions found?

When running phpunit 4.5 with hhvm inside docker sometimes it crashes the container. I'm not sure if I should alter the way I run hhvm on the command line or not. Are there any standards for running hhvm on the commandline? So I'd like to get more…
user2108258
  • 803
  • 3
  • 13
  • 20
0
votes
1 answer

Comparing multiple perf reports

I am using Perf tool for profiling. I need to compare multiple reports generated from perf record command. I couldn't find any option in perf to do so, is there a way for it or manual interpretation is the only way?
niteshnarayanlal
  • 533
  • 2
  • 4
  • 16
0
votes
0 answers

Perf on a code using exp function from Math.h shows time spent in resolving conflicts e_exp,w_exp

my code computes in a loop exp of a large data array and when I tried to do Perf to profile the code, I get to see Symbols conflicting in multiple…
Quest03
  • 3
  • 2
0
votes
0 answers

ARM big.LITTLE Performance Counters

I have recently purchased a development board utilizing Samsung Exynos5422 application processor (Cortex™-A15 2.0Ghz quad core and Cortex™-A7 quad core CPUs). I have tried to extract the performance counters in android using perf v3.0.8; however,…
Matt
  • 796
  • 12
  • 25
0
votes
2 answers

Program using maximum memory in linux

Let's say , there are 3-4 highly memory intensive applications running in linux - for example,say, any video processing application. Those applications are using different amount of RAM and their memory access patterns are also different. Also, lets…
0
votes
0 answers

Issue installing perf/system tap on kernel 3.1

I have custom linux on kernel 3.1 with glibc 2.14 . Now when i try to install perf/systemtap it ask for glibc2.15, I am not able to remove the existing glibc2.14 as it has dependencies linked to it.Is there a way i can install perf/system tap . Hope…
Naval Joshi
  • 11
  • 1
  • 7
0
votes
1 answer

Perf Tool - Profile for first n instructions

Is there a way by which I can specify perf tool to give stats of first n instructions for an executable? Thanks
emotionull
  • 595
  • 2
  • 8
  • 24