What is the Cost of an L1 Cache Miss?

后端 未结 8 1871
耶瑟儿~
耶瑟儿~ 2020-12-22 17:12

Edit: For reference purposes (if anyone stumbles across this question), Igor Ostrovsky wrote a great post about cache misses. It discusses several differen

8条回答
  •  一向
    一向 (楼主)
    2020-12-22 17:28

    Some numbers for a 3.4GHz P4 from a Lavalys Everest run:

    • the L1 dcache is 8K (cacheline 64 bytes)
    • L2 is 512K
    • L1 fetch latency is 2 cycles
    • L2 fetch latency is about double what you are seeing: 20 cycles

    More here: http://www.freeweb.hu/instlatx64/GenuineIntel0000F25_P4_Gallatin_MemLatX86.txt

    (for the latencies look at the bottom of the page)

提交回复
热议问题