Cycles/cost for L1 Cache hit vs. Register on x86?

后端 未结 4 1210
春和景丽
春和景丽 2020-12-04 13:42

I remember assuming that an L1 cache hit is 1 cycle (i.e. identical to register access time) in my architecture class, but is that actually true on modern x86 processors?

4条回答
  •  孤城傲影
    2020-12-04 14:04

    If I remember correctly it's about 1-2 clock cycles but this is an estimate and newer caches may be faster. This is out of a Computer Architecture book I have and this is information for AMD so Intel may be slightly different but I would bound it between 5 and 15 clock cycles which seems like a good estimate to me.

    EDIT: Whoops L2 is 10 cycles with TAG access, L1 takes 1 to two cycles, my mistake :\

提交回复
热议问题