The application belongs to the technical field of
solid-state storage, and specifically discloses a
solid-state disk fault-aware reading optimization and code length self-adaption method and device, which comprises the following steps: a fault-aware re-reading mechanism is constructed, a
code word that fails to be decoded in a primary decoding round is marked, and only the marked failed
code word is transmitted in a subsequent re-reading round; based on the fault-aware re-reading mechanism, the
delay of hard-decision decoding and the
delay of soft-decision decoding are analyzed and combined to obtain a fault-aware reading
delay model; the fault-aware reading delay model comprises a default reading operation delay model and a soft-decision reading operation delay model; when reading data, a reading mode determination result is obtained based on the fault-aware reading delay model; when writing data, a target code length in the case of the shortest reading delay is obtained based on the fault-aware reading delay model; and the target code length is used to write data. Through the application, the reading performance of an SSD can be improved under the condition that the
code rate remains unchanged.