Computer Memory and Storage
- 77Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
- spaceFlip card
- KI knew it
- DI didn't know it
- ←Previous card
- →Next card
Why do computers use many different memory and storage locations instead of one universal device?
Different types of memory offer different combinations of capacity, access time, bandwidth, and cost; no single type excels at all of them.
Or swipe the card
77 cards
Why do computers use many different memory and storage locations instead of one universal device?
Different types of memory offer different combinations of capacity, access time, bandwidth, and cost; no single type excels at all of them.
What are the main trade-offs between SSDs or hard drives and CPU cache?
SSDs and hard drives offer large capacity at low cost but have long access times and relatively low bandwidth. CPU cache is fast and has high bandwidth but is expensive and small.
How does a computer make the different memory locations work together?
Memory controllers and algorithms move data between locations so the system can combine their advantages.
What is the usual order of the memory hierarchy from fastest to slower, according to the content?
Registers and cache, then DRAM, then SSDs and hard drives, with the internet and other devices farther down.
What does access time measure?
The time between requesting data and the data being returned.
How does bandwidth differ from access time?
Access time is the delay before requested data arrives; bandwidth is the rate at which data can be transferred.
Why must data often move through several levels before a processor can use it?
Execution units work on data in registers; data not already there must be fetched from cache, main memory, or storage and moved into the registers.
What can happen if a computer has too few memory locations?
Applications and games may take a very long time to load and run slowly, or be limited to simple graphics.
Why is the distance in the storage visualization not simply the time electricity takes to travel?
The distance represents access time, which is often determined by limitations of the storage medium itself, not just signal travel time.
What determines internet latency in the example?
The distance the request and response data must travel; a nearby city may take about 12 milliseconds, while communication across Earth averages about a quarter of a second.
What scale was used to represent storage capacity in the visualization?
One megabyte was represented as a 400-page book, approximately matching 400 pages of text when each character occupies 8 bits.
What scale was used to represent access time as distance?
Twenty centimeters represented one nanosecond.
How much of the CPU die was attributed to registers and cache in the example, and how much remained for other circuitry?
About 30% was used for the memory locations, while about 70% was used for functional logic, controllers, and other sections.
How was the example CPU organized, and which cache level was shared across its cores?
It had 8 performance cores and 16 efficient cores. Registers and L1 and L2 cache were divided among cores, while L3 cache was shared.
How much data could the example CPU's cache and registers hold, and how far apart were the nearest and farthest CPU memory locations from the ALU?
They held about 68 megabytes plus additional register and L1-cache pages. Registers were about a third of a nanosecond from the ALU; shared L3 cache was about 7.5 nanoseconds away.
How did the example DRAM capacity and access time compare with the CPU memory?
Two 16-gigabyte DRAM sticks held the equivalent of 32,000 books, about 470 times the CPU's capacity, with roughly 45-nanosecond access time.
What memory and access-time figures were given for the example GPU and VRAM?
GPU registers and L1 and L2 caches held about 37 megabytes. The VRAM held 24 gigabytes and was about 250 nanoseconds from the GPU; CPU-to-GPU data requests averaged about 300 nanoseconds.
Why can VRAM have longer access time than expected despite being designed for high performance?
Its design prioritizes high bandwidth through wider buses and deep pipelines rather than low latency for a single request.
How did the example storage devices compare in capacity and access time?
The NVMe SSD held about 2 million books with 80-microsecond access time, the SATA SSD about 4 million with 120-microsecond access time, and the hard drive about 8 million with 10-millisecond access time.
What do the example SSD and hard-drive access times correspond to in the visualization's distance scale?
The NVMe SSD was about 16 kilometers away, the SATA SSD about 24 kilometers, and the hard drive about 2,000 kilometers.
How much data was attributed to the internet, and how did its latency vary with distance?
The internet was estimated to hold about 500 exabytes. A nearby-city request took about 12 milliseconds, compared with roughly a quarter of a second for a request across Earth.
What components were mounted on the example NVMe SSD circuit board?
A memory controller, DRAM, and two packages of 3D NAND flash.
How was the example 3D NAND package structured?
It contained a stack of 8 dies connected by wires to a substrate; each die contained multiple planes.
What approximate dimensions were given for a 3D NAND plane's memory-cell array?
About 40,000 strings wide, 60,000 rows deep, and 200 layers tall.
How much data could the described NAND array store, and what was its approximate cost per gigabyte?
More than 100 gigabytes in a volume smaller than a grain of rice, at about 7 cents per gigabyte.
How does a charge-trap flash cell store data?
It traps one of eight distinct charge levels, representing 3 bits, in a charge trap surrounded by insulating dielectric.
Why can charge-trap flash retain data without power, and what makes it relatively slow to access?
The insulating dielectric keeps trapped electrons in place for years without external power. Reading or changing the charge requires a complex sequence of voltage steps.
What performance figures were given for the example NAND flash?
Read time was about 80 microseconds, write time about 500 microseconds, and bandwidth about 5 gigabytes per second.
Why would placing a CPU core right beside NAND cells not make flash access as fast as CPU memory?
The flash medium itself requires complex charge-reading operations, so its access time would still be close to 80 microseconds.
How do SATA SSDs compare with NVMe SSDs in the content?
They use similar chips, including 3D NAND, and have comparable costs, but SATA SSDs have longer access times and substantially lower bandwidth because of the older SATA protocol.
What are the main mechanical parts inside the described hard disk drive?
Four platters, eight read-write heads, and a voice-coil motor that controls the heads.
How is data arranged on a hard-drive platter?
Across roughly half a million concentric tracks, which are divided into sectors.
What information is contained in a hard-drive sector, according to the example?
A preamble or synchronization zone, an address, 4 kilobytes of data, an error-correcting code, and gaps between sectors.
How does a hard drive physically write and read data?
Focused magnetic fields change magnetic domains to write data. The read head detects a change in magnetic field as 1 and no change as 0.
Why can a hard drive store terabytes of data on its platters?
Trillions of bits fit across the platter area, with each bit represented by magnetic domains in nanometer-sized volumes.
Why are hard drives inexpensive per gigabyte, and what is a significant engineering cost?
The platters are relatively simple layers of material on disks, keeping storage costs to about 1–2 cents per gigabyte. The read-write heads are costly to engineer so they fly only nanometers above the spinning surface.
What causes hard drives to have long access times and low bandwidth?
The read-write head must physically seek to the correct location while the platter spins.
At 7,200 RPM, approximately how long does one hard-drive platter rotation take?
About 8.3 milliseconds.
How are DRAM sticks connected to and managed by the CPU?
The chips on the sticks connect to the CPU through motherboard memory channels and are managed by the CPU's memory controller.
What structures were described inside a DRAM chip?
Interconnection layers and an integrated circuit containing 32 banks; each bank had an array of about 65,000 by 8,000 memory cells.
What is a DRAM memory cell made of, and how does it store a bit?
A cell uses one transistor and one capacitor (1T1C); the capacitor stores the bit as charge, and the transistor provides access to it.
What happens when the CPU requests a DRAM bank and row?
The row's transistors turn on, connecting each capacitor to a sense amplifier, which measures the capacitor voltages.
How does DRAM transfer sensed data to or from the CPU?
Groups of eight sense amplifiers connect to read or write drivers, which relay data to or from the CPU.
What access time and bandwidth were given for DRAM?
About 45 nanoseconds of access time and typically about 48 gigabytes per second of bandwidth.
Why does DRAM's high bandwidth help an operating system?
It allows the operating system to quickly context-switch between processes.
Why does DRAM have lower bit density and higher cost per bit than 3D NAND in the described comparison?
The physical size of its capacitors typically confines the 1T1C cell array to a 2D plane.
Why must DRAM be refreshed, and what happens to it without power?
Its capacitors quickly lose charge, so cells must be refreshed frequently. Without power, DRAM loses its data in about a tenth of a second.
What are CPU cache memory and registers made from, and what performance does this enable?
They are made from transistors, enabling very fast access and high bandwidth.
How many transistors are used for each bit of SRAM cache, and about how many transistors does a 36-megabyte L3 cache require?
An SRAM cell uses 6 transistors per bit; a 36-megabyte L3 cache requires about 1.8 billion transistors.
Why can cache occupy about a third of a CPU's transistors while still having limited capacity?
Cache uses many transistors per stored bit, so expanding it to a gigabyte would require enormous transistor counts and cost.
How are bits stored in CPU registers, and how large is a typical register?
Registers store bits in D flip-flops using about 16 transistors per bit; a typical register is 64 bits wide.
How many registers are in each processing core's register file in the example?
Thirty-two registers, or entries.
Why would increasing the number of registers potentially slow the processor clock?
More entries require larger decoder circuitry and more access ports, adding circuitry that can require a slower clock speed.
Why can increasing the number of registers also require changes to instruction encoding?
The example's 32 registers are addressed using 5 bits in instructions; more registers would require longer instructions.
How quickly are registers intended to be accessed, and what approximate time was given for that interval?
In a single clock cycle, about a third of a nanosecond.
Where are registers and cache located relative to CPU execution units, and what does this arrangement enable?
Registers sit beside the execution units and ALU, while cache levels are spread farther away. Execution units can calculate only on data already in registers.
Are the device sizes and access times in the comparison exact specifications?
No. They are approximate because manufacturers rarely publish all internal specifications, and device designs vary.
What other memory technologies were mentioned beyond the main technologies discussed?
Magnetic RAM and phase-change memory, along with emerging variants at different hierarchy levels.
Why can AI systems require much more memory and storage than desktop computers?
AI processors handle enormous computations and must store and repeatedly move large model and input datasets; a server can contain terabytes of memory and hundreds of terabytes of storage.
How does the content estimate the data representation of one AI token?
It simplifies each word as one token represented by about 8,000 one-byte values, or about 8 kilobytes.
What is a simplified way to understand the dimensions or values associated with an AI token?
They are values that help represent attributes and establish the model's learned understanding of the token, such as qualities related to temperature or size.
What is an AI context window?
The maximum number of tokens an AI can handle as context.
What kinds of material can be included in a model's context window?
Input text, prior conversations, output text, reference text, and other material.
About how much data results from a one-million-token context when each token has 8,000 one-byte dimensions?
About 8 gigabytes.
What are the major components of a transformer block mentioned in the content?
Attention sublayers, feed-forward or multilayer perceptron blocks, and variations of mixture-of-experts blocks, among other components.
Why does an AI model's operation create extensive memory traffic?
The context passes through hundreds of transformer blocks containing billions of learned parameters, and the required numbers must be stored and continually fed to and from AI processors.
What scale of parameters was attributed to state-of-the-art AI models?
Hundreds of billions of learned parameters, with each block containing tens of millions of parameters.
What memory hierarchy layers were described for AI systems?
HBM near the AI processor, DDR5 server RDIMM main memory, additional expansion memory using CXL, and storage layers.
How is the example HBM3E package constructed?
It uses a 12-high stack of DRAM dies connected by through-silicon vias (TSVs), forming a compact, dense memory package.
What is the role of the interposer in the described AI processor package?
It is a thin silicon substrate beneath the processor and HBM stacks that acts like a bridge or mini-motherboard, providing dense wiring between them.
What HBM capacity and bandwidth were given for the example AI processor package?
Six HBM packages provided 141 gigabytes of HBM and up to 1.2 terabytes per second of bandwidth.
How much DDR5 RDIMM memory was described in the example AI system?
Thirty-two 128-gigabyte sticks, totaling 4 terabytes.
What role can LPDDR serve in some AI systems?
It can provide higher bandwidth with low-power, efficient performance.
What storage features were described for the Micron 9650-series SSDs inside an AI chassis?
Each SSD held 8–30 terabytes, used PCIe Gen6, and was engineered for the throughput demands of AI training and inference.
What capacities were described for Micron 6600 ION NVMe SSD modules in networked data lakes?
A shown module could hold up to 122 terabytes, while other form factors reached as much as 246 terabytes.
How much data can a full rack of the described networked SSD storage hold, and what is it suited for?
Dozens to hundreds of petabytes, depending on chassis and SSD density; it is suited to storing training datasets with billions of examples.
Why must data-center architecture integrate multiple specialized memory and storage layers for AI?
AI is highly data-intensive, and growing system complexity requires diverse, specialized solutions for capacity, bandwidth, latency, and data movement.

Ask anything
We've read this whole study set, so questions about it get the best answers.