发明名称 Managing processor thread access to cache memory using lock attributes
摘要 Managing access to a cache memory includes dividing said cache memory into multiple of cache areas, each cache area having multiple entries; and providing at least one separate lock attribute for each cache area such that only a processor thread having possession of the lock attribute corresponding to a particular cache area can update that cache area.
申请公布号 US9251080(B2) 申请公布日期 2016.02.02
申请号 US201213425197 申请日期 2012.03.20
申请人 INTERNATIONAL BUSINESS MACHINES CORPORATION 发明人 Dai Xiao Jun;Das Subhendu;Gan Zhi;Yue Zhang
分类号 G06F12/00;G06F13/00;G06F13/28;G06F17/30;G06F12/08;G06F12/12 主分类号 G06F12/00
代理机构 代理人 Nichols Steven L.;VanCott Fabian
主权项 1. A method of managing access to a cache memory, comprising: dividing said cache memory into a plurality of cache areas, each said cache area comprising: multiple entries, in which: the multiple entries of a particular cache area share a plurality of identical bits at the beginning of a hash code corresponding to each entry; andeach entry comprises a keyword and a value associated with said keyword;anda representation of a data replacement order for a corresponding cache area; providing one separate lock attribute for each said cache area; maintaining a separate lock attribute for each said cache area; receiving a plurality of substantially concurrent requests to update a particular said cache area from a plurality of processor threads; granting possession of a said lock attribute corresponding to the particular said cache area to a selected said processor thread in said plurality of processor threads; allowing multiple processor threads to simultaneously possess separate lock attributes for separate cache areas; allowing said selected processor thread to update the particular said cache area only while said selected processor thread retains possession of said lock attribute corresponding to the particular said cache area, wherein updating said cache area comprises: updating a data replacement order for said cache area by updating a physical arrangement of said multiple entries in said cache area; andupdating an entry in said cache area by updating at least one of said keyword and said value; and retracting possession of said lock attribute corresponding to the particular said cache area from said selected processor thread.
地址 Armonk NY US