【问题标题】:Raspberry Pi3 is exclusive or inclusive cache?树莓派3是独占缓存还是独占缓存?
【发布时间】:2017-04-25 11:26:58
【问题描述】:

Raspberry Pi 3 Model B 采用四核 64 位 ARM Cortex A53,主频为 1.2 GHz,具有 32kB 1 级和 512kB 2 级高速缓存。

我的问题是缓存是什么类型的,它是独占的还是包含的?在哪里可以找到这些信息?

【问题讨论】:

  • 我很确定独占缓存会随着单处理器机器而死。
  • 信息将在 ARM 的网站上
  • 我的假设是 l1 与每个核心绑定,然后 l2 是共享的,但你只需要看看。
  • 在一些 ARM 设备上是可配置的。每个核心上的 L1 必须知道其他 L1 核心访问。这是SNOOP control unit 的一部分。通常它取决于执行什么样的“写”缓存。如果“直写”,那么独占可能没用?
  • @EOF,相反,核心数越高,维持包容性缓存就越痛苦。完全排他性很难,但“大部分排他性”的设计正变得越来越普遍

标签: raspberry-pi arm raspberry-pi2 raspberry-pi3 cpu-cache


【解决方案1】:

答案在NXP site (arm site):

For data accesses, the Cortex-A53 uses "tends towards exclusive" cache allocation policy:
  "Data is allocated to the L2 cache only when evicted from the L1 memory system, not when first fetched from the system. The only exceptions to this rule are for memory marked with the inner transient hint, or for non-temporal loads, see Non-temporal loads, that are only ever allocated to the L2 cache. The L1 cache can prefetch data from the system, without data being evicted from the L2 cache."

For instruction fetches, the Cortex-A53 uses "tends towards inclusive" cache allocation policy:
   "Instructions are allocated to the L2 cache when fetched from the system and can be invalidated during maintenance operations."

It is impossible to modify the this cache policy, this is non-configurable.

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2019-01-05
    • 2018-03-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-06-15
    • 1970-01-01
    • 2010-11-06
    相关资源
    最近更新 更多