Method for realizing replacement policies of shared second-level cache under multi-core architecture
暂无分享,去创建一个
The invention relates to the field of hierarchical structure design of storages and aims to provide a method for realizing replacement policies of a shared second-level cache under a multi-core architecture. The method comprises the following steps: dividing a cache group, carrying out a close replacement policy, and carrying out different replacement policies on different programs according to different access modes of programs on cores under the multi-core architecture. The invention has the advantages that in a multi-core environment, aiming at the problems existing in the least recently used replacement policy, cache blocks in the cache group are grouped, and different replacement policies are respectively used for the groups, thereby reducing the cache deletion, greatly reducing the storage cost and the complexity of circuits and enhancing the performance of the system. In a multi-core environment, different replacement policies are more adapted to different programs or threads, and therefore, the invention proposes that different cache replacement policies are performed in different divided groups.