Why Flash Write Amplification Climbs as the Array Fills
Last updated: November 29, 2026
Quick Overview
Explain what write amplification is in a log-structured flash system, why it grows sharply as utilization rises, and write a small simulation comparing greedy and cost-benefit garbage collection victim selection.
Pure Storage
November 29, 20260
0
0 solved
Explain what write amplification is in a log-structured flash system, why it grows sharply as utilization rises, and write a small simulation comparing greedy and cost-benefit garbage collection victim selection.
Pure's DirectFlash design moves flash translation and garbage collection out of the SSD and into Purity, so engineers are expected to reason about write amplification, over-provisioning and endurance quantitatively. The interviewer wants the mechanism, a back-of-envelope formula, and evidence from a simulation rather than hand-waving.
What the Interviewer Expects
- Defines WA as total flash page writes over host page writes
- Explains that GC must relocate still-valid pages before erasing a block
- Connects WA to the valid fraction of victims and therefore to utilization
- Gives the rough uniform-random estimate WA approx 1 / (1 - u_victim)
- Compares greedy and cost-benefit selection, including hot and cold data
- Links WA to endurance and to latency spikes during GC
Key Topics to Cover
How to Approach This
- Apply SOLID principles. Single Responsibility makes code testable, Open/Closed makes it extensible.
- Choose data structures based on access patterns, not familiarity.
- Prefer immutable data and message passing over shared mutable state for concurrency.
- Design APIs with RESTful conventions, versioning, meaningful errors, and pagination from day one.
Possible Follow-up Questions
- How does separating hot and cold data into different segments change WA?
- Why does deduplication and compression effectively reduce WA on an all-flash array?
- How would you keep GC from causing latency spikes for foreground reads?
- How does TRIM or unmap from the host help?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice System Design ProblemsSample Answer
Requirements
Explain the concept, then build a simulator: blocks of pages, a fraction of logical space filled, uniform random overwrites, and GC that picks a victim block, relocates its valid pages and erases it. ...
High-Level Design
Flash pages cannot be overwritten in place; a block must be erased as a whole. So an overwrite appends to an open block and marks the old page invalid. When free blocks run low, GC picks a victim, cop...