Developer Guide

  • 2021.2
  • 06/11/2021
  • Public
Contents

Cache Allocation Workflow

The following diagram provides an overview of the steps for reducing cache misses in your real-time application.
Steps:
  1. Set the
    Software SRAM
    option to
    Enabled
    . For details, see Software SRAM Setting.
  2. Use the Cache Configurator to reserve a portion of cache called
    software SRAM
    with specific properties (size, memory access latency, and CPU core) based on the requirements for the buffer that real-time applications will allocate through the cache allocation library.
    Optionally:
    partition the remaining cache among other agents, such as GPU and I/O.
  3. Prepare your real-time application to execute with specific CPU affinity based on the cache region reserved in step 2. For details, see Specify CPU Affinity of the Real-time Application.
    Software SRAM buffers in the L3 cache can be accessed from any core. Software SRAM buffers in the L2 cache must only be accessed by a core local to the cache instance.
  4. Use Cache Allocation Library APIs in your real-time application to allocate memory in the cache region reserved in step 2.

Product and Performance Information

1

Performance varies by use, configuration and other factors. Learn more at www.Intel.com/PerformanceIndex.