| CPC G06F 3/061 (2013.01) [G06F 3/0656 (2013.01); G06F 3/0679 (2013.01); G06F 12/0802 (2013.01); G06F 2212/1056 (2013.01); G06F 2212/401 (2013.01); H04L 9/0643 (2013.01)] | 20 Claims |

|
1. A computer-implemented method of a storage system, comprising:
receiving a data segment and metadata associated with the data segment to be stored in the storage system;
storing the data segment and the metadata in a persistent storage device of the storage system;
compressing the data segment using a predetermined compression algorithm to generate a compressed data segment; and
on a condition that storing a concatenation of the metadata and the compressed data segment requires fewer pages of a solid-state drive (SSD) cache device of a storage system than storing a concatenation of the metadata and the data segment:
storing the concatenation of the metadata and the compressed data segment to a page boundary of the SSD; and
setting a flag in the metadata to indicate that the compressed data segment has been compressed using the predetermined compression algorithm, such that when the compressed data segment is read from the SSD cache device, the compressed data segment can be decompressed; and
on a condition that storing the metadata and the compressed data segment in the SSD, wherein the concatenation of the metadata and the compressed data segment are aligned to a page boundary of the SSD, does not require fewer pages of the SSD than storing a concatenation of the metadata and the data segment, storing the concatenation of the metadata and the data segment to the page boundary of the SSD.
|