Cache用法小結

2021-10-23 04:47:28 字數 610 閱讀 3900

把最近接觸到的cache有關的資訊總結到這裡,供日後檢視

一.cache基本概念

what is cache?

cache是用來對記憶體資料的快取。

cpu要訪問的資料在cache中有快取,稱為「命中」 (hit),反之則稱為「缺失」 (miss)。

cpu訪問它的速度介於暫存器與記憶體之間(數量級的差別)。實現cache的花費介於暫存器與記憶體之間

參考部落格:

(需要注意一些相關概念:什麼是cache?為什麼要引入cache?cache與cpu互動過程?什麼是cache line?cache寫機制及一致性)

(cache一致性問題可參考p388:dma對映,本篇中提及的hw shared memory中的hw暫指dma)

root@ubuntu:/# cat /sys/devices/system/cpu/cpu1/cache/index0/coherency_line_size

64root@ubuntu:/#

二.cach

Cache學習小結

今天在做axi4匯流排傳輸協議的時候,遇到awcache和arcache訊號需要給賦值,發現有write through write back和no allocate read allocate write allocate read and write allocate分別排列組合等8種模式 還有...

Cache學習小結

轉至 今天在做axi4匯流排傳輸協議的時候,遇到awcache和arcache訊號需要給賦值,發現有write through write back和no allocate read allocate write allocate read and write allocate分別排列組合等8種模式...

Cache總義Cache用法之頁面宣告

cache總義cache用法之頁面宣告 outputcache duration ofseconds location any client downstream server none varybycontrol controlname varybycustom browser customstr...