Add zone reset function and plane-level parallelism in ZNS SSD #155
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello! I fixed some bugs in zns_ftl. My revisions are as follows:
LPN 0 --> ch [0] fc [0] pl [0] blk [0] flash_pg [0] pg [0]
...
LPN 4 --> ch [0] fc [0] pl [0] blk[0] flash_pg[0] pg[3]
LPN 5 --> ch [0] fc [0] pl [0] blk[0] flash_pg[1] pg[0]
...
LPN 15 --> ch [0] fc [0] pl [0] blk[0] flash_pg[3] pg[3]
---------------- a programming unit ---------------------------
LPN 16 --> ch [1] fc [0] pl [0] blk[0] flash_pg[0] pg[0]
...
Note that I'm not sure if the flash pages of different planes within the flash chip need to be programmed at the same time, and if so, the above logic needs to be modified. Assuming there are two planes, you would need to set planes_per_lun to 1 and ZNS_PAGE_SIZE to 16KiB x 2 = 32 KiB.
Let the zone reset command triggers the erasure of the block and the modification of the L2P mapping table at the same time.
Updated some of the variable names to make them more readable.
Correct the read logic to aggregate reads to the same flash page.