简体   繁体   English

Memory 访问粒度与缓存行

[英]Memory access granularity vs Cache line

I'm trying to note the concept of memory access granularity , which I've found mentioned in some articles.我试图注意memory 访问粒度的概念,我在一些文章中发现了这一点。

It's being said that memory access granularity is [ 1 ]:据说memory的访问粒度是[ 1 ]:

the size in which a processor accesses memory处理器访问 memory 的大小

On the other hand, the cache line is [ 2 ]:另一方面,缓存行是 [ 2 ]:

the unit of data transfer between cache and memory缓存和memory之间的数据传输单位

  • How does the size of a cache line relate to the granularity of the memory?高速缓存行的大小与 memory 的粒度有何关系?
  • Do they mean the same thing?他们的意思是一样的吗?

Thanks!谢谢!

It seems like the memory access granularity is a more broad term and it can be applied to any kind of memory.似乎memory 访问粒度是一个更广泛的术语,它可以应用于任何类型的 memory。 Therefore, the cache line size is simply a granularity of the on-chip caches[ 1 ].因此,高速缓存行大小只是片上高速缓存的粒度[ 1 ]。

Quote from the link:引用链接:

In most modern systems, the memory subsystem is managed and accessed at multiple different granularities at various resources.在大多数现代系统中,memory 子系统在不同资源的多个不同粒度上进行管理和访问。 The software stack typically accesses data at a word granularity (typically 4 or 8 bytes).软件堆栈通常以字粒度(通常为 4 或 8 个字节)访问数据。 The on-chip caches store data at a cache line granularity (typically 64 bytes).片上高速缓存以高速缓存行粒度(通常为 64 字节)存储数据。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM