Cache data locking method and device and computer device

A technology of data locking and computer programs, applied in computing, electrical digital data processing, instruments, etc., can solve the problems of low utilization rate of cache memory storage space, space waste, etc., and achieve the effect of improving memory usage efficiency

Active Publication Date: 2019-06-25
ZHUHAI JIELI TECH
View PDF7 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This Cache locking method enables the system code to individually choose to lock and unlock each way of the Cache. The locking and unlocking steps are simple, but when using it, one Cache way is often locked, but in fact the locked data only occupies this Cache. A small part of the space in the path and a large amount of space in the rest are wasted, resulting in a low utilization rate of the storage space of the Cache memory

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
  • Cache data locking method and device and computer device
  • Cache data locking method and device and computer device
  • Cache data locking method and device and computer device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0038] In order to make the purpose, technical solution and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present application, and are not intended to limit the present application.

[0039] The data locking method of Cache provided by this application can be applied to such as figure 1 shown in the application environment. Wherein, the Cache controller 121 is respectively connected to the central processing unit (CPU) 110 , the Cache memory 120 and the main memory 130 . The Cache controller 121, the central processing unit 110, the Cache memory 120 and the main memory 130 may be included in a terminal, and the terminal may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers and the like.

[0040] In ...

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 a Cache data locking method and device, a computer device and a storage medium. The method comprises the following steps: receiving a data locking instruction of a CPU, wherein the data locking instruction carries a request address of to-be-locked data; according to the request address of the to-be-locked data, querying a Cache line hit by the request address in a Cache memory; and setting the line locking position in the state information segment in the Cache line hit by the inquired request address as a locking state. By adopting the method, the storage space of eachCache line of each path can be fully utilized, and the memory use efficiency of the Cache memory is effectively improved.

Description

technical field [0001] The present application relates to the technical field of cache memory, in particular to a Cache data locking method, device, computer equipment and storage medium. Background technique [0002] Cache is a high-speed cache memory located between a central processing unit (Central Processing Unit, CPU) and a main memory, and has the characteristics of small capacity and high speed. Since the design speed of the CPU is much higher than that of the memory, it takes a certain amount of time when the CPU directly accesses data from the memory, and the Cache stores the data that the CPU has just used or frequently used (for example, it can include code or other types of data) ), if the CPU needs to use this part of the data again, the CPU can directly call it from the Cache, which avoids the CPU waiting time caused by directly rereading the data from the memory, thereby improving the operating efficiency of the CPU. [0003] Since the capacity of the Cache ...

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/0877
Inventor 刘泽权
Owner ZHUHAI JIELI TECH
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