LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 10-20-2015, 08:27 AM   #1
enfinet
LQ Newbie
 
Registered: Oct 2015
Posts: 1

Rep: Reputation: Disabled
How to identify the cache events (hit/miss/TLB/L1/L2) on some particular kernel code.


For example: if we are trying to memcpy() 10,20,30 bytes sequentially then are we able to trace which cache events (hit/miss/TLB/L1/L2).
(difference b/w cache hits before and hits after calling memcpy().)

I'm using perf tool to analyze the performance counter for cache events. but for this i need to pass the command. (perf stat -e L1-dcache-loads <commands>)
 
Old 10-24-2015, 01:40 PM   #2
Rinndalir
Member
 
Registered: Sep 2015
Posts: 733

Rep: Reputation: Disabled
I can never remember all the perf flags but the best authority on perf is in the kernel source for your kernel. Look under tools/perf/Documentation


For example:

" -o, --only-prefault
Show only the result with page faults before memcpy.

-n, --no-prefault
Show only the result without page faults before memcpy.
"
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: ONE MILLION new lines of code hit Linux Kernel LXer Syndicated Linux News 0 07-05-2015 10:03 PM
LXer: Ubuntu 10.10 Maverick Meerkat: One Hit, One Miss LXer Syndicated Linux News 11 10-23-2010 10:46 PM
Will poll() miss events srinathduraisamy Programming 2 11-21-2009 07:45 AM
TLB and cache difference? valpa Linux - Kernel 2 08-22-2008 12:04 PM
confusing dhcp hit or miss FC6 chilly Linux - Networking 1 04-09-2007 11:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 07:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration