Electronic – Cache write/read times

cachecomputer-architecturememorymicroprocessor

I would like to devise certain rules of thumb to help solve certain computer design/architecture challenges. Hence, in memory, which operations typically take longer to execute: loads or stores?? I think this might help make my choices more realistic during the design process.

Best Answer

From an architectural point of view, it depends on which policy your cache uses.

In the write through policy, the result of any operation is stored in the cache and in the physical memory in the same cycle; therefore the write operation will take longer, while the read operation will depend on the presence of the data block in the cache.

In the write back policy, the result is just stored in the cache and copied in the physical memory only when the same data block is required. Therefore writing and reading can be at the same speed, or either of them can be slower.

More info.

Related Topic