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

Method and device for cache replacement

A cache replacement and caching technology, which is applied in the field of data processing, can solve the problems that the cache hit rate cannot be improved, and the average system access delay becomes larger.

Active Publication Date: 2020-11-06
HUAWEI TECH CO LTD +1
View PDF9 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In the method provided above, D1 is replaced at the first moment. If the data to be accessed at the second moment is D1, the cache controller replaces N1 with D1. In this case, the data in the cache does not include D1, which will lead to The cache hit rate cannot be improved, and the average memory access delay of the system also increases

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 and device for cache replacement
  • Method and device for cache replacement
  • Method and device for cache replacement

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0040] Technical solutions provided by the embodiments of the present invention can be applied as figure 2 System architecture shown in figure 2 The system illustrated may include a processor, cache, cache controller, memory and memory controller. Wherein the cache comprises one or more cache blocks. figure 2 It is a "cache includes two cache blocks" an example of. Processor, the control of the central controller. Is a high speed memory cache interposed between the processor and memory, mainly for reading and writing performance of the server. Cache blocks for storing data. A cache controller for managing a data cache, example, data may be written to the cache access. The memory controller for managing data in memory, of example, the data to be accessed can be transmitted to the cache controller. Note that the data part of the data in the cache memory. Further, if the cache contains data to be accessed, the processor may obtain the data to be accessed from the cache without acquir...

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 embodiment of the invention provides a cache replacement method and device and relates to the field of data processing technology. The cache replacement method and device are used for increasing the cache hitting rate, so that average cache access delay of a system is lowered. The method can be applied to a system comprising a processor, a cache controller, a cache and a memory, wherein the cache comprises a protection interval and an optimization interval, and data in the protection interval is not replaced. The method comprises the steps that the cache controller receives an access instruction which is sent by the processor and comprises an address of to-be-accessed data; it is determined that the to-be-accessed data is not stored in the cache according to the address of the to-be-accessed data; the cache controller reads the to-be-accessed data from the memory; the cache controller determines a to-be-replaced cache block in the optimization interval; and data in the to-be-replaced cache block is replaced with the to-be-accessed data.

Description

Technical field [0001] The present invention relates to data processing technology, and in particular, to a method and apparatus for cache replacement. Background technique [0002] The system may include a processor, cache, cache controller, memory and memory controller. Wherein the cache can include one or more cache blocks, each cache block is used to store data. After the cache controller receiving the access command sent by the processor, if it is determined to be not stored in the cache data access, i.e. a cache miss, then sends an access instruction to the memory controller, wherein the memory access instruction for instructing the memory controller obtaining data to be accessed and the cache controller sends the data to be accessed. After the cache controller receiving the data to be accessed in the memory controller transmits, to determine if the cache is full, the cache replacement process is performed, specifically: the cached data in the cache block to be replaced is ...

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 Patents(China)
IPC IPC(8): G06F12/0868
CPCG06F12/123G06F12/126
Inventor 王侃文陈迪廖小飞杨伟
Owner HUAWEI TECH CO LTD