发明授权
- 专利标题: Contention-free approximate LRU for multi-threaded access
- 专利标题(中): 无漏洞的近似LRU用于多线程访问
-
申请号: US14302558申请日: 2014-06-12
-
公开(公告)号: US09529731B1公开(公告)日: 2016-12-27
- 发明人: Grant Wallace , Philip Shilane
- 申请人: EMC Corporation
- 申请人地址: US MA Hopkinton
- 专利权人: EMC Corporation
- 当前专利权人: EMC Corporation
- 当前专利权人地址: US MA Hopkinton
- 代理机构: Blakely, Sokoloff, Taylor & Zafman LLP
- 主分类号: G06F12/12
- IPC分类号: G06F12/12 ; G06F12/08
摘要:
Exemplary methods for managing cache based on approximate least recently used (LRU) cache entries include maintaining a distributed data structure (DDS) of data elements, each corresponding to a cache entry of a plurality of cache entries, wherein each data element can be atomically accessed by multiple threads. In response to a cache eviction request from a first thread, determining an approximately LRU cache entry among the cache entries based on values atomically accessed from a first subset of the DDS of data elements, wherein the first subset of the DDS is atomically accessed using an atomic instruction without acquiring a lock to prevent another thread from accessing the first subset of the DDS to determine other approximately LRU cache entries among the cache entries, while allowing a second thread accessing a second subset of the DDS substantially concurrently. Evicting the determined approximately LRU cache entry.
信息查询