发明名称 Cache Management Method and Apparatus
摘要 A cache management method and apparatus are disclosed, in order to improve cache resource utilization, where the method includes receiving an access request, determining data that is to be accessed and that needs to be accessed according to the access request, determining a strength level of spatial locality of the data to be accessed, and allocating, according to the strength level of the spatial locality of the data to be accessed, a cache subunit corresponding to the level to the data to be accessed, where the method is applicable to the communications field, and may used to implement cache management.
申请公布号 US2016335177(A1) 申请公布日期 2016.11.17
申请号 US201615218826 申请日期 2016.07.25
申请人 Huawei Technologies Co., Ltd. 发明人 Huang Yongbing;Chen Mingyu;Zhang Kun
分类号 G06F12/02 主分类号 G06F12/02
代理机构 代理人
主权项 1. A cache management method, wherein multiple cache subunits are disposed in a cache, wherein each cache subunit of the multiple cache subunits comprises multiple cache lines, wherein a length of a cache line comprised in each of the cache subunits is different from a length of a cache line comprised in another cache subunit, wherein each of the cache subunits is configured to store data at a corresponding level, wherein the corresponding level is a strength level of spatial locality of the data, wherein a correspondence between the cache subunit and the corresponding level comprises that the length of the cache line comprised in the cache subunit is in a positive correlation with strength of the spatial locality of the data, and wherein the method comprises: receiving an access request; determining data that is to be accessed and that needs to be accessed according to the access request; determining a strength level of spatial locality of the data to be accessed; and allocating, according to the strength level of the spatial locality of the data to be accessed, a cache subunit corresponding to the level to the data to be accessed.
地址 Shenzhen CN