Lably
Skip to content

Memory hierarchy

Computer memory architecture

  • 4 min read
  • 3 chapters

Explore on Lably

ToursExplore Lably’s 3D tours

Designing for high performance requires considering the restrictions of the memory hierarchy, i.e. the size and capabilities of each component. Each of the various components can be viewed as part of a hierarchy of memories (m1, m2, ..., mn) in which each member mi is typically smaller and faster than the next highest member mi+1 of the hierarchy. To limit waiting by higher levels, a lower level will respond by filling a buffer and then signaling for activating the transfer.

There are four major storage levels.

  • Internal – processor registers and cache.
  • Main – the system RAM and controller cards.
  • On-line mass storage – secondary storage.
  • Off-line bulk storage – tertiary and off-line storage.

This is a general memory hierarchy structuring. Many other structures are useful. For example, a paging algorithm may be considered as a level for virtual memory when designing a computer architecture, and one can include a level of nearline storage between online and offline storage.

Properties of the technologies in the memory hierarchy

  • Adding complexity slows the memory hierarchy.
  • CMOx memory technology stretches the flash space in the memory hierarchy
  • One of the main ways to increase system performance is minimising how far down the memory hierarchy one has to go to manipulate data.
  • Latency and bandwidth are two metrics associated with caches. Neither of them is uniform, but is specific to a particular component of the memory hierarchy.
  • Predicting where in the memory hierarchy the data resides is difficult.
  • The location in the memory hierarchy dictates the time required for the prefetch to occur.

Sign in to keep reading

2 more chapters are free with a Lably account.

More in Computing and communication