Abstract:
A data writing method includes: receiving a write command, where the write command carries a type of to-be-written data; determining, based on the type of to-be-written data, a type of storage area that is in an SSD and into which the to-be-written data is written, where the SSD includes a plurality of types of storage areas; determining, based on the type of storage area, a target storage area into which the to-be-written data is written; and writing the to-be-written data into the target storage area. In embodiments of this application, data processing efficiency can be improved.
Abstract:
A redundant array of independent disks (RAID) management method includes, when detecting that a component in a storage medium fails, recovering, based on a RAID policy, data stored in the failed component, saving the recovered data into a pre-defined redundant space of the RAID, and mapping an address of the failed component with the address of the redundant space, converting, according to the mapping, an address of to-be-accessed data comprised in an accessing request into an address within the redundant space, and accessing the to-be-accessed data from the redundant space according to the address within the redundant space.
Abstract:
A hard disk control method and a related device. According to the hard disk control method, when detecting an amount of user data stored in a storage device meets a first amount condition, converting a data storage mode of a first sub-area in a first storage area from a first mode to a second mode. The first mode and the second mode are two different modes in a single-level cell (SLC) mode, a multi-level cell (MLC) mode, a triple-level cell (TLC) mode, and a quad-level cell (QLC) mode.
Abstract:
A redundant array of independent disks (RAID) management method includes, when detecting that a component in a storage medium fails, recovering, based on a RAID policy, data stored in the failed component, saving the recovered data into a pre-defined redundant space of the RAID, and mapping an address of the failed component with the address of the redundant space, converting, according to the mapping, an address of to-be-accessed data comprised in an accessing request into an address within the redundant space, and accessing the to-be-accessed data from the redundant space according to the address within the redundant space.
Abstract:
A data accessing method includes: determining whether a preset cache area has cached data that a read target address points to when receiving a read instruction that includes the read target address; and finding a cache address corresponding to the read target address according to a first mapping relationship if the preset cache area has cached the data that the read target address points to, and reading data that the cache address points to from the preset cache area, where the first mapping relationship is used to record a correspondence between the target address and the cache address; orreading, from non-volatile storage space, the data that the read target address points to if the preset cache area has not cached the data that the read target address points to. By means of the method, data read errors caused by write interference can be reduced.
Abstract:
A method for scheduling a service processing resource, includes: setting multiple processing capability ranks of a processing resource and marking actual processing capability corresponding to each processing capability rank for the processing resource separately; calculating the service fluctuation quantity according to a change of the actual service quantity processed by the processing resource; calculating, according to the service fluctuation quantity, a reserved idle processing capability for eliminating an effect from a service fluctuation; and circularly scheduling the processing capability ranks of the processing resource according to the actual processing capability marked by each processing capability rank, wherein the reserved idle processing capability, service fluctuation quantity, and service quantity are to be processed.
Abstract:
Embodiments of the present invention provide a bandwidth adjustment method, a bus controller, and a signal convertor. The method includes: obtaining, by a bus controller, a first frequency and a first channel number; sending a bandwidth negotiation request carrying the first frequency and the first channel number to a bus controller of a first peer end to determine whether or not the bus controller of the first peer end is capable of controlling a physical component of the first peer end to receive data via a channel corresponding to the first channel number according to the first frequency; and receiving a negotiation result sent by the first peer end and controlling the physical component to transmit data according to the negotiation result. In the technical solutions of the embodiments of the present invention, bandwidth adjustment is flexible and the loss of data is avoided.
Abstract:
A method for scheduling a service processing resource, includes: setting multiple processing capability ranks of a processing resource and marking actual processing capability corresponding to each processing capability rank for the processing resource separately; calculating the service fluctuation quantity according to a change of the actual service quantity processed by the processing resource; calculating, according to the service fluctuation quantity, a reserved idle processing capability for eliminating an effect from a service fluctuation; and circularly scheduling the processing capability ranks of the processing resource according to the actual processing capability marked by each processing capability rank, wherein the reserved idle processing capability, service fluctuation quantity, and service quantity are to be processed.