Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Could someone help me to install perf monitoring tool, please?

share|improve this question
1  
What exactly do you want to monitor? –  ddeimeke Jun 23 '11 at 7:31
add comment

3 Answers

up vote 11 down vote accepted

The perf utility can be found in the linux-toolsInstall linux-tools package.

share|improve this answer
add comment

Make sure you are installing this tool for the right Kernel release. If you just type:

sudo apt-get install linux-tools

It will install it for the latest Linux release in your machine and in case you are booting a previous version (say for stability reason), it will err. In my case it installed for .45 instead of .43 and I had to use the following command to install it:

sudo apt-get install linux-tools-3.2.0.43

You can find your Kernel release by typing : uname -r

To make sure it's working right you can try this: perf record /bin/ls

Just in case you are going to install Zoom tool, you need to have Perf installed for being able to use all its utilities.

share|improve this answer
add comment

Running the following two commands will do it!

sudo apt-get install linux-tools-common 
sudo apt-get install linux-tools
share|improve this answer
    
Doesn't work. I'm using 12.04. I get the error perf not found for kernel 3.2.0-60. You may need to install linux-tools-3.2.0-60-generic –  Rishi Dua Mar 10 at 18:54
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.