问题
I am not sure, but if i remember right intel uses a VIPT cache, i would like to know the reason of this choice, why is it better than VIVT or PIPT, what advantages does it procure and maybe what disadvantages. Thank you.
回答1:
The exact design decisions are probably not published, but in general the benefits for VIPT are :
- Virtual indexing means you can start reading the set from the cache before (or in parallel with) looking up the translation in the TLB. This means that the common case lookup would be done much faster than a physically indexed cache, where you can only lookup the cache after you have the translation.
- Physical tagging allows you to avoid aliasing - both in cases where a single virtual address maps to several physical ones (e.g. different threads overlapping in virtual addr ragne), or multiple virtual addresses map to the same physical line (e.g. inter-thread communication). Both cases may cause loss of coherency in a virtually tagged cache and would require complicated mechanisms for detection.
来源:https://stackoverflow.com/questions/22570526/why-does-intel-use-a-virtual-index-physical-tagged-cache-and-not-vivt-or-pipt