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 3955980
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T02:18:22+00:00 2026-05-20T02:18:22+00:00

there’re a lot of buzz about cache-related performance issues. I have several questions about

  • 0

there’re a lot of buzz about cache-related performance issues. I have several questions about them:

  1. Probably most popular issues are cache locality, and false cache sharing. Any others?
  2. any good overview?
  3. are there any proven techniques to fight them?
  4. what are common characteristics of applications where they are real problems? computational-intensive fields (math/image processing etc.)? highly-parallel applications?
  • 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-20T02:18:23+00:00Added an answer on May 20, 2026 at 2:18 am

    One of the more interesting ones is avoiding cache collisions. If you know a memory access pattern, you can lay out the accessed items in a way that minimizes the cache line collisions between the accessed data. You can do this for data and code.

    Figuring out data access patterns is relatively hard, but you can relatively easily figure out code access patterns. Given a call graph, the sets of blocks that make up the bodies of functions, and some estimates of the transition frequencies between the blocks, you can assign code blocks to the cache in a way that maximizes the chance that the next block you need will be in some other cache line that doesn’t conflict with the current one. One interesting idea was that you only had to assign code blocks that were “hot” (high probability of execution); it didn’t matter much where you put the cold ones. IIRC, that means you can sort the blocks by frequency of probable execution, and then assign them in that order.

    You merely need a global analysis :-} The first place I read about this, the optimizatoin was actually implemented as part of a linker, which is one way to get your hands on the entire program.

    I don’t remember any nice overview or set of collected techniques. The PLDI conferences tend to have research papers on this topic, though.

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

Sidebar

Related Questions

There are a lot of example implementations of daemons on the net. Most that
I know there's a lot of other questions out there that deal with this
There is about 2000 lines of this, so manually would probably take more work
There are some related questions that I've come across (like this , this ,
There are nice SO question and answers about this issue, but these options didn't
There was a similar question posted asking in general about alternatives to Qt. Well,
There are a lot of blogs saying that a hasOwnProperty check should be used
There are are 150 000 records in my comments table and about 1000 new
There seems to be quite a lot of confusion regarding integrating Maven with GWT
There are two vectors std :: vector and QVector . We have to check

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.