perf provides <not counted> for multiple fields

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat perf provides <not counted> for multiple fields
# 1  
Old 05-21-2012
perf provides <not counted> for multiple fields

Hi,

I am trying to find the number of cache misses that are caused by my code. The best way I could find was to use the perf command. After running command: perf stat dd if=/dev/zero of=/dev/null count=100, the output I got is:

Code:
1.812057  task-clock-msecs         #      0.876 CPUs 
              0  context-switches         #      0.000 M/sec
              0  CPU-migrations           #      0.000 M/sec
            216  page-faults              #      0.119 M/sec
  <not counted>  cycles                  
  <not counted>  instructions            
  <not counted>  cache-references        
  <not counted>  cache-misses

I actually want to know the #cache-misses, which is not counted. I tried specifying the event: perf stat -e cache-misses dd if=/dev/zero of=/dev/null count=100, but the same results (not counted).

It will be great if someone can help me to find the cache-misses for my code.

Thanks as always!

Last edited by Scott; 05-21-2012 at 07:01 PM.. Reason: Code tags, please...
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Linux

Not able to run perf on Linux 4.4 kernel (Ubuntu 15.10)

I'm not able to run perf on linux 4.4. I'm using ubuntu 15.10. The error I'm getting is: WARNING: perf not found for kernel 4.4.0 You may need to install the following packages for this specific kernel: linux-tools-4.4.0-4.4.0 linux-cloud-tools-4.4.0-4.4.0 You may also want to install... (4 Replies)
Discussion started by: BHASKAR JUPUDI
4 Replies

2. Shell Programming and Scripting

Using perf stat -p argument

Hi, I'm trying to record metrics for an application called memcached. The procedure that I followed is: 1) Start the server using this command: memcached -t 4 -m 4096 -n 550 2) Start the client using this command (after warming up the server): ./loader -a... (0 Replies)
Discussion started by: BHASKAR JUPUDI
0 Replies

3. HP-UX

Reason to keep old /var/opt/perf/datafiles/logproc files

Would there be a reason to keep old logproc files that have been tarred up for any longer than a few days? (1 Reply)
Discussion started by: jeffbusz
1 Replies

4. Linux

Logged in users on a Linux server are counted twice

Scenario: Log into a linux server interface as root. Inititiate an SSH session with the server using Putty and a valid user account (e.g. fakeuser). Log into TTY2 of the linux server interface using another valid user account (e.g. faketester). Issue: With these three login sessions,... (8 Replies)
Discussion started by: walterthered
8 Replies

5. Red Hat

Logged in users on a Linux server are counted twice

Scenario: 1. Log into a linux server interface as root. 2. Inititiate an SSH session with the server using Putty and a valid user account (e.g. fakeuser). 3. Log into TTY2 of the linux server interface using another valid user account (e.g. faketester). Issue: With these three login... (1 Reply)
Discussion started by: walterthered
1 Replies

6. UNIX for Dummies Questions & Answers

Command to stop sub directories being counted?

I'm trying to count the number of directories in a folder but I don't want to count the sub directories. So far I have this: find -type d | wc -l Is there a parameter to stop counting sub directories ? Thanks (5 Replies)
Discussion started by: Ultima
5 Replies

7. UNIX for Dummies Questions & Answers

Formatting Multiple fields on 1 line to multiple rows

I'm trying extract a number of filename fields from a log file and copy them out as separate rows in a text file so i can load them into a table. I'm able to get the filenames but the all appear on one line. I tried using the cut command with the -d (delimiter) option but cant seem to make it... (1 Reply)
Discussion started by: Sinbad-66
1 Replies

8. Post Here to Contact Site Administrators and Moderators

Number of posts counted wrong

I am not sure if this is the right place to post this. Heres my problem: When I posted yesterday I think I saw the number of posts made by me as above 60. Today morning when I posted, it showed my post as the 60th post. What went wrong? (In fact I referred to a previous post made me...it shows up... (1 Reply)
Discussion started by: Abhishek Ghose
1 Replies

9. Solaris

Book Recommendation for Solaris Perf Monitoring?

I'm looking for a good Solaris performance monitoring book. I work primarily with Solaris 9, but will also be working with 10, so a dtrace chapter would also be good. Any insight would be much appreciated. (4 Replies)
Discussion started by: dangral
4 Replies

10. Shell Programming and Scripting

join on multiple fields

Is it possible to do a join on multiple fields of two files? I am trying to do something like join -t, -1 2,3 -2 2,3 -o 2.1,2.2,2.3,1.3 filea fileb I want the join to be on columns 2 and 3 of filea and columns 2 and 3 of fileb. What is hapenning is that the second file that I want to do the join... (1 Reply)
Discussion started by: reggiej
1 Replies
Login or Register to Ask a Question