Few basic doubts regarding caches

Please carry me, these questions can be very simple. I'm just trying to understand the basics.

  • Are cache shutdown algorithms used, such as LRU, OS? if so, how can we find out the current algorithm used and is it possible for a programmer to change it?

  • Since the cache along with the processor, read and write policies are hard-coded or does the operating system solve this?

  • Are there separate caches for data and instructions? or do they have the same cache?

  • What are the algorithms currently used in operating systems to solve the cache coherence problem?

Thank you for your patience in answering my questions.

  • Sethu
+3
source share
2 answers

Only one answer? Well

1.) . , , microbenchmarking .

2.)

3.) , L1 . TLB .

4.) , . : http://www.systems.ethz.ch/education/past-courses/hs09/mmdbms

0

, . , (TLB). , .

+1
source

All Articles