Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Physical cache vs Logical cache

What is the pros and cons of:
- Physical cache (between MMU and Memory)
- Logical cache (between CPU and MMU)

from a programmer's view? How to get the best of each of them?

Thanks

like image 995
Betamoo Avatar asked Dec 04 '25 15:12

Betamoo


1 Answers

Google gives this Link.

Up to date Link

The article gives pros and cons of each type of caching system and states that both can be implemented at the same time. Froma programmer's point of view, anytime I need not worry about virtual addressing and associated costs, its a win, but programming for cache hit/misses is going to affect performance much more than slight latency I believe. This area is not my forte, coming from small embedded systems programming though where caching is just now starting to become relevent to what I do.

like image 177
Michael Dorgan Avatar answered Dec 07 '25 13:12

Michael Dorgan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!