Ram is an example of storage, and a hard drive is an example of storage .

Computers use a variety of data storage devices that are classified in two ways: one is whether they retain the data if there is no electricity and the other is how close they are to the processor (CPU). Both types of storage are needed in all computers. In a personal computer, memory does not retain data when the electricity is off, but while it is on, it enables quick access to open files. A storage drive, however, allows you to permanently store data, so it's available each time you turn on the computer.

Volatile and non-volatile storage

The first classification of computer data storage is between volatile and non-volatile storage. An example of volatile storage is memory (RAM) that stores data only until there is no electricity powering the device. RAM allows your computer to have multiple files open and access any of them instantly. Some other examples of volatile storage devices are calculators.

Ram is an example of storage, and a hard drive is an example of storage .
RAM modules

A computer's hard disk can become completely full of data and unable to take any more, but RAM won't run out of memory. However, the combination of RAM and storage memory can be completely used up.

How does RAM work?

The term random access as applied to RAM comes from the fact that any storage location, also known as any memory address, can be accessed directly. Originally, the term Random Access Memory was used to distinguish regular core memory from offline memory.

Offline memory typically referred to magnetic tape from which a specific piece of data could only be accessed by locating the address sequentially, starting at the beginning of the tape. RAM is organized and controlled in a way that enables data to be stored and retrieved directly to and from specific locations.

Other types of storage -- such as the hard drive and CD-ROM-- are also accessed directly or randomly, but the term random access isn't used to describe these other types of storage.

RAM is similar in concept to a set of boxes in which each box can hold a 0 or a 1. Each box has a unique address that is found by counting across the columns and down the rows. A set of RAM boxes is called an array, and each box is known as a cell.

To find a specific cell, the RAM controller sends the column and row address down a thin electrical line etched into the chip. Each row and column in a RAM array has its own address line. Any data that's read flows back on a separate data line.

RAM is physically small and stored in microchips. It's also small in terms of the amount of data it can hold. A typical laptop computer may come with 8 gigabytes of RAM, while a hard disk can hold 10 terabytes.

A hard drive, on the other hand, stores data on the magnetized surface of what looks like a vinyl record. Alternatively, an SSD stores data in memory chips that, unlike RAM, are nonvolatile. They don't depend on having constant power and won't lose data once the power is turned off. RAM microchips are gathered together into memory modules. These plug into slots in a computer's motherboard. A bus, or a set of electrical paths, is used to connect the motherboard slots to the processor.

Most PCs enable users to add RAM modules up to a certain limit. Having more RAM in a computer cuts down on the number of times the processor must read data from the hard disk, an operation that takes longer than reading data from RAM. RAM access time is in nanoseconds, while storage memory access time is in milliseconds.

How much RAM do you need?

The amount of RAM needed all depends on what the user is doing. When video editing, for example, it's recommended that a system have at least 16 GB RAM, though more is desirable. For photo editing using Photoshop, Adobe recommends a system have at least 3GB of RAM to run Photoshop CC on a Mac. However, if the user is working with other applications at the same time, even 8GB of RAM can slow things down.

Types of RAM

RAM comes in two primary forms:

  • Dynamic Random Access Memory (DRAM) makes up the typical computing device's RAM, and as was previously noted, it needs that power to be on to retain stored data.

Each DRAM cell has a charge or lack of charge held in an electrical capacitor. This data must be constantly refreshed with an electronic charge every few milliseconds to compensate for leaks from the capacitator. A transistor serves as a gate, determining whether a capacitor's value can be read or written.

  • Static Random Access Memory (SRAM) also needs constant power to hold on to data, but it doesn't need to be continually refreshed the way DRAM does.

In SRAM, instead of a capacitor holding the charge, the transistor acts as a switch, with one position serving as 1 and the other position as 0. Static RAM requires several transistors to retain one bit of data compared to dynamic RAM which needs only one transistor per bit. As a result, SRAM chips are much larger and more expensive than an equivalent amount of DRAM.

However, SRAM is significantly faster and uses less power than DRAM. The price and speed differences mean static RAM is mainly used in small amounts as cache memory inside a computer's processor.

Ram is an example of storage, and a hard drive is an example of storage .

History of RAM: RAM vs. SDRAM

RAM was originally asynchronous because the RAM microchips had a different clock speed than the computer's processor. This was a problem as processors became more powerful and RAM couldn't keep up with the processor's requests for data.

In the early 1990s, clock speeds were synchronized with the introduction of synchronous dynamic RAM, or SDRAM. By synchronizing a computer's memory with the inputs from the processor, computers were able to execute tasks faster.

However, the original single data rate SDRAM (SDR SDRAM) reached its limit quickly. Around the year 2000, double data rate synchronous Random Access Memory (DDR SRAM) was developed. This moved data twice in a single clock cycle, at the start and the end.

DDR SDRAM has evolved three times, with DDR2, DDR3 and DDR4, and each iteration has brought improved data throughput speeds and reduced power use. However, each DDR version has been incompatible with earlier ones because, with each iteration, data is handled in larger batches.

Ram is an example of storage, and a hard drive is an example of storage .
Images of the various DDR formats

GDDR SDRAM

Graphics double data rate (GDDR) SDRAM is used in graphics and video cards. Like DDR SDRAM, the technology enables data to be moved at various points in a CPU clock cycle. However, it runs at higher voltages and has less strict timing than DDR SDRAM.

With parallel tasks, such as 2D and 3D video rendering, tight access times aren't as necessary, and GDDR can enable the higher speeds and memory bandwidth needed for GPU performance.

Similar to DDR, GDDR has gone through several generations of development, with each providing more performance and lower power consumption. GDDR6 is the latest generation of graphics memory.

RAM vs. virtual memory

A computer can run short on memory, especially when running multiple programs simultaneously. Operating systems can compensate for physical memory shortfalls by creating virtual memory.

With virtual memory, data is temporarily transferred from RAM to disk storage, and virtual address space is increased using active memory in RAM and inactive memory in an HDD to form contiguous addresses that hold an application and its data. Using virtual memory, a system can load larger programs or multiple programs running at the same time, letting each operate as if it has infinite memory without having to add more RAM.

Virtual memory is able to handle twice as many addresses as RAM. A program's instructions and data are initially stored at virtual addresses, and once the program is executed, those addresses are turned into actual memory addresses.

One downside to virtual memory is that it can slow a computer because data must be mapped between the virtual and physical memory. With physical memory alone, programs work directly from RAM.

RAM vs. flash memory

Flash memory and RAM are both comprised of solid-state chips. However, they play different roles in computer systems because of differences in the way they're made, their performance specifications and cost. Flash memory is used for storage memory. RAM is used as active memory that performs calculations on the data retrieved from storage.

One significant difference between RAM and flash memory is that data must be erased from NAND flash memory in entire blocks. This makes it slower than RAM, where data can be erased in individual bits.

However, NAND flash memory is less expensive than RAM, and it's also nonvolatile. Unlike RAM, it can hold data even when the power is off. Because of its slower speed, nonvolatility and lower cost, flash is often used for storage memory in SSDs.

RAM vs. ROM

Read-only memory, or ROM, is computer memory containing data that can only be read, not written to. ROM contains boot-up programming that is used each time a computer is turned on. It generally can't be altered or reprogrammed.

The data in ROM is nonvolatile and isn't lost when the computer power is turned off. As a result, read-only memory is used for permanent data storage. Random Access Memory, on the other hand, can only hold data temporarily. ROM is generally several megabytes of storage, while RAM is several gigabytes.

Resistive Random Access Memory (RRAM or ReRAM) is nonvolatile storage that can alter the resistance of the solid dielectric material it's composed of. ReRAM devices contain a memristor in which the resistance varies when different voltages are applied.

ReRAM creates oxygen vacancies, which are physical defects in a layer of oxide material. These vacancies represent two values in a binary system, similar to a semiconductor's electrons and holes.

ReRAM has a higher switching speed compared to other nonvolatile storage technologies, such as NAND flash. It also holds the promise of high storage density and less power consumption than NAND flash. This makes ReRAM a good option for memory in sensors used for industrial, automotive and internet of things applications.

Vendors have struggled for years to develop ReRAM technology and get chips into production. A few vendors are currently shipping them.

3D XPoint technology, such as Intel's Optane, could eventually fill the gap between dynamic RAM and NAND flash memory. 3D XPoint has a transistor-less, cross-point architecture in which selectors and memory cells are at the intersection of perpendicular wires. 3D XPoint isn't as fast as DRAM, but it is nonvolatile memory.

Ram is an example of storage, and a hard drive is an example of storage .
Intel's 3D XPoint-based Optane SSD

In terms of performance and price, 3D XPoint technology is between fast, but costly DRAM and slower, less expensive NAND flash. As the technology develops, it may blur the distinction between RAM and storage.

5G and the RAM market

In February 2019, the JEDEC Solid State Technology Association published the JESD209-5, Low Power Double Data Rate 5 (LPDDR5). LPDDR5 will eventually operate at an I/O rate of 6400 MT/s, 50 percent higher than that of the first version of LPDDR4. This will significantly boost memory speed and efficiency for a variety of applications. This includes mobile computing devices such as smartphones, tablets and ultra-thin notebooks.

LPDDR5 was published with a data rate of 6400 MT/s, compared to 3200 MT/s for LPDDR4 at its publication in 2014.

In July 2019, Samsung Electronics began mass producing the industry’s first 12-gigabit LPDDR5 mobile DRAM. According to Samsung, it has been optimized for enabling 5G and AI features in future smartphones.

Cost of RAM

By the summer of 2019, DRAM prices remained depressed from earlier levels -- but volatile, nonetheless. A number of variables contributed to the volatility, including:

Is RAM an example of a storage device?

RAM (Random Access Memory) and ROM (Read Only Memory) are examples of primary storage. Secondary Storage Devices: Secondary storage is a memory that is stored external to the computer. It is mainly used for the permanent and long-term storage of programs and data.

What type of storage device is RAM?

Data storage device There are mainly two types of semiconductor memory: random-access memory (RAM) and read-only memory (ROM). RAM is a temporary data storage domain, whereas ROM serves as a semi-permanent storage domain. If RAM is likened to notebooks or memo pads, then ROM is comparable to dictionaries and textbooks.

Is a hard drive an example of a storage device?

A computer hard disk drive (HDD) is a non-volatile data storage device. Non-volatile refers to storage devices that maintain stored data when turned off. All computers need a storage device, and HDDs are just one example of a type of storage device.

Is RAM an example of secondary storage?

Secondary memory is also known as External memory or Auxiliary memory. Examples: RAM, ROM, Cache memory, PROM, EPROM, Registers, etc. Examples: Hard Disk, Floppy Disk, Magnetic Tapes, etc.