Random Access Memory
Random Access Memory
- Details
- Category: Computers
- Published on Saturday, 27 February 2010 21:50
- Written by Administrator
- Hits: 179615
Random-access memory (usually known by its acronym, RAM) is a form of computer data storage. Today, it takes the form of integrated circuits that allow stored data to be accessed in any order (i.e., at random). The word random thus refers to the fact that any piece of data can be returned in a constant time, regardless of its physical location and whether or not it is related to the previous piece of data.
By contrast, storage devices such as magnetic discs and optical discs rely on the physical movement of the recording medium or a reading head. In these devices, the movement takes longer than data transfer, and the retrieval time varies based on the physical location of the next item.

The word RAM is often associated with volatile types of memory (such as DRAM memory modules), where the information is lost after the power is switched off. Many other types of memory are RAM, too, including most types of ROM and a type of flash memory called NOR-Flash.
The opposite of RAM is serial access memory (SAM). SAM stores data as a series of memory cells that can only be accessed sequentially (like a cassette tape). If the data is not in the current location, each memory cell is checked until the needed data is found. SAM works very well for memory buffers, where the data is normally stored in the order in which it will be used (a good example is the texture buffer memory on a video card). RAM data, on the other hand, can be accessed in any order.
Similar to a microprocessor, a memory chip is an integrated circuit (IC) made of millions of transistors and capacitors. In the most common form of computer memory, dynamic random access memory (DRAM), a transistor and a capacitor are paired to create a memory cell, which represents a single bit of data. The capacitor holds the bit of information -- a 0 or a 1 (see How Bits and Bytes Work for information on bits). The transistor acts as a switch that lets the control circuitry on the memory chip read the capacitor or change.A capacitor is like a small bucket that is able to store electrons. To store a 1 in the memory cell, the bucket is filled with electrons. To store a 0, it is emptied. The problem with the capacitor's bucket is that it has a leak. In a matter of a few milliseconds a full bucket becomes empty. Therefore, for dynamic memory to work, either the CPU or the memory controller has to come along and recharge all of the capacitors holding a 1 before they discharge. To do this, the mem ory controller reads the memory and then writes it right back. This refresh operation happens automatically thousands of times per second.
This refresh operation is where dynamic RAM gets its name. Dynamic RAM has to be dynamically refreshed all of the time or it forgets what it is holding. The downside of all of this refreshing is that it takes time and slows down the memory.
Types of RAM
Modern types of writable RAM generally store a bit of data in either the state of a flip-flop, as in SRAM (static RAM), or as a charge in a capacitor (or transistor gate), as in DRAM (dynamic RAM), EPROM, EEPROM and Flash. Some types have circuitry to detect and/or correct random faults called memory errors in the stored data, using parity bits or error correction codes. RAM of the read-only type, ROM, instead uses a metal mask to permanently enable/disable selected transistors, instead of storing a charge in them.
SRAM and DRAM are volatile, other forms of computer storage, such as disks and magnetic tapes, have been used as persistent storage in traditional computers. Many newer products instead rely on flash memory to maintain data when not in use, such as PDAs or small music players. Certain personal computers, such as many rugged computers and netbooks, have also replaced magnetic disks with flash drives. With flash memory, only the NOR type is capable of true random access, allowing direct code execution, and is therefore often used instead of ROM; the lower cost NAND type is commonly used for bulk storage in memory cards and solid-state drives.
Similar to a microprocessor, a memory chip is an integrated circuit (IC) made of millions of transistors and capacitors. In the most common form of computer memory, dynamic random access memory (DRAM), a transistor and a capacitor are paired to create a memory cell, which represents a single bit of data. The capacitor holds the bit of information — a 0 or a 1 . The transistor acts as a switch that lets the control circuitry on the memory chip read the capacitor or change its state.
Memory hierarchy
Many computer systems have a memory hierarchy consisting of CPU registers, on-die SRAM caches, external caches, DRAM, paging systems, and virtual memory or swap space on a hard drive. This entire pool of memory may be referred to as "RAM" by many developers, even though the various subsystems can have very different access times, violating the original concept behind the random access term in RAM. Even within a hierarchy level such as DRAM, the specific row, column, bank, rank, channel, or interleave organization of the components make the access time variable, although not to the extent that rotating storage media or a tape is variable. The overall goal of using a memory hierarchy is to obtain the higher possible average access performance while minimizing the total cost of the entire memory system (generally, the memory hierarchy follows the access time with the fast CPU registers at the top and the slow hard drive at the bottom).
In many modern personal computers, the RAM comes in an easily upgraded form of modules called memory modules or DRAM modules about the size of a few sticks of chewing gum. These can quickly be replaced should they become damaged or when changing needs demand more storage capacity. As suggested above, smaller amounts of RAM (mostly SRAM) are also integrated in the CPU and other ICs on the motherboard, as well as in hard-drives, CD-ROMs, and several other parts of the computer system.
Swapping
If a computer becomes low on RAM during intensive application cycles, many CPU architectures and operating systems are able to perform an operation known as "swapping". Swapping uses a paging file, an area on a hard drive temporarily used as additional working memory. Constant use of this mechanism is called thrashing and is generally undesirable because it lowers overall system performance, mainly because hard drives are slower than RAM.
Other uses of the "RAM" term
Other physical devices with read–write capability can have "RAM" in their names: for example, DVD-RAM. "Random access" is also the name of an indexing method: hence, disk storage is often called "random access" (Wiki:PowerOfPlainText, Fortran language features#Direct-access files, MBASIC#Files and input/output, Java Platform, Standard Edition#Random access, indexed file) because the reading head can move relatively quickly from one piece of data to another, and does not have to read all the data in between. However the final "M" is crucial: "RAM" (provided there is no additional term as in "DVD-RAM") always refers to a solid-state device.
Often, RAM is a shorthand in on-line conversations for referring to the computer's main working memory.
RAM disks
Software can "partition" a portion of a computer's RAM, allowing it to act as a much faster hard drive that is called a RAM disk. Unless the memory used is non-volatile, a RAM disk loses the stored data when the computer is shut down. However, volatile memory can retain its data when the computer is shut down if it has a separate power source, usually a battery.
SD is a very old and slow form of RAM now. We're talking computer dinosaurs here. If your computer still uses this type of RAM, it's time to update and get a new one. Anything that still uses SD RAM is going to struggle severely with any modern day software on the market.
The second type of RAM you may come across is known as DDR . Although this is being phased out now, it is still quite common in systems that are a few years old. Identifying DDR from DDR2 is not quite as simple as they both have only the one slot. DDR RAM however, will typically have memory modules spanning most of the width of the circuit board chip, and if you can find an operational speed printed on it, then it will generally be either 333Mhz (Megahertz) or 400Mhz.
DDR2 RAM is usually distinguishable from DDR RAM by the size of the black memory modules on the outer surface of the chip. On DDR2 RAM, the modules dont span quite as much of the width of the chip as what they do on DDR RAM. Although the slot position is also a little different between the two, it can be difficult to distinguish which is which based on this alone.
DDR2 RAM operates in a different manner to the previous DDR version, which gets quite technical, but the bottom line is that it is significantly faster. This type of RAM can range anywhere in speed from 400Mhz right through to 1066Mhz. DDR2 RAM is the most common type of RAM in use today, and can still be found in most new computers at your local electronics store.
DDR3 RAM is the newest development of the RAM module to be released on the market. The full name for it is Double-Data-Rate Three Synchronus Dynamic Random Access Memory. Perhaps it's best just to stick with DDR3. This RAM type offers two benefits over its previous version, those being increased data speed, and reduced power consumption.
DDR3 RAM can range in speed between 800Mhz and 1600Mhz. It's physical appearance is almost identical to DDR2 RAM in every way, except for the positioning of the slot on the pin edge. This makes it quite difficult to distinguish from DDR2 RAM, and determining which type via operating speed which may be printed on the side could also prove difficult as it shares the 800Mhz and 1066Mhz speeds with its DDR2 counterpart.

