The invention discloses a data storage method and
system for a storage
chip, and the method comprises the steps: selecting reference data and sample data from target storage data, and carrying out the analysis, and obtaining a data similarity value; the data similarity value is compared with a data similarity threshold value, and if the data similarity value is larger than or equal to the data similarity threshold value, the reference data and the sample data are classified into the same classification
data set; obtaining a residual storage space, judging whether the residual storage space is smaller than a residual storage space threshold value or not, and if yes, analyzing data in the classified
data set to obtain a
data set key value; identifying the non-key data group to generate a compression optimization
signal; based on the compression optimization
signal, judging whether the residual storage space of the
system is smaller than a residual storage space threshold after compression
processing, and if yes, analyzing the non-high
access frequency data to obtain a compression priority value; and performing optimization compression on the non-high
access frequency data according to the compression priority value.