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

Cache optimization method, device and apparatus and readable storage medium

A cache optimization and cache line technology is applied in the fields of equipment and readable storage media, devices, and cache optimization methods, and can solve problems such as low data cache efficiency.

Active Publication Date: 2022-01-28
WEBANK (CHINA)
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The main purpose of this application is to provide a cache optimization method, device, device and readable storage medium, aiming to solve the technical problem of low data cache efficiency in the prior art

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 optimization method, device and apparatus and readable storage medium
  • Cache optimization method, device and apparatus and readable storage medium
  • Cache optimization method, device and apparatus and readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0073] It should be understood that the specific embodiments described here are only used to explain the present application, not to limit the present application.

[0074] First of all, it should be understood that when multiple threads share the same data, it is usually necessary to store the data in the main memory, and due to the existence of spatial locality, the adjacent data is more likely to be accessed in the future, in order to make full use of Cache, when the CPU usually loads the data of the main memory into the cache, it usually puts adjacent 64-bit or 32-bit data into the same cache line. However, once multiple threads read and write from the main memory at the same time When a variable in a cache line is loaded into its own cache, any modification of the cache variable by any thread will invalidate the cache that has been read and written by other threads, and the variables loaded into the same main memory cache line are only close to each other in the main memor...

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 discloses a cache optimization method, device and apparatus and a readable storage medium. The method comprises the steps that: a class file is obtained and analyzed, and an analyzed class file is obtained; field information corresponding to a first member variable with thread reading and writing in the analyzed class file is read, and the number of to-be-added variables corresponding to the first member variable is calculated according to a preset cache line size and the field information; a plurality of second member variables without thread reading and writing are adaptively added in the field information, a target class file is obtained, and the number of the plurality of second member variables is the number of the to-be-added variables; and the target class file is initialized according to a preset loading process so as to load the first member variable and the plurality of second member variables into the same main memory cache line. With the method adopted, the technical problem of low data caching efficiency is solved.

Description

technical field [0001] The present application relates to the computer technology field of financial technology (Fintech), and in particular to a cache optimization method, device, device and readable storage medium. Background technique [0002] With the continuous development of financial technology, especially Internet technology finance, more and more technologies (such as distributed, blockchain, etc.) The financial industry also has higher requirements for the distribution of to-do items. [0003] With the continuous development of computer technology, the requirements for data caching are getting higher and higher. At present, when the CPU performs data caching in the main memory, it usually loads multiple variables adjacent to the main memory into the same main memory cache line, but , once multiple threads read and write variables in the same cache line from the main memory to their own cache at the same time, any modification of the cache variable by any thread wi...

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): G06F9/50
CPCG06F9/5016G06F9/5027Y02D10/00
Inventor 赵贤云
Owner WEBANK (CHINA)