How to find the size of the L1 cache line size with IO timing measurements?

后端 未结 8 686
深忆病人
深忆病人 2021-01-30 09:10

As a school assignment, I need to find a way to get the L1 data cache line size, without reading config files or using api calls. Supposed to use memory accesses read/write timi

8条回答
  •  面向向阳花
    2021-01-30 09:34

    See how to memtest86 is implemented. They measure and analyze data transfer rate in some way. Points of rate changing is corresponded to size of L1, L2 and possible L3 cache size.

提交回复
热议问题