The application provides a flash / SCM
hybrid array method based on data
reference rate, and relates to the field of computer storage. A
RAID4 architecture for storing data in
flash memory and storing check information in a new storage medium SCM is constructed, comprising: (1) initialization: the host module first initializes the
flash memory and the SCM, and then initializes the
metadata; (2) read / write request
processing: after the first step of initialization, after receiving a read / write request, entering a read / write request
processing module, which processes the read / write request initiated by the user; (3)
data recovery: after the first step of initialization, after receiving a
data recovery request, entering a
data recovery module, which completes the data
recovery work; (4) strip-based
garbage collection; using the characteristics that the SCM has better durability and read / write performance than the flash medium, the overall performance of the storage
system is improved. Using a strip-based
garbage collection strategy, data blocks with high reference times are stored in the same strip, reducing
write amplification.