Knowee
Questions
Features
Study Tools

What is the cache hit ratio. if memory access takes 20 ns with cache and 110 ns without it (cache uses a 10 ns memory)?

Question

What is the cache hit ratio. if memory access takes 20 ns with cache and 110 ns without it (cache uses a 10 ns memory)?

🧐 Not the exact question you are looking for?Go ask a question

Solution

The cache hit ratio can be calculated using the formula:

Hit ratio = (Twithout cache - Twith cache) / (Twithout cache - Tcache)

Where:

  • Twithout cache is the time it takes to access memory without cache
  • Twith cache is the time it takes to access memory with cache
  • Tcache is the time it takes to access the cache

Given:

  • Twithout cache = 110 ns
  • Twith cache = 20 ns
  • Tcache = 10 ns

Substituting these values into the formula, we get:

Hit ratio = (110 ns - 20 ns) / (110 ns - 10 ns) = 90 / 100 = 0.9 or 90%

So, the cache hit ratio is 90%.

This problem has been solved

Similar Questions

What ls a cache miss, and what are the causes of cache misses in a computer system?

Which of the following has the fastest speed in the computer memory hierarchy? ans. Disk cache Cache Register in CPU Main memory

has the shortest access times.a.Registersb.Cache Memoryc.Virtual Memoryd.Secondary Memory

Which of the following has the fastest speed in the computer memory hierarchy? ans. Disk cache Main memory Register in CPU Cache

Most virtual memory schemes make use of a special high-speed cache for page table entries, called a

1/1

Upgrade your grade with Knowee

Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.