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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T21:13:24+00:00 2026-06-17T21:13:24+00:00

I want to keep my code from flushing off the L2 cache as much

  • 0

I want to keep my code from flushing off the L2 cache as much as possible.

How would you achieve that in C++ / C# and how would you make it accountable.

EDIT : can I collect number of L2 cache misses alternatively?
Answer : Yes Can I get the L2 cache miss count of each process on the windows platform?

  • 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-06-17T21:13:25+00:00Added an answer on June 17, 2026 at 9:13 pm

    It seems that people are reluctant to give away information in this area (c++ or c# doesnt matter). so I would have probably to create my own strategy which will be probably using set of approaches rather than a rigid set of rules or recipes.

    To achieve max hit/miss ratio for a Windows application I would probably:

    • dedicate a physical CPU for the application making sure no other processes are using it, disable hyperthreading, work with BIOS as server manufacturers often provide specific settings for low-latency applications
    • make sure the piece of code in question has size smaller than the L2 cache on that CPU core
    • make sure the code does not have something what makes it explicitely flushed off the cache (eg memory barriers in C#)
    • monitor L2 miss count: http://stackoverflow.com/questions/5141350/can-i-get-the-l2-cache-miss-count-of-each-process-on-the-windows-platform
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Protect .NET code from reverse engineering? I want to make my software
I'm new to MDX but want to keep my code as clean as possible.
Using the code below, I want to keep the same menu div opened in
Here is my code, I have two checkboxes and want to keep one disabled
I want to keep my list GWT side after fetch it from service side.For
I want to keep SSH debug info separate (and logged) from other input. However,
I know that if I have a block of code I don't want compiled
I want keep track of a unique identifier for each browser that connects to
I keep seeing references to being able to execute code from the debugger, but
I was using the code from Kejun's Blog . I want to parse a

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.