Computer Memory and Storage
- 71Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
Why do computers use many different memory and storage locations instead of relying on a single type?
71 questions
- 1
Why do computers use many different memory and storage locations instead of relying on a single type?
Model answer
Different types offer different combinations of capacity, access time, bandwidth, and cost, so no single type excels at all four. Controllers and algorithms move data between them to combine their strengths.
Explanation
The hierarchy balances large, inexpensive storage with smaller, faster memory.
- 2
What happens to game or application data when it is loaded from storage?
Model answer
Data is transferred from SSDs or hard drives into DRAM, VRAM, and memory locations in the CPU and GPU so the computer can process it quickly.
Explanation
The different locations support the fast movement and processing of data needed by applications and games.
- 3
What would be a likely consequence of a computer using only a few memory locations?
Model answer
Games and applications could take much longer to load and run slowly, or they might be limited to simple graphics.
Explanation
Using fewer locations would make it harder to balance storage capacity with fast access and data transfer.
- 4
How do hard drives and SSDs compare with CPU cache in capacity, access time, bandwidth, and cost?
Model answer
Hard drives and SSDs provide high-capacity, low-cost storage but have poor access times and bandwidth compared with CPU cache. Cache is fast and has high bandwidth but is expensive and holds little data.
Explanation
These contrasting trade-offs explain why computers use both storage devices and cache.
- 5
What is the usual order of the main memory hierarchy, from fastest levels to larger storage?
Model answer
Registers and cache are at the top, DRAM is in the middle, and SSDs and hard drives are below them. Internet and other devices can form a further layer beneath these.
Explanation
The hierarchy organizes locations according to their different performance and capacity characteristics.
- 6
In the visualization described, what did a 400-page book represent, and why was that comparison chosen?
Model answer
A 400-page book represented about one megabyte of data. The comparison was chosen because 400 pages of text encoded with 8-bit ASCII characters is close to one megabyte.
Explanation
The book provided a visual way to compare the capacities of different memory locations.
- 7
How did the visualization represent access time, and what distance corresponded to one nanosecond?
Model answer
It represented access time as the distance between the data location and the requester, with 20 centimeters corresponding to one nanosecond.
Explanation
The scale made differences in access time easier to visualize as differences in distance.
- 8
How does internet data capacity compare with local computer storage, and how does network latency vary with distance?
Model answer
The internet was estimated to hold about 500 exabytes. Retrieving data from a nearby city takes about 12 milliseconds, while communication across Earth averages about a quarter of a second.
Explanation
Network latency depends partly on how far the request and response must travel; the global round trip was described as about twice the time light takes to travel the same distance.
- 9
Why are CPU registers and cache placed close to execution units?
Model answer
Execution units can work only on data already in registers. Data not there must be fetched through the cache hierarchy, main memory, or storage and moved into the registers.
Explanation
Keeping frequently needed data close to execution units helps them perform calculations without waiting for slower locations.
- 10
What is the general relationship between a memory location’s capacity and its access time across the hierarchy?
Model answer
Locations with very large capacity, such as SSDs and hard drives, generally have much longer access times than small, fast locations such as registers and cache.
Explanation
The hierarchy reflects large differences in both storage capacity and access time.
- 11
How much data can the CPU’s registers and cache hold in the described desktop example, and what share of the CPU die do they occupy?
Model answer
The CPU’s registers and cache hold about 68 megabytes, plus some additional register and L1 cache data, and occupy about 30% of the CPU die.
Explanation
The remaining die area is used for functional logic, controllers, and other sections.
- 12
How are the CPU’s cache levels and registers distributed across its cores?
Model answer
The example CPU has 8 performance cores and 16 efficient cores; registers and L1 and L2 caches are divided among individual cores, while L3 cache is shared among all cores.
Explanation
The shared L3 differs from the per-core organization of registers and the smaller cache levels.
- 13
How do the CPU’s register and L3 cache access times compare in the described example?
Model answer
Registers are about one-third of a nanosecond from the ALU, while the shared 36-megabyte L3 cache is about 7.5 nanoseconds away.
Explanation
The different distances in the visualization represent the difference in access times between these locations.
- 14
How much data can two 16-gigabyte DRAM sticks hold, and how does that compare with the CPU’s memory capacity?
Model answer
Together, the sticks hold 32 gigabytes, equivalent in the visualization to about 32,000 books. This is about 470 times the CPU’s approximately 68-megabyte capacity.
Explanation
DRAM provides much more capacity than the CPU’s on-chip registers and caches.
- 15
What is the approximate access time between the CPU and DRAM in the example?
Model answer
Moving data between the CPU and DRAM takes about 45 nanoseconds.
Explanation
In the visualization, this delay corresponds to placing most DRAM carts about 9 meters from the CPU table.
- 16
How much data can the GPU’s registers, L1 cache, and L2 cache hold, and what portion of its die do they occupy?
Model answer
Together, these GPU memory locations hold about 37 megabytes and occupy roughly one-third of the GPU die.
Explanation
The rest of the GPU die is used for functional logic.
- 17
Why does the distribution of memory in a GPU differ from that in a CPU?
Model answer
The GPU has roughly 10,000 individual cores, so its memory must be distributed differently from memory in a CPU.
Explanation
The GPU’s much larger number of cores affects how its memory resources are organized.
- 18
How much VRAM is in the example graphics card, and what is its approximate access time from the GPU?
Model answer
The graphics card has 24 gigabytes of VRAM, with an access time of about 250 nanoseconds from the GPU.
Explanation
The VRAM design favors bandwidth over the shortest possible single-request access time.
- 19
Why does VRAM have a longer access time than might be expected from its location next to the GPU?
Model answer
Its design prioritizes high bandwidth through wider buses and deep pipelines rather than minimizing single-request access time.
Explanation
The trade-off favors moving large amounts of data rather than serving an individual request as quickly as possible.
- 20
What is the approximate time to request and send data between the CPU and GPU in the example?
Model answer
The average time is about 300 nanoseconds.
Explanation
In the visualization, this delay is represented by placing the CPU and GPU about 60 meters apart.
- 21
How do the example NVMe SSD, SATA SSD, and hard drive compare in storage capacity?
Model answer
The NVMe SSD represents about 2 million books, the SATA SSD about 4 million, and the hard drive about 8 million.
Explanation
The storage devices hold far more data than CPU or GPU memory locations.
- 22
How do the example storage devices compare in access time?
Model answer
The NVMe SSD has an access time of about 80 microseconds, the SATA SSD about 120 microseconds, and the hard drive about 10 milliseconds.
Explanation
The hard drive’s access time is much longer than either SSD’s in the example.
- 23
How is data physically organized inside a 3D NAND flash SSD?
Model answer
The SSD contains NAND packages made from stacks of dies; each die contains planes, and each plane contains a large array of memory cells.
Explanation
The stacked structure allows a very large number of cells to fit into a small volume.
- 24
What is a charge-trap flash cell, and how does it encode data?
Model answer
A charge-trap flash cell stores electrons in an insulated charge trap. In the example, it distinguishes eight charge levels to encode 3 bits.
Explanation
The different amounts of stored charge represent the cell’s encoded bit values.
- 25
Why can charge-trap flash retain data without external power, and what design trade-off does this create?
Model answer
An insulating dielectric surrounds the charge trap, allowing the data to persist for years without power. Because there is no direct electrical connection to the trapped charge, reading and writing require complex voltage sequences.
Explanation
The insulation enables long-term retention but makes access slower.
- 26
What read time, write time, and bandwidth are given for the example NVMe SSD?
Model answer
Its read time is about 80 microseconds, its write time is closer to 500 microseconds, and its bandwidth is about 5 gigabytes per second.
Explanation
The multi-step voltage operations needed to access charge-trap cells contribute to these access times.
- 27
Would placing a CPU core directly beside NAND flash cells eliminate the flash access delay? Why or why not?
Model answer
No. The access time would still be close to 80 microseconds because it is determined by the limitations of the storage medium, not just the physical distance to the processor.
Explanation
The visualization’s distance represents access delay, not simply the time electricity takes to travel.
- 28
How do SATA SSDs compare with NVMe SSDs in their underlying flash technology and performance?
Model answer
SATA SSDs use similar chips, including 3D NAND flash, and have comparable costs. They have longer access times and substantially lower bandwidth because of limitations in the older SATA protocol.
Explanation
The transfer protocol affects performance even when the underlying flash technology is similar.
- 29
What are the main physical components inside a hard disk drive, and how is data laid out on its platters?
Model answer
The example drive has four platters and eight read-write heads controlled by a voice-coil motor. Data is organized in about half a million concentric tracks, which contain individual sectors.
Explanation
The heads access data on the rotating platter surfaces.
- 30
What information is stored in a hard drive sector besides its user data?
Model answer
A sector includes a preamble or synchronization zone, an address, 4 kilobytes of data, an error-correcting code, and gaps between sectors.
Explanation
The extra fields help identify and synchronize sectors and support error correction.
- 31
How are data bits written and read on a hard drive platter?
Model answer
Focused magnetic fields manipulate magnetic domains to write data. The read head senses a change in magnetic field as 1 and no change as 0.
Explanation
Magnetic-domain changes encode the bits stored on the platter.
- 32
Why can a hard drive store terabytes of data, and why is its cost per gigabyte low?
Model answer
Trillions of bits fit across the platter area, providing terabytes of storage. The platters are layers of material on disks rather than complex semiconductor structures, keeping the cost to roughly one or two cents per gigabyte.
Explanation
The large recording area and relatively simple platter materials support inexpensive high-capacity storage.
- 33
What causes hard drives to have long access times and relatively low bandwidth?
Model answer
The read-write head must physically seek to the correct location while the platter spins, which delays access and limits data transfer.
Explanation
Mechanical movement makes the drive slower to access than solid-state storage.
- 34
How does a hard drive spinning at 7,200 RPM relate to its access time?
Model answer
At 7,200 RPM, the platter makes one rotation about every 8.3 milliseconds, which contributes to access times in that range.
Explanation
The drive may have to wait for the required location on the platter to rotate under the read-write head.
- 35
How are DRAM chips connected to the CPU, and what manages their operation?
Model answer
The DRAM chips connect to the CPU through memory channels on the motherboard. The CPU’s memory controller manages them.
Explanation
The memory controller coordinates communication between the CPU and DRAM.
- 36
How is the internal organization of a DRAM chip described in the example?
Model answer
The chip has 32 banks, each containing an array of approximately 65,000 by 8,000 memory cells.
Explanation
The banks organize the large number of cells in the chip.
- 37
What does the term 1T1C mean for a DRAM memory cell, and what does each part do?
Model answer
A 1T1C cell has one transistor and one capacitor. The capacitor stores one bit as charge, and the transistor provides access to that data.
Explanation
The cell’s name reflects its one-transistor, one-capacitor structure.
- 38
How does DRAM access a particular bank and row of data?
Model answer
The CPU sends the address of a bank and row, turning on all the transistors in that row and connecting the capacitors to sense amplifiers.
Explanation
Activating a row allows the memory circuitry to read or write its cells.
- 39
What do DRAM sense amplifiers do during a read or write?
Model answer
They measure the voltage in the capacitors. Groups of sense amplifiers connect to read or write drivers, which relay data to or from the CPU.
Explanation
The sense amplifiers detect the stored charge and help communicate the data.
- 40
What are the approximate access time and bandwidth of DRAM in the example?
Model answer
DRAM access takes about 45 nanoseconds, and its typical bandwidth is around 48 gigabytes per second.
Explanation
Its bandwidth helps the operating system move data quickly while switching between processes.
- 41
Why does DRAM have lower bit density and a higher cost per bit than some storage technologies?
Model answer
The physical size of the capacitors generally confines the 1T1C cell array to a two-dimensional plane, limiting how densely bits can be packed.
Explanation
A two-dimensional arrangement uses more area for a given amount of data than a densely stacked structure.
- 42
Why must DRAM be refreshed, and what happens to its data without power?
Model answer
The capacitors quickly lose their charge, so every cell must be refreshed frequently. Without power, DRAM loses its data in about one-tenth of a second.
Explanation
DRAM stores information as charge that does not remain indefinitely.
- 43
What is SRAM, and how many transistors are used for each cache bit in the example?
Model answer
Cache memory uses SRAM cells made from six transistors per bit.
Explanation
The transistor-based design gives cache fast access and high bandwidth.
- 44
Why does cache occupy a substantial portion of the CPU’s transistor budget despite holding relatively little data?
Model answer
The 36-megabyte L3 cache alone contains about 1.8 billion transistors, and additional cache levels and address storage raise cache’s share to about one-third of the CPU’s 26 billion transistors.
Explanation
Cache uses many transistors per stored bit, making large cache capacities expensive in die area and transistor count.
- 45
How do CPU registers store bits, and how many transistors are used per bit?
Model answer
Registers store bits using D-flip-flops, which require about 16 transistors per bit.
Explanation
This transistor-based arrangement supports very fast register access.
- 46
How many registers are in each processing core’s register file in the example, and how wide is each register?
Model answer
Each core has 32 registers, or entries, in its register file, and each register is typically 64 bits wide.
Explanation
Register files hold data directly available to a core’s execution units.
- 47
Why would increasing the number of CPU registers risk slowing the computer?
Model answer
More entries require larger decoder circuitry and more access ports, which can force a slower clock speed. They would also require more bits in instructions to address the registers.
Explanation
The example’s 32 registers can be addressed with 5 bits, so a larger register set would affect both circuitry and instruction length.
- 48
Why are registers designed to be accessed in a single clock cycle?
Model answer
They provide execution units with data in about one clock cycle, or one-third of a nanosecond in the example.
Explanation
The close placement and fast access let the core use register data directly in calculations.
- 49
Why do AI systems need much more memory and storage than typical desktop computers?
Model answer
AI processors perform enormous numbers of calculations and must store and repeatedly move large amounts of input representations, model parameters, and intermediate data.
Explanation
A single AI server can contain terabytes of memory and hundreds of terabytes of storage.
- 50
Why does AI represent text using far more data than the original text’s ASCII encoding requires?
Model answer
AI builds an internal representation of text using thousands of values, or dimensions, for each token rather than working only with the few bytes used to encode the text itself.
Explanation
These values help represent what the model has learned about each token.
- 51
How does the example describe the dimensions associated with a token, and how much data does one token require?
Model answer
It simplifies each word as one token with about 8,000 dimensions, each one byte in size, for a total of about 8 kilobytes per token.
Explanation
The dimensions are values used to represent attributes and meaning associated with the token.
- 52
How can dimensions in an AI token representation be used to describe a word such as “dog”?
Model answer
Different dimensions can take values related to attributes of the word, such as temperature or size, helping the AI establish an internal representation of it.
Explanation
The example presents dimensions as values that encode aspects of a token’s meaning.
- 53
What is an AI context window?
Model answer
A context window is the maximum number of tokens an AI model can handle at once.
Explanation
For cutting-edge models, the described context windows range from about 100,000 to a few million tokens.
- 54
What kinds of information can be included in a context window besides the current input?
Model answer
It can include prior conversations, output text, reference text, and other information as well as the input text.
Explanation
The context window contains the material the model handles together when generating a response.
- 55
How much data is represented by a context window of one million tokens in the example?
Model answer
At 8,000 one-byte dimensions per token, a million-token context window represents about 8 gigabytes of data.
Explanation
The total reflects the large number of values stored for every token.
- 56
What happens to a context window when an AI generates a response?
Model answer
The context window is fed through hundreds of transformer blocks, including attention sublayers, feed-forward or multilayer perceptron blocks, and sometimes mixture-of-experts variations.
Explanation
The model processes the context through these components to produce its response.
- 57
Why does processing a context window through an AI model create extensive memory traffic?
Model answer
Transformer blocks contain many learned parameters, and the context passes through these blocks and the model’s parameters, so large quantities of numbers must be stored and continuously moved to and from AI processors.
Explanation
State-of-the-art models can contain hundreds of billions of parameters, contributing to their substantial memory needs.
- 58
What are the main tiers in the described AI memory hierarchy?
Model answer
The hierarchy includes near memory such as HBM beside the AI processor, DDR5 server RDIMM main memory, and additional expansion memory using CXL.
Explanation
These tiers increase capacity at different levels before the system’s storage layers are considered.
- 59
How is an HBM3E package constructed in the described AI system?
Model answer
It is made from a 12-high stack of DRAM dies connected by through-silicon vias, forming a compact, dense memory package.
Explanation
The vertical stack places multiple DRAM layers in a small footprint.
- 60
What is the role of the interposer in the AI system’s HBM arrangement?
Model answer
The interposer is a thin silicon substrate beneath the HBM stacks and AI processor that acts as a bridge, providing dense wiring between them.
Explanation
Its wiring connects the central processor to the surrounding HBM packages.
- 61
How much HBM and bandwidth does the example AI processor have?
Model answer
Six HBM packages provide 141 gigabytes of memory, with bandwidth of about 1.2 terabytes per second to the AI processor.
Explanation
Short, very wide connections help provide high bandwidth and low latency.
- 62
How much DDR5 RDIMM memory is in the described server configuration?
Model answer
The configuration has 32 sticks of 128 gigabytes each, for a total of 4 terabytes.
Explanation
RDIMMs provide a larger-capacity memory tier beyond the HBM near the processor.
- 63
What role can LPDDR play in some AI systems?
Model answer
Some AI systems use LPDDR, similar to memory in phones, to enable higher bandwidth with low-power, efficient performance.
Explanation
LPDDR offers a different balance of bandwidth and power use.
- 64
What protocol and workload demands are associated with the described Micron 9650 series SSDs?
Model answer
The SSDs use PCIe Gen6 and are engineered for the extreme throughput demands of AI training and inference pipelines.
Explanation
They are placed within the AI chassis and are described as having capacities from 8 to 30 terabytes each.
- 65
What capacities are available in the described Micron 6600 ION NVMe storage modules?
Model answer
The modules shown hold up to 122 terabytes each, while other form factors reach as much as 246 terabytes.
Explanation
These networked SSDs are used in data lakes in separate storage racks.
- 66
How much data can a full rack of the described networked SSDs store, and what is an example of a suitable use?
Model answer
Depending on the chassis and SSD density, a rack can store dozens to hundreds of petabytes. This capacity can store training datasets containing billions of examples.
Explanation
Large datasets are one reason AI data centers require high-capacity storage.
- 67
Why must AI data-center architecture integrate multiple memory and storage layers?
Model answer
AI is highly data-intensive, so its systems must provide different specialized layers to supply memory capacity, bandwidth, and storage for large datasets and processing demands.
Explanation
As systems become more complex, their memory and storage solutions must become more diverse and specialized.
- 68
Why should the example memory sizes and access times be treated as approximate rather than exact specifications?
Model answer
Manufacturers rarely publish all internal specifications, and the example’s physical estimates are intended to be realistic approximations rather than exact blueprints.
Explanation
The described SSD cell-array dimensions, for example, are meant to be in a realistic range.
- 69
Why can different devices of the same storage type have different internal designs?
Model answer
There are hundreds of designs and architectures for each type of storage, and the technology continues to improve.
Explanation
Consequently, sizes, access times, and other specifications vary across devices and over time.
- 70
How are memory and storage technologies expected to change over time?
Model answer
In a decade, devices are likely to be many times larger and to offer faster access times and higher bandwidth.
Explanation
Ongoing improvements in memory and storage technology change the capabilities of devices.
- 71
Name two other memory technologies mentioned besides the principal technologies described.
Model answer
Magnetic RAM and phase-change memory are two other memory technologies mentioned.
Explanation
The content also notes that emerging variants exist at multiple levels of the memory hierarchy.

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