08-08-2023 дата публикации
Номер: CN116560728A
Принадлежит:
The invention discloses a trim method of flash memory equipment. The trim method of the flash memory equipment comprises the following steps: receiving a current trim command issued by a host; detecting whether the trim command is an erasure command for a full-disk logic address or not; if yes, directly resetting the mapping relation of all map tables; if not, carrying out subsequent steps; detecting whether the trim command is an erasure command crossing at least one map table or not; if yes, directly resetting the mapping relation in the spanned map table, and then erasing the mapping relation corresponding to the residual logical addresses in the trim command; if not, carrying out subsequent steps; counting the plurality of trim commands, and sorting logic addresses in the plurality of trim commands to form a logic unit; and when the logic unit meets a first preset condition, erasing the mapping relation in the map table corresponding to the logic unit. After the scheme is adopted, targeted ...
Подробнее