0

Current processors often use write-back cache. Is there any way to set the processor to use write-through cache? Or is there any way to disable the cache? My purpose of doing this is to measure some experimental data. The cache write strategy has a great impact.

Yujie
  • 395
  • 2
  • 12
  • Yes, x86 for example has configurable cache modes with MTRR and/or PAT, including WT and disabled. Some ARM CPUs, especially ones aimed at embedded systems, may have even more control over caching. – Peter Cordes Oct 03 '21 at 10:13
  • Can it be set to write-through mode? – Yujie Oct 03 '21 at 10:18
  • Yes, that's what WT stands for. – Peter Cordes Oct 03 '21 at 10:19
  • Can write-through be set on a commonly used Intel CPU server? – Yujie Oct 03 '21 at 10:20
  • Intel server CPUs implement the x86 ISA, so yes, google it. ([When use write-through cache policy for pages](https://stackoverflow.com/q/61129142) might have some relevant links.) – Peter Cordes Oct 03 '21 at 10:22
  • If you're only interested in x86, seems like a duplicate of [How can the L1, L2, L3 CPU caches be turned off on modern x86/amd64 chips?](https://stackoverflow.com/q/48360238) – Peter Cordes Oct 03 '21 at 10:27

0 Answers0