主权项 |
1. A method for a flash cache that stores a first group of one or more segments and a second group of one or more segments, each of the segments storing zero or more blocks, the method comprising:
for the first group of one or more segments, determining which of the blocks are obsolete, and which of the blocks are cold, wherein the obsolete blocks will no longer be accessed, and the cold blocks will not likely be accessed; and copying, from the first group of one or more segments to the second group of one or more segments, all of the blocks that are neither obsolete nor cold. |