Search Ctrl K
Home / Tools
THE FEUTEX TOOLKIT

Memory Stride Cache Line Use

Estimate useful bytes per touched cache line for regularly strided accesses.

Developer workspace● Runs in your browser
01 Your input
02 Your result
View or copy raw result data
FormulaUseful cache line fraction = 100*element/Math.min(line,stride); Approximate fetched bytes = loads*Math.min(line,stride)/1e6

Made for real tasks

  • Estimate useful bytes per touched cache line for regularly strided accesses.
Explore step-by-step workflows →

Worked example

Inputs

Cache line size
64 bytes
Element width
4 bytes
Stride between elements
16 bytes
Element loads
1000000 loads

Expected results

Useful cache line fraction
25 %
Approximate fetched bytes
16 MB

Load the example in the workspace to reproduce these results. Display rounding does not change the underlying calculation.

How to use this tool

  1. Enter cache line size, element width, stride between elements, element loads in the displayed units.
  2. Calculate the scenario, then compare it with measurements before changing a system.

Try this example

{
  "line": 64,
  "element": 4,
  "stride": 16,
  "loads": 1000000
}

Accuracy and scope

Aligned regular stream with line and stride divisibility; excludes cache reuse beyond adjacent loads and prefetch extras.

Is my data uploaded?

This tool runs locally in your browser. Input and output are not sent to a processing server. Copy or download your result before leaving the page.