Data caching system and method

A data cache, data technology, applied in memory systems, electrical digital data processing, instruments, etc.

Active Publication Date: 2018-08-03
WARECONN TECH SERVICE (TIANJIN) CO LTD
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, these algorithms are deficient because they cache the most recently used content rather than the most frequently used content

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
  • Data caching system and method
  • Data caching system and method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0014] see figure 1 , is a system architecture diagram of a cache memory management system in a preferred embodiment of the present invention. The cache memory management system 10 is a programmable system running on a processor. The processor is connected with a cache memory 30 and a central processing unit CPU20. The cache memory 30 couples the cache memory management system 10 to a main memory 40 .

[0015] The cache memory management system 10 receives a read instruction from the CPU 20 , reads data from the cache memory 30 when there is a cache hit, and reads data from the main memory 40 when there is a cache miss, and stores the read data into the cache memory 30 .

[0016] The data in the cache memory management system 10 is marked with a weight value, and the weight value is used to represent the number of times the data is read in the cache memory 30 . The data in the cache memory 30 has 5 states as follows: the data with a weight value greater than 2 is considered...

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 provides a data cache system and method. The system is connected with a cache memory and a central processing unit CPU, and the data in the cache memory is marked with a weight value, which is used to represent the number of times the data is read in the cache memory. The system includes: a receiving module, used to receive the read data request sent by the CPU; a read module, used to read the corresponding data according to the read data request; a weight value calculation module, used for cache hit The weight value of the data read in the cache memory is increased by 1. When the space of the cache memory is full, the data with a weight value of zero will be randomly selected for replacement when the cache memory needs to be replaced next time. The data caching system and method of the present invention caches the most frequently used content in the cache memory instead of the recently used content, so that it is more rapid and effective to determine the content to be replaced in the cache memory.

Description

technical field [0001] The invention relates to a data cache system and method, in particular to a data cache system and method for reading the most frequently used content in a cache memory. Background technique [0002] When a data read request is received, the reading speed of the cache memory is relatively fast, so data is first read from the cache memory. If the required read content is already in the cache memory, it is called "cache hit". If the required read content is not in the cache memory, it is called "cache miss". When a cache miss occurs, it is necessary to read content from the main memory and store the read content in the cache memory to improve the speed of next reading. Since the cache memory (cache) memory is usually smaller than the main memory they are coupled to, if the cache memory space is full, it is necessary to replace part of the content in time. At this time, a replacement algorithm needs to be used to determine which of the cache memory shoul...

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/122G06F12/121
Inventor 郑祥廷
Owner WARECONN TECH SERVICE (TIANJIN) CO LTD
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