Abaara topic: Cache algorithms

 

Abaara - Free Knowledge Database & Resources
 ABAARA
Abaara topic: Cache algorithms
 Categories

 e-Learning Platform

 Web Packages

 Newsletter

eLeaP eLearning Management Systems LMS LCMS Systems. Online training made easy. Free trial now.
 
Cache algorithms

Cache algorithms are optimizing instructions that a computer program can follow to manage a cache of information stored on the computer. Cache size is usually limited, and if the cache is full, the computer (that is, the programmer) must decide which items to keep and which to discard to make room for new items.

Examples of caching algorithms are:

  • LRU (least recently used) discards the least recently used items first. Obviously, this requires keeping track of what was used when.
  • LFU (least frequently used) counts, how often an item is needed. Those that are used least often are discarded first.


Other things to consider:

  • Price: keep those items that are expensive to obtain, e.g. those that take a long time to get.
  • Size: If items have different sizes, you may want to discard a large one to store several smaller ones.
  • Time: Some caches keep information that expires (e.g. a news cache, a DNS cache, or a web browser cache). The computer may discard items because they are expired. Depending on the size of the cache no further caching algorithm to discard items may be necessary.

External Links

  • direct mapped cache (http://www.cs.umd.edu/class/spring2003/cmsc311/Notes/Memory/direct.html)


See also:
| Cache |
< Back
 
Web info.abaara.com
 


Categories: Computer science | Stub

 Web Results


 

This article is from Wikipedia. All text is available under the terms of the GNU Free Documentation License

 

 
Page topic: Cache algorithms