calculate the effective access time

This is a paragraph from Operating System Concepts, 9th edition by Silberschatz et al: The percentage of times that the page number of interest is found in the TLB is called the hit ratio. An 80-percent hit ratio, for example, means that we find the desired page number in the TLB 80 percent of the … Read more

What is the difference between LRU and LFU

Let’s consider a constant stream of cache requests with a cache capacity of 3, see below: If we just consider a Least Recently Used (LRU) cache with a HashMap + doubly linked list implementation with O(1) eviction time and O(1) load time, we would have the following elements cached while processing the caching requests as … Read more

Memcached vs. Redis?

Summary (TL;DR) Updated June 3rd, 2017 Redis is more powerful, more popular, and better supported than memcached. Memcached can only do a small fraction of the things Redis can do. Redis is better even where their features overlap. For anything new, use Redis. Memcached vs Redis: Direct Comparison Both tools are powerful, fast, in-memory data … Read more