3 ms·
I was under the following impressions: 1. Writable Unit: The smallest unit you can write to in an SSD is a page. 2. Erasable Unit: The smallest unit you can e
by gavinray 3y ago
I was under the following impressions:
1. Writable Unit: The smallest unit you can write to in an SSD is a page.
2. Erasable Unit: The smallest unit you can erase in an SSD is a block, which consists of multiple pages.
So if a write operation impacts only 1 byte within a page, the SSD cannot erase just that byte. However, it does not need to erase the entire block either.
The SSD can perform a "read-modify-write" type of operation:
- Read the full page containing the byte that needs to change into the SSD's cache buffer.
- Modify just the byte that needs updating in the page cache.
- Erase a new empty block.
- Write the modified page from cache to the new block.
- Update the FTL mapping tables to point to the updated page in the new block.
So, a page does need to be rewritten even if just 1 byte changes. Whole-block erasure is avoided until many pages within it need to be modified.