AI Term of the Moment

Forbes AI 50


Look Up Another Term


Definition: memory


(1) Because memory means "remember," memory sometimes refers to storage. However, this is incorrect when referring to computing devices because their basic operation is the interaction between storage (remembering) and memory (not remembering). Definition #2 is the correct explanation.

(2) Random access memory (RAM) is the temporary workspace in every computing device from phones to desktop computers to mainframes.

Capacities
For laptop and desktop computers, memory capacity ranges from 4GB to 64GB (4-64 gigabytes), and server racks with multiple GPUs in AI data centers can have many terabytes. Smartphones and tablets generally have 2GB to 16GB.

Flash Memory; an Unfortunate Name
Memory loses its content when the power is turned off, but "flash memory," the storage technology in solid state and USB drives does remember. Flash memory is a terrible name because people confuse it with random access memory (RAM). See flash memory, dynamic RAM, memory card and storage vs. memory.

All Processing Takes Place in Memory
The interplay between memory, storage and the CPU is how work gets done. A program's instructions are copied into memory from storage (disk or solid state drive) or the network. The instructions are extracted from memory into the CPU for execution and direct the device to input data into memory. The CPU processes the data in memory and outputs/copies the results from memory.

Processing Means Calculate, Compare and Copy
All data are processed (calculated, compared and copied) in memory (see 3 C's). As programs and data are written into memory, the previous contents of that space are lost. After processing, new data are output/copied from memory to any combination of screen, printer, storage and network.




An Electronic Checkerboard
Data in storage (disks, SSDs, flash drives) reside in blocks (sectors) hundreds or thousands of bytes long. After the block is copied to memory, the content of any byte or contiguous bytes can be calculated, compared and copied with any other bytes in memory. This "byte addressability" is what makes it very different than storage. In this example of counting California records, a constant (blue) is compared with the state field. If equal, a constant of "1" is added to a counter (yellow). See byte addressable, constant and memory.




Memory Doesn't Remember
Memory loses its content when the power is off, so why call it memory? Because the memory in early computers "did remember," but today's memory chips do not (see core storage). However, for certain unchangeable functions, there are memory chips that do retain their content and remember (see ROM, UEFI and non-volatile memory). See storage vs. memory.

Memory Can Be Clobbered!
Memory is allocated by both the operating system and the applications but released when no longer needed. However, errant programs can fail to release memory, reducing space for other programs. Bugs in software can alter the wrong memory bytes creating erroneous values that can only be reset by rebooting, which clears memory. For example, rebooting a TV cable box or a washing machine does the same thing: it clears the computer's memory.

Other terms for the computer's main memory are RAM, primary storage and read/write memory. See dynamic RAM, static RAM and memory module.




Buffers, Constants and Instructions
Every program/application/app reserves buffer space (yellow) for data to be read into and processed. Constants (gray) are values the program needs for calculation and comparing, and machine instructions (black) tell the CPU to calculate, compare and copy the data (the flowchart). See 3 C's.







More Memory, More Apps
Multiple apps can be instantly viewed in a phone (top) or computer because there is sufficient memory to hold them all at the same time. The operating system keeps track of the instruction in each app that is the next one to execute.






A TV's Memory Got Clogged!
This message displayed on a smart TV when one of the streaming apps became unstable and had to be restarted. Memory can get corrupted at any time in any device controlled by a computer.