Method for realizing replacement policies of shared second-level cache under multi-core architecture

A replacement strategy and implementation method technology, applied in the direction of instruments, electrical digital data processing, memory systems, etc., can solve problems such as cache jitter, circuit complexity reduction, conflict loss, etc., to reduce cache misses, reduce storage overhead, and reduce complexity sexual effect

Inactive Publication Date: 2010-04-14
ZHEJIANG UNIV
View PDF0 Cites 15 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Usually, the Cache replacement strategy adopted is the least recently used replacement strategy, but there are many shortcomings in the least recently used replacement strategy: First, the least recently used replacement strategy only considers the latest information accessed by the Cache, but does not consider the information accessed by the Cache. Frequency information; secondly, when the Cache capacity is smaller than the working set of the program, the Cache will show jitter, conflicts and misses will occur, which will cause the performance of the computer to degrade; moreover, the hardware implementation of the least recently used replacement strategy is quite expensive
In order to overcome the shortcomings of the least recently used replacemen...

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for realizing replacement policies of shared second-level cache under multi-core architecture
  • Method for realizing replacement policies of shared second-level cache under multi-core architecture
  • Method for realizing replacement policies of shared second-level cache under multi-core architecture

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0023] The missing counter, policy selector and block selector described in the present invention are all software modules built in the shared secondary cache, and their implementation belongs to the basic skills of those skilled in the art, so details will not be repeated here.

[0024] The specific process and examples of this method are as follows:

[0025] 1) Split the Cache group:

[0026] Each Cache group set is divided into k subgroups, k=n / m, 0

[0027] Each group sets a miss counter and a strategy selector. The miss counter is used to record the number of misses in the group. The strategy selector determines the Cache replacement strategy adopted by the group.

[0028] 2) Proximity replacement strategy, its implementation process is as follows:

[0029] Step 1: Set...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

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.

Description

technical field [0001] The invention relates to the field of memory hierarchy design, in particular to a method for realizing a replacement strategy of a shared secondary Cache under a multi-core architecture. Background technique [0002] For a shared L2 cache, the cost of a cache miss is considerable: it takes hundreds of cycles to access main memory. Usually, the Cache replacement strategy adopted is the least recently used replacement strategy, but there are many shortcomings in the least recently used replacement strategy: First, the least recently used replacement strategy only considers the latest information accessed by the Cache, but does not consider the information accessed by the Cache. Frequency information; secondly, when the Cache capacity is smaller than the working set of the program, the Cache will show jitter phenomenon, conflicts and misses will occur, which will cause the performance of the computer to degrade; moreover, the hardware implementation of th...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F12/12G06F12/0811G06F12/0897G06F12/123
Inventor 陈天洲乔福明唐兴盛胡威胡同森张少斌
Owner ZHEJIANG UNIV
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products