Search code examples
cachingmemorymultiprocessingbus

Which cache type is better for bus watching?


I am studying for an exam about memory (mostly cache) and I ran across a multiple-choice question from a few years back:

Which cache type is recommended for bus watching and is also used in multiprocessor systems?

 a. write-through cache
 b. write-back cache

I understand that bus watching means that each cache snoops the bus to see what requests are sent form other caches to the main memory, but I don't really understand which answer is correct.

First type (write-through) would just update everything to the memory every time something is updated and the latter would just keep data in cache to be faster and to me it seems that both could work. I guess, however, that write-back cache would be better suited, since with write-through cache there would be no need to snoop the bus? Is this the correct reasoning?

Any help is appreciated.


Solution

  • The answer was write-back (see MSI, MESI, Dragon protocols).