How many bytes does a Xeon bring into the cache per memory access?

后端 未结 5 961
时光说笑
时光说笑 2020-12-28 10:17

I am working on a system, written in C++, running on a Xeon on Linux, that needs to run as fast as possible. There is a large data structure (basically an array of structs)

5条回答
  •  Happy的楠姐
    2020-12-28 10:59

    A cache line for any current Xeon processor is 64 bytes. One other thing that you might want to think about is the TLB. If you are really doing random accesses across 10GB of memory then you are likely to have a lot of TLB misses which can potentially be as costly as cache misses. You can get work around with with large pages, but it's something to keep in mind.

提交回复
热议问题