what is the difference between l1 cache and l2 cache?

前端 未结 3 1811
旧巷少年郎
旧巷少年郎 2021-02-01 03:39

I know that l1 and l2 caches are levels in multi-level cache.
I would like to know where each level cache is placed, and what is the maximum number of cache levels allowed?<

3条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-01 04:06

    The different between L1 and L2 cache

    Although both L1 and L2 are cache memories they have their key differences. L1 and L2 are the first and second cache in the hierarchy of cache levels.

    1. L1 has a smaller memory capacity than L2.

    2. Also, L1 can be accessed faster than L2.

    3. L2 is accessed only if the requested data in not found in L1.**

    4. L1 is usually in-built to the chip, while L2 is soldered on the motherboard very close to the chip.

    5. Therefore, L1 has a very little delay compared to L2. Because L1 is implemented using SRAM and L2 is implemented using DRAM, L1 does not need refreshing, while L2 needs to be refreshed.

    6. If the caches are strictly inclusive, all data in L1 can be found in L2 as well. However, if the caches are exclusive, same data will not be available in both L1 and L2.

    IF YOU WANT TO READ DEEPLY CLICK THIS LINK

提交回复
热议问题