Patent ID: 8930624
Filing Date: 2015-01-06
Classification: G06F

Abstract:
1. A computer program product for managing data in a first cache and a second cache, the computer program product comprising a non-transitory computer readable storage medium having computer readable program code embodied therein that executes to perform operations, the operations comprising: storing a page in the first cache, wherein the page is associated with a first reference count in the first cache and a second reference count in a second cache; incrementing the first reference count for the page upon each reference to the page in the first cache; demoting the page from the first cache to the second cache; in response to determining that the second reference count is less than zero, setting the second reference count based on the first reference count; decrementing the second reference count for the page upon each reference to the page in the second cache; determining that the page is to be promoted from the second cache to the first cache; in response to determining that the second reference count is greater than zero, adding the page to a Least Recently Used (LRU) end of an LRU list in the first cache; and in response to determining that the second reference count is less than or equal to zero, adding the page to a Most Recently Used (MRU) end of the LRU list in the first cache.