Flash Translation Layer: What FTL Does Inside an SSD


To the operating system, an SSD looks like any other block device: it reads and writes 512-byte or 4 KB logical blocks at addresses that never change. Inside the drive, nothing works that way. NAND flash is written in pages, erased in much larger blocks, and cannot be overwritten in place at all. The flash translation layer, or FTL, is the firmware layer that hides this mismatch and makes raw flash behave like a disk.

Every read and write passes through the FTL, which is why SSD behavior depends on it: random write speed, the slowdown when the drive fills, what happens after power loss, and why only a full erase restores fresh performance. Understanding the FTL turns vague complaints about SSD aging into predictable engineering.

Why an SSD Needs a Translation Layer

A hard drive can update a sector wherever it sits; the head simply flies over that spot and writes over the old magnetism. Flash cannot do this. A NAND page must be erased before it is programmed again, and erasure only happens at block granularity, so updating a single page always involves moving data somewhere else.

The FTL absorbs that complexity. It keeps a table that translates each logical block address (LBA) from the operating system into a physical address in the flash, and it also handles the housekeeping that raw flash requires: choosing which block to write next so wear stays balanced, retiring blocks that fail, and rebuilding its tables after power loss. That is also why raw-reading the chips cannot recover data in logical order.

Pages, Blocks and Out-of-Place Updates

A typical NAND page holds 4 KB to 16 KB of user data and is the smallest writable unit. Pages are grouped into blocks, and a block, often several megabytes in size, is the smallest erasable unit. Programming works bit by bit in one direction only, so a page that already holds data cannot be rewritten without erasing its entire block first.

The FTL therefore performs out-of-place updates. When you save a file, the new version goes to a blank page, and the old page is marked invalid in the mapping table. The invalid page keeps its data until its whole block is recycled, but the drive no longer returns it for that logical address. Writing the same 4 KB over and over consumes a new page each time, which is exactly why free space matters so much.

This also explains the power-loss risk. The mapping table lives partly in fast volatile memory, and it must be flushed to flash along with the user data. A drive with weak power-loss protection can come back with a partly outdated table, which shows up as missing recent writes or a drive that is detected but reports an unexpected size.

Mapping Tables, DRAM and HMB

The table itself has to be large. With page-level mapping and four bytes per entry, one gigabyte of DRAM is needed for roughly every terabyte of flash, and drives with more capacity need proportionally more. That is why SSDs carry a DRAM chip of their own, usually sized at 1 MB per 1 GB of capacity, and why its loss is a serious event: without the table, the drive cannot tell which physical page belongs to which logical address.

DRAM-less drives avoid the chip by keeping only a small cache on the controller and fetching table entries from flash when needed. To reduce the penalty, some designs use the host memory buffer feature of NVMe, borrowing a slice of system RAM over the PCIe link. It works, but latency and peak performance are lower than with a dedicated DRAM, which is why cheap drives slow down sharply on sustained random writes.

Garbage Collection and Write Amplification

Invalid pages are dead weight until their block is erased, and a block can only be erased when every page in it is invalid. Garbage collection is the process that copies the few still-valid pages out of a partly used block, erases it, and returns it to the free pool. Those copies are internal writes the user never requested.

The ratio of internal writes to host writes is called write amplification. A drive writing 4 KB but internally moving 16 KB has a write amplification of four, which consumes endurance four times faster and caps random write speed. TRIM helps by telling the drive which blocks the file system has freed, over-provisioning helps by keeping spare blocks available, and the wear leveling logic decides where the relocated pages land.

As the drive approaches full capacity, garbage collection has less room to work with and has to copy more valid data per reclaimed block. That is the mechanism behind the familiar slowdown of a nearly full SSD, and it is a design consequence rather than a defect.

Restoring Performance Safely

Because fragmentation exists inside the drive rather than in the file system, deleting files does not restore fresh performance. A full erase resets the mapping table and returns every block to the free pool, which is why vendors recommend a secure erase before reusing, selling or recycling a drive.

A complete wipe is destructive. Copy anything you need first, then remove every partition so the whole device is erased rather than just the formatted volume.

Step 1. Connect the SSD, launch Qiling Disk Master, select the disk and open Wipe Disk.

choose the SSD to wipe in the Wipe Disk window

Step 2. Read the warning that all data on the disk will be lost and confirm that the correct drive is selected.

data loss warning shown before erasing the SSD

Step 3. Click Proceed and wait for the erase to finish without interrupting power.

wipe process running with progress indicator on the SSD

FAQ

Does the FTL belong to the drive or to Windows?

It runs in the SSD controller. The operating system only sees logical blocks, so different drives with identical capacity can behave very differently under the same workload.

Can a failed mapping table be rebuilt?

Not by the user. If the table is lost or corrupt, the drive needs vendor-level service, and data recovery usually means reading raw NAND with specialized equipment. Backups are the realistic answer.

Does a full format restore SSD speed?

Only if it triggers a real erase of the whole device. Formatting a partition just rewrites file system structures and leaves the internal fragmentation in place.

Related Articles


Is this information helpful?     

What can we do to improve this information? (Optional)
Refresh Please enter the verification code!


QilingTech uses cookies to ensure you get the best experience on our website.  Learn more  Got it