The invention discloses a method for prolonging the service life of a
solid-state disk, which comprises the following steps of: (1) adding a write request into a write
request queue in a buffer area of a
solid-state disk; (2) selecting a
data page in the write request as a sampling page; (3) calculating the
fingerprint of the sampling page and also comparing with fingerprints in a
fingerprint library so as to carry out matching; (4) if no matching
fingerprint is found, writing the rest data pages in the sampling page and the request into a
flash memory of the
solid-state disk directly; and (5) if a matching fingerprint exists, carrying out fingerprint calculation on each of the rest pages respectively and also comparing with the fingerprints in the fingerprint
library respectively so as to carry out matching: updating a corresponding mapping table directly for the
data page in which the matching fingerprint is found and writing the
data page in which the matching fingerprint is found into the solid-state disk. According to the method for prolonging the service life of the solid-state disk, the actual physical occupation of data in the solid-state disk on the
flash memory is reduced, the redundant space of a
system is indirectly increased, and the frequency of the garbage recovering operation of the
system is reduced, so that the service life of the solid-state disk is enhanced.