The invention relates to the technical field of
data compression, and particularly discloses a method for realizing
data compression in an
RAID card and an
RAID control
chip, and the method comprises the following steps: S1, receiving a plurality of IO writing commands issued by a host, and obtaining the
logic block address and length of each IO; s2, executing a merging operation on the plurality of IOs to generate a merged IO block; s3, performing a
data compression operation on the merged IO block through a data compression engine to obtain compressed data; s4, establishing a mapping relation from a
logic block address to a physical block address of the compressed data, and storing the mapping relation in a logic-to-
physical mapping table; s5, the compressed data are written into a
solid state disk through an
RAID engine, and meanwhile, logic-to-
physical mapping table
metadata are stored persistently; s6, sending a
recovery command or a zero-writing command to the
solid state disk
recovery space for the
address space which is not used after compression; the problem that an existing SSD compression scheme is high in
power consumption is solved, reliability is better, original user
data content is closer, and the obtained compression effect is better.