Method and device for implementing data storage using cache
A data storage and caching technology, applied in memory systems, electrical digital data processing, memory address/allocation/relocation, etc. The problem of low hit rate of fetching data can achieve the effect of improving hit rate, improving throughput, and improving access efficiency.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0040] This embodiment is aimed at the first business scenario above.
[0041] FIG. 2 is a flow chart of storing data in a cache using a replacement algorithm in Embodiment 1 of the present invention. Referring to FIG. 1 and FIG. 2, in this embodiment, the host processor can determine the replacement algorithm to be used and notify the cache controller. The specific implementation process specifically includes the following steps:
[0042] Step 201: Pre-set the replacement algorithm corresponding to each service access type on the host processor.
[0043] In this step, for each type of service access, a replacement algorithm that can improve the hit rate of the access data is set according to the characteristics of the access data.
[0044] For example, for continuous access services, since the host processor will read the continuously stored data from the Cache in the order of first-in-first-read, in this way, if the space needs to be replaced, the data stored in the Cache f...
Embodiment 2
[0076] This embodiment is aimed at the second business scenario above.
[0077] FIG. 4 is a flow chart of storing data in a cache using a prefetching algorithm in Embodiment 2 of the present invention. Referring to FIG. 1 and FIG. 4, in this embodiment, the host processor can determine the prefetching algorithm to be used and notify the cache controller. The specific implementation process specifically includes the following steps:
[0078] Step 401: pre-setting the prefetch algorithm corresponding to each service access type on the host processor.
[0079] In this step, for each type of service access, a prefetch algorithm that can improve the hit rate of the access data is set according to the characteristics of the access data.
[0080] For example, for continuous access services, since the host processor will read continuous data from the Cache, the prefetched data should be the follow-up data immediately following the currently required read data. Therefore, the correspo...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 