摘要:
Embodiments of the present invention provide an array controller, including a communications interface and a processor. The communications interface is configured to communicate with a solid state disk. The processor is configured to receive information about a logical block sent by the solid state disk, where the information about the logical block includes a size of the logical block and indication information of the logical block, and the logical block includes one or more blocks. The processor is further configured to send multiple write data requests to the solid state disk, where each write data request carries target data, each write data request is used to instruct the solid state disk to write the target data into the logical block indicated by the indication information of the logical block, and a sum of lengths of the target data carried in the multiple write data requests is equal to the size of the logical block. The logical block may be filled after the solid state disk writes each piece of target data to the logical block, which can reduce write amplification when the solid state disk performs a garbage collection operation.
摘要:
Embodiments of this application disclose a task processing method and a related apparatus, to improve a data reading speed. The method in embodiments of this application includes: obtaining a first identifier ID sequence from a logical unit number LUN mapping table based on logical addresses of first data, where IDs in the first ID sequence are allocated based on a sequence of physical addresses, the LUN mapping table includes mapping relationships between the logical addresses and the IDs; when the IDs in the first ID sequence are consecutive, obtaining first physical addresses from an ID mapping table based on one ID in the first ID sequence, where the ID mapping table includes a mapping relationship between an ID and a physical address, and the first physical addresses are a plurality of physical addresses corresponding to the first ID sequence; and reading the first data based on the first physical addresses.
摘要:
The present invention discloses a data reconstruction method and apparatus, a computer device, and a storage medium and system, and pertains to the field of data storage technologies. According to the method, a lost first block in a first strip is directly reconstructed based on a first result obtained from a target quantity of storage devices, so that there is no need to read an unlost block in the first strip. The first block may be reconstructed provided that the target quantity of first results are obtained. An amount of data of the first result is less than that of the unlost block in the first strip. Therefore, a data transmission process occupies less network bandwidth, and this improves block reconstruction performance.
摘要:
This solution discloses a method for calculating a storage system capacity. An available capacity that is of a storage system and that corresponds to each stripe length is obtained based on an obtained stripe length that can be effectively configured. Therefore, a possibility is provided for how to optimally select an available capacity of a system.
摘要:
A storage system and a system garbage collection method are provided. The storage system includes a first controller, a second controller, and a solid state disk. The first controller or the second controller manages storage space of the solid state disk in a unit of a segment. The first controller is configured to perform system garbage collection on multiple segments of segments managed by the first controller. The second controller is configured to: when the first controller performs system garbage collection, perform system garbage collection on multiple segments of segments managed by the second controller. The multiple segments of the segments managed by the first controller and the multiple segments of the segments managed by the second controller are allocated within a same time period. Therefore, a quantity of times of write amplification in the solid state disk can be reduced.