发明名称 Synchronous and asynchronous discard scans based on the type of cache memory
摘要 A computational device maintains a first type of cache and a second type of cache. The computational device receives a command from the host to release space. The computational device synchronously discards tracks from the first type of cache, and asynchronously discards tracks from the second type of cache.
申请公布号 US9195598(B2) 申请公布日期 2015.11.24
申请号 US201213491795 申请日期 2012.06.08
申请人 INTERNATIONAL BUSINESS MACHINES CORPORATION 发明人 Benhase Michael T.;Gupta Lokesh M.
分类号 G06F12/08 主分类号 G06F12/08
代理机构 Konrad Raynes Davda & Victor LLP 代理人 Dutta Rabindranath;Konrad Raynes Davda & Victor LLP
主权项 1. A system coupled to a host, wherein the system is coupled to a dynamic random access memory (DRAM) cache and a flash cache, wherein the DRAM cache is smaller in size than the flash cache, the system comprising: a memory; and a processor coupled to the memory, wherein the processor performs operations, the operations comprising:receiving, from the host, a command to release space;determining whether to discard tracks from the DRAM cache or the flash cache based on comparing a size of a corresponding cache directory with a threshold size;in response to determining that the tracks in the DRAM cache have to be discarded to release the space requested by the command, synchronously discarding tracks via a synchronous discard scan process from the DRAM cache, wherein the command to release the space waits for completion while the synchronous discard scan process is being execute, and wherein in response to completion of execution of the synchronous discard scan process, responding to the host that the tracks in the DRAM cache have been released; and in response to determining that tracks in flash cache have to be discarded to release the space requested by the command, asynchronously discarding tracks via an asynchronous discard scan process from the flash cache, wherein the command to release the space does not wait for completion while the asynchronous discard scan process is being executed, wherein prior to completion of execution of the asynchronous discard scan process, responding to the host that space release operation has been started for the flash cache, and wherein the command to release the space fails via timeout if the command to release the space waits for the asynchronous discard scan process to complete.
地址 Armonk NY US