Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 967039
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T02:15:13+00:00 2026-05-16T02:15:13+00:00

I know this is platform-specific question, however, I would like to do some run-time

  • 0

I know this is platform-specific question, however, I would like to do some run-time analysis of an application to detect cache misses and hits. I know cachegrind, a tool for valgrind, and of vtune, and that a slew of other profiling utilities exist. However, I am interested, in implementing my own version of cache-miss detection. I know cachegrind acts as a cache-simulator. Without hacking apart the kernel, how can I detect a cache-miss pragmatically? I have a feeling this is nearly impossible for a user-land application, but I had to ask anyways.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T02:15:14+00:00Added an answer on May 16, 2026 at 2:15 am

    How can I detect a cache-miss pragmatically [without cache simulation]?

    Caches are managed by hardware – not the kernel. Their parameters (levels of cache, size, kick-out policy, write-back/write-through, etc.) are all processor implementation-specific. As a programmer you’re “not supposed to know they exist”. Thus, to measure cache-miss performance without cache simulation is impossible.

    On the other hand VM pages (a much coarser “cache” – in the sense that a cache holds chunks of memory) are managed by the OS. I imagine there would be ways to gather statistics about page faults by hacking at the kernel or even creating a nifty user application. Page fault statistics may not be that much of use to you (especially since they’re affected by other running processes), but an application using large amounts of RAM might (a teeny, tiny bit) have page-fault or page-access patterns similar to CPU cache access patterns. However, I’m not so sure about the details.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'd like to do this in a platform independant way, and I know libpng
i know this is a stupid question but i d'ont know how to do
I know this is a frequently asked question and I havent got a clear
I know this question has been asked a couple of times before. I m
I know this is an old question, but I have spend any hours on
I know this is repeated question on Stack. But in my case the URL
I would like to ask a question about a new and large scale web
I am trying to write a cross-platform python program that would run in the
I am starting to develop Android applications and I would like to know if
I know it sounds stupid but: I've found this application written on Mono and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.