The present application relates to the field of
solid state storage technology, and in particular to a
solid state disk
data consistency control method, aiming to solve the problems of poor
data consistency, high risk of power failure loss, and difficult balance between write efficiency and consistency of the
solid state disk in the scenarios of power failure, parallel writing, and
garbage collection. By constructing a "cache-persistent cache" hierarchical architecture, combined with multi-channel writing synchronization, power failure emergency migration, and periodic
verification and repair mechanisms, the full-process
consistency control is realized: the received data is first stored in the cache, the multi-channel writing task is allocated according to the
weighted round robin and the state is synchronized; when the power fails, the standby
capacitor is triggered to supply power, and the cache data is migrated to the persistent cache according to FIFO; according to the 1-24 hour configurable period, the SHA-256 hash check is performed on the flash block data, and when it is inconsistent, it is repaired from the persistent cache /
backup block. The present application makes the
solid state disk
data consistency compliance rate ≥ 99.9%, the power
failure data loss rate ≤ 0.01%, and the write
delay is reduced by 15%-20%, which is suitable for
consumer, enterprise and industrial
solid state disks.