Patent ID: 8499132

Claim:
A system for using flash memory as a secondary storage device in a storage system, the system comprising: the storage system comprising: a first set of one or more primary storage devices of a first storage device type; a second set of one or more primary storage devices of a second storage device type that is different than the first storage device type; the flash memory; and an operating system for processing access-request information regarding received access requests for various data on the first and second sets of primary storage devices, the operating system comprising a flash remapping (FR) layer for using the flash memory as a secondary storage device, the FR layer configured for: collecting, according to a set of one or more collection parameters, the access-request information regarding the received access requests; based on the collected access-request information, determining flash selected data comprising areas of data in the first set of primary storage devices exhibiting a first predetermined access pattern, the first predetermined access pattern being specified by a first set of one or more pattern parameters specified for the first set of primary storage devices; transferring flash selected data from the first set of primary storage devices to the flash memory; based on the collected access-request information, determining flash selected data comprising areas of data in the second set of primary storage devices exhibiting a second predetermined access pattern, the second predetermined access pattern being specified by a second set of one or more pattern parameters specified for the second set of primary storage devices, wherein the first predetermined access pattern specified for the first set of primary storage devices is different from the second predetermined access pattern specified for the second set of primary storage devices; and transferring flash selected data from the second set of primary storage devices to the flash memory.