Category: 

What Is Memory Hierarchy?

A stick of RAM, a type of computer memory.
Article Details
  • Written By: Alex Newth
  • Edited By: Angela B.
  • Last Modified Date: 22 March 2014
  • Copyright Protected:
    2003-2014
    Conjecture Corporation
  • Print this Article
Free Widgets for your Site/Blog
Fluorescent light bulbs use 80% less electricity and last as much as 12 times longer than conventional light bulbs.  more...

April 16 ,  1947 :  The term "Cold War" w  more...

Memory hierarchy is the hierarchy of memory and storage devices found in a computer. Often visualized as a triangle, the bottom of the triangle represents larger, cheaper and slower storage devices, while the top of the triangle represents smaller, more expensive and faster storage devices. This is often used in computation theory and design, so programmers know how to manage the different memory systems when building a computer. By knowing how to manipulate this hierarchy, programmers can build faster computers.

The memory hierarchy triangle is a visualization technique that helps consumers and programmers understand how memory works. At the bottom, there are cheap storage devices with large amounts of memory, like the hard drive or magnetic tape. Higher up, there is random access memory (RAM), which has medium capacity and speed. At the top rests cache and processors, both of which are very fast but have small capacities. The triangle is primarily organized by response time, but there is also a correlation between factors such as size, memory capacity and price.

Ad

When building a computer, the programmer must keep the memory hierarchy triangle in mind. While parts of the triangle can be manipulated, moving sections around is strictly against the rules. For example, a programmer could switch the role of the hard drive to the role of RAM. If this happens, the computer would be very slow when loading immediate information such as files and websites, and would be able to hold little data for long-term storage, making the computer nearly useless. Switching parts of the triangle is not the correct way to maximizing a computer’s potential.

Manipulating the triangle the right way is how programmers increase a computer’s efficiency. For example, if the storage units are made to be very simple, with less size and complexity, the memory hierarchy works better. Also, if programmers can make it so information can be processed in higher sections of the hierarchy, for example, using the processor instead of RAM, then the computer moves faster. This doesn’t move the sections around, it only optimizes them.

While visualizing memory hierarchy is very simple, and memory can be manipulated to go in different sections, it is difficult to know exactly where memory will be stored or used. Programmers must estimate this factor, because several different units will generally process the memory at once, or the memory can go from one section to another. Well-made programs will typically be able to anticipate where the memory will be stored or processed, but there is a random factor for which programmers cannot always account, which is why memory hierarchy is much more fluid than the triangle visualization makes it seem.

Ad

Discuss this Article

Markerrag
Post 1

Notice how every part of that triangle -- CPU and cache, RAM and hard drives -- have gotten larger and larger over the years. That is critical as larger CPUs and RAM allow for computers to handle much more complex tasks in a shorter amount of time. In other words, if your computer seems sluggish the cheapest way to speed it up is add some more RAM. That is usually possible because computer manufacturers rarely sell computers with as much RAM installed as the motherboard will handle.

Post your comments

Post Anonymously

Login

username
password
forgot password?

Register

username
password
confirm
email