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.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


