Unlock instant, AI-driven research and patent intelligence for your innovation.

Replacement processing method and device for cache blocks in caches

A replacement processing and cache technology, applied in the field of replacement processing of cache blocks in the cache memory, can solve the problems of unrealistic low-level cache usage, affecting memory access performance, and inefficient replacement strategies, so as to reduce access delay. , the effect of improving hit rate and reducing overhead

Active Publication Date: 2014-06-25
HUAWEI TECH CO LTD +1
View PDF5 Cites 12 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In the cache organized in an inclusive manner, since the caches at all levels only make statistics based on the access status of the cache at this level, the usage of the low-level caches may not be true, which in turn leads to inefficient replacement strategies and affects memory access performance.
For example, when the L2 cache performs cache line replacement, it may replace a cache line that is frequently hit in the L1 cache; due to the inclusive organization method, the corresponding cache line in the L1 cache will also be replaced, which will affect memory access. performance

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
  • Replacement processing method and device for cache blocks in caches
  • Replacement processing method and device for cache blocks in caches
  • Replacement processing method and device for cache blocks in caches

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0037] Such as figure 1 The shown cache hierarchy structure can adopt both an exclusive mode and an inclusive mode. The following embodiments introduce the technical solutions of the present invention for the inclusive mode, that is, the storage mode in which all data in the upper-level cache exists in the current-level cache.

[0038] In order to understand the technical solution of the present invention more clearly, first introduce the internal structure of the cache, figure 2 It is a schematic diagram of the internal structure of the cache in the embodiment of the present invention, such as figure 2 As shown, the cache generally adopts the group associative organization method. Generally, the cache is divided into several groups, and each group includes several cache lines (that is, cache blocks). If each group has n cache lines, it is called n-way set associative. The specified data in the memory can be correspondingly placed in any cache line in the specified group i...

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

An embodiment of the invention provides a replacement processing method and device for cache blocks in caches. A zone bit is added into each cache line in each cache except for an L1 cache to indicate whether data in the cache line exist in a previous cache, the situation that cache lines contained in the previous cache are replaced in the current cache is decreased as far as possible, and further expenditure caused by the fact that the cache lines in the previous cache are replaced is reduced; hit rate of the caches can be increased, and cache access delay can be reduced.

Description

technical field [0001] The embodiments of the present invention relate to data storage technologies, and in particular to a method and device for replacing and processing cache blocks in a cache memory. Background technique [0002] Cache memory (cache) was first proposed by Wilkes in 1951 to make up for the speed difference between the processor and the memory, and is the most important part of the storage system. In the prior art, the cache generally adopts a hierarchical structure, figure 1 It is a schematic diagram of the cache hierarchy structure in the prior art, such as figure 1 The three-level cache structure of L1 cache, L2 cache and L3 cache is adopted, and the access speed decreases successively, and the capacity increases successively. The L1 cache is the superior cache for the L2 cache, and the L2 cache is the superior cache for the L3 cache. If all the data in the upper-level cache exists in the current-level cache, then the organization of this cache is inc...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F12/08G06F12/126
Inventor 刘月吉张立新侯锐李晔
Owner HUAWEI TECH CO LTD