Search

A technology, a device or an article

What an SSD must preserve after acknowledging a write

The FTL maintains logical addresses while NAND changes. A systems account of data and metadata consistency, write completion, and recovery after power loss.

A spatial composition relating logical addresses to physical NAND cells.
A spatial composition relating logical addresses to physical NAND cells. Conceptual illustration created with AI.ITNWS · Original ITNWS AI-assisted editorial illustration

A write acknowledgement has meaning only alongside the conditions it acknowledges. A command may have placed data in volatile memory, committed it to persistent media or left persistence requiring a separate operation. These are substantially different promises. The word SSD chooses none of them and does not remove the need for agreement across the complete system. A drive presents logical blocks to its host. That interface need not keep every block at one permanent NAND location. Its obligation is different: maintaining the defined relationship between addresses and data. The flash translation layer, or FTL, makes this possible under physical-memory constraints. Invariants provide a useful description: properties that must remain true while permitted implementation details change. The central invariant is more precise than “data was written.” A subsequent permitted read must return the appropriate version under the promised semantics. Correct bytes existing somewhere are insufficient. Information must survive that locates them, distinguishes a complete version from an incomplete one, and prevents reclaimed space from being mistaken for current content.

This is systems reasoning rather than a test of a particular SSD. Controllers need not share one algorithm. Different tables, journals and recovery arrangements are acceptable if they preserve the required external properties. Published implementations illustrate the work involved, but cannot establish the internal design of every commercial product or its particular recovery guarantees.

A logical address is not a physical location

Suppose a controller relocates a block’s contents and a subsequent logical read returns a different version solely because physical placement changed. The block-interface contract has then been broken: the application used the same address without agreeing that its meaning should follow internal movement. Excluding that outcome is an FTL obligation. Relocation becomes necessary under NAND’s constraints, where programming and erasure have different units and arbitrary byte overwriting on the model of RAM is unavailable. Kioxia describes garbage collection through preserving valid pages before reclaiming blocks. The filesystem need not learn their new physical addresses; hiding those changes preserves the abstraction. The controller, conversely, needs metadata reconciling placement with current content. If one record declares an area free while another still directs required reads there, intact bytes alone are insufficient. The implementation must resolve that internal contradiction before reclaiming space or recognising a new version as current. Updating logical contents and reusing the previous physical location cannot consequently be treated as the same storage operation.

SPDK’s FTL documentation describes one open implementation, including address mappings and recovery metadata. It demonstrates that service information belongs to the persistence problem. It does not prove that a conventional SSD copies SPDK’s tables, nor establish one mandatory controller architecture. The implementation illustrates a requirement without making its particular mechanisms universal. After permitted recovery, the correspondence must have an unambiguous meaning again. Two physical copies can temporarily exist without violating the interface. Which copy is current still needs a defined answer. Duplication alone supplies neither version selection nor evidence of completion. Correctness depends on the roles assigned to those copies and the information supporting that decision. Metadata is therefore not a minor accessory to user bytes. Damaged mappings can make physically present information inaccessible. Conversely, an intact table cannot compensate for incomplete contents at its destination. Consistency binds both kinds of information. Any persistence promise must cover what is necessary to fulfil it, rather than protecting whichever category is easiest to describe.

Units also need separation. An interface’s logical block, internal mapping unit, NAND programming page and erase block need not coincide. A host request uses its defined format while physical work may be combined or placed differently. Writing one logical block does not establish exactly one internal programming operation. That difference is a purpose of abstraction, rather than evidence that abstraction failed. Guarantees cannot simply be transferred between units. A physical operation being indivisible within its scope does not make an arbitrary multi-block application request indivisible. Atomicity can depend on documented size and alignment conditions. The largest request that happened to complete normally cannot establish behaviour under interruption at every possible instant, particularly beyond a guaranteed atomic unit. Persistence also has an event boundary. Surviving an unexpected loss of power is not a promise to preserve data indefinitely through every later fault. Those requirements are assessed separately. Formal precision is useful because a higher-level system needs a defined foundation. An unlimited word such as “saved” provides less engineering value than an explicit, bounded commitment.

Even intact physical bytes are insufficient if they belong to another logical address. Mapping consistency is a condition distinct from content integrity. Checking one region cannot independently establish its correct assignment. The FTL must preserve the relationship: which information belongs to which address, and which version of that relationship remains authoritative after recovery.

Command completion and surviving information

A volatile cache can accept work before its final placement on persistent media. That is a meaningful interface feature rather than automatic manufacturer misconduct. Error enters when an acknowledgement is interpreted as stronger than its configured guarantee. Rapid completion and survival of sudden power removal require distinct definitions, even if a user sees just one completion message. The NVM Express specification connects Flush, with volatile write caching enabled, to committing data and metadata for the applicable namespaces to nonvolatile media. Command scope and interface rules matter. A general assumption that any closed application window establishes persistence of the entire device cannot replace those rules or their actual propagation. Applications normally do not address every component directly. Filesystems, operating systems and drivers lie between them and storage. If data remains above the device, SSD cache protection has not received it. If software never requests the required persistence, hardware cannot infer the moment that the user considered final. A strong lower-level guarantee cannot create a missing upper-level request.

The agreement must therefore span the system. Software expresses a requirement, intervening components propagate it under their rules, and the device performs its command. A particular loss still needs documentation and observations to diagnose. One missing file cannot uniquely identify a broken component, or establish whether the expected persistence promise was actually requested throughout the path. Atomicity asks another question. Persistence concerns survival after an event; atomicity concerns whether a partial result is permitted within a defined unit. Durable individual blocks do not turn an arbitrary collection of writes into a transaction. A device’s atomic boundaries must be understood separately from the mere presence of nonvolatile memory in its construction. Writing a database record’s contents and modifying its index, for example, are distinct logical changes. Requiring them to become jointly visible after a failure needs transaction organisation. An SSD does not know that several block requests constituted one meaningful user action. Its interface does not reconstruct application intent from addresses that happen to be close or similar.

A sculpture of ceramic pages, representing updates to persistent SSD state.
A sculpture of ceramic pages, representing updates to persistent SSD state. Conceptual illustration created with AI. — ITNWS · Original ITNWS AI-assisted editorial illustration

The distinction remains under fully functioning power-loss protection. Additional energy may finish internal work, but cannot invent a missing transaction protocol between independent commands. Preserving every promised block and preserving a valid application state are different claims. Higher-level software builds the latter from the former plus rules describing the relationship between its changes.

Recovery must preserve the invariant

Power interruption is interesting because it can arrive at an inconvenient internal point. Did contents finish programming? Did the mapping become persistent? Can a prepared version be distinguished from one authorised for use? A correct implementation answers within its stated guarantees, rather than assuming power conveniently disappears only after every service operation has completed. Possible mechanisms include journalling metadata changes, checkpoints, additional NAND information and other recovery strategies. These are alternatives, rather than a mandatory sequence. External behaviour alone cannot reveal the exact internal architecture. The significant requirement is the consistent result allowed after interruption and the acknowledged information that must remain accessible under the applicable persistence contract. Micron discusses unexpected power loss with distinctions between information types and protection implementations. PLP therefore needs the product’s actual documentation. Preserving metadata cannot automatically be equated with protecting every new user byte still held in volatile state. A familiar acronym cannot add a commitment that the specified implementation does not make.

A particularly important boundary separates previously persistent contents from new work accepted into cache. Avoiding damage to the former and preserving the latter are distinct requirements. Documentation establishing one does not silently establish both. Precise language is more useful here than an undifferentiated claim of reliability, because software needs to know which interrupted outcomes it must handle. Background activity also changes service state. A drive can relocate valid pages without receiving new user writes. Recovery must understand those changes too. An application issuing no write at the failure instant cannot establish complete internal inactivity. Maintaining block abstraction is an ongoing controller responsibility, rather than work occurring only during visibly active host commands. Garbage collection makes the requirement concrete. Erasing a physical block must not discard still-valid content needed under the contract. Reclamation requires preserving required data and correspondence. Victim selection, copy placement and commit methods vary, but the external invariant remains: a permitted read must not receive discarded contents in place of the version the device is obliged to provide.

Free space is an implementation resource

Reserve space gives a controller options for relocation and reclamation. Kingston describes overprovisioning as additional space for internal SSD work. Calling it merely missing gigabytes overlooks its role under NAND constraints. Its existence nevertheless cannot establish identical delay for every request, because available space is one resource within a changing workload and implementation. When a block mixes valid and obsolete pages, reclamation preserves the valid ones. Work depends on its contents and the incoming update pattern. Equal amounts of host writing can consequently produce different internal movement. That contributes to write amplification without establishing one constant multiplier for every SSD throughout its entire service life or every stage of use. Interfaces may also receive notice that logical information is no longer needed. That can prevent obsolete content being retained as current. Logical deallocation does not mean immediate erasure of those exact former physical cells. A universal secure-destruction guarantee cannot be inferred from it: secure removal has its own operations, conditions and completion criteria, rather than inheriting them from ordinary space reclamation.

The internal schedule remains hidden. A throughput graph can show an effect without establishing one unique cause. Caching, relocation, load distribution and free-space preparation interact. Saying garbage collection definitely began at a particular dip requires additional evidence. Observed delay is not a complete controller log, even if one proposed explanation is technically plausible. Implementation matters when comparing designs too. Local DRAM, host memory or another service-state arrangement can change tradeoffs. Absence of one visible component does not establish absence of metadata or one mandatory alternative location. Persistence concerns where the necessary state resides, its volatility and recovery mechanism, rather than the presence of a familiar chip label. A systems account keeps implementation separate from contract. A manufacturer can choose different mechanisms; a consumer can rely on documented semantics. Confusion follows when one project’s algorithm becomes a supposed universal SSD design, or an attractive specification substitutes for a persistence commitment. Defined requirements permit unlike implementations to be assessed on common grounds without pretending that they are internally identical.

Physical location can change repeatedly while logical meaning remains stable. That freedom lets NAND serve as block storage. It ends where acknowledged information, recoverable metadata or a defined atomic boundary is violated. A successful write deserves trust when its meaning is sufficiently precise to survive the most inconvenient interruption, rather than merely the ordinary completion path.

Sources & documentation

  1. NVM Express Base Specification 2.2 ↗
  2. Micron: unexpected power loss and SSD protection ↗
  3. SPDK: FTL implementation and recovery metadata ↗
  4. Kioxia: NAND garbage collection ↗
  5. Kingston: SSD overprovisioning ↗