Patent ID: 7594073

Claim:
A method for a computing system to transition to a low power state, comprising: receiving a request to write memory content to a non-volatile storage device for the transition to the low power state; generating an image for the memory content; sending the memory image to the non-volatile storage device in at least one write (“disk write”), each write including a block of data, size of the block of data, and logical block address (LBA) of the block of data on the non-volatile storage device (“disk LBA”); intercepting the disk write; directing the disk write to a non-volatile cache; writing the block of data included in the disk write to the non-volatile cache, including determining that the block of data included in the disk write is contiguous with data included in a disk write for the transition to the low power state that immediately precedes the disk write (“previous disk write”), wherein the data included in the previous disk write corresponds to an already existing entry of a mapping table correlating data in the non-volatile cache to data to be written to the non-volatile storage device, and in response to the determining, merging the block of data with the data in the previous disk write to form a larger block of data on the non-volatile cache, and modifying the already existing entry of the mapping table to describe a size of the larger block of data.