Quality of cache management in a computer
First Claim
1. A computer program product, the computer program product comprising a computer readable storage medium having program instructions managing a cache by exploiting a cache line hierarchy embodied therewith, the program instructions executable by a processor to cause the processor to perform:
- reading cache references of a first task from a cache reference save area of a first task data structure in response to a context switch;
extracting cache references of a second task by reading cache references of the second task from a cache reference save area of a second data structure; and
asynchronously prefetching by executing a prefetch instruction definition to exploit the cache line hierarchy, the asynchronously prefetching comprising restoring hot cache lines, as cache lines of the first task, to the cache to replace cold cache lines based on the cache references, the prefetch instruction definition comprising a code defining the prefetch instruction definition for prefetching, a first field specifying a register with an identification of data items related to the first task, a base field designating a base register, and a displacement field designating a displacement,wherein the cache lines were predetermined from a plurality of cache lines associated with the first task during an extraction operation with respect to the first task and the cache line hierarchy.
1 Assignment
0 Petitions
Accused Products
Abstract
Embodiments here relate to managing a cache by exploiting a cache line hierarchy is provided. Managing the cache includes reading cache references of a first task from a cache reference save area of a first task data structure in response to a context switch. Further, managing the cache includes prefetching and restoring cache lines of the first task to the cache based on the cache references. Note that the cache lines can be predetermined from a plurality of cache lines associated with the first task during an extraction operation with respect to the first task and the cache line hierarchy.
41 Citations
7 Claims
-
1. A computer program product, the computer program product comprising a computer readable storage medium having program instructions managing a cache by exploiting a cache line hierarchy embodied therewith, the program instructions executable by a processor to cause the processor to perform:
-
reading cache references of a first task from a cache reference save area of a first task data structure in response to a context switch; extracting cache references of a second task by reading cache references of the second task from a cache reference save area of a second data structure; and asynchronously prefetching by executing a prefetch instruction definition to exploit the cache line hierarchy, the asynchronously prefetching comprising restoring hot cache lines, as cache lines of the first task, to the cache to replace cold cache lines based on the cache references, the prefetch instruction definition comprising a code defining the prefetch instruction definition for prefetching, a first field specifying a register with an identification of data items related to the first task, a base field designating a base register, and a displacement field designating a displacement, wherein the cache lines were predetermined from a plurality of cache lines associated with the first task during an extraction operation with respect to the first task and the cache line hierarchy. - View Dependent Claims (2, 3, 4, 5)
-
-
6. A system, comprising a processor and a memory storing program instructions managing a cache by exploiting a cache line hierarchy thereon, the program instructions executable by a processor to cause the system to perform:
-
reading cache references of a first task from a cache reference save area of a first task data structure in response to a context switch; extracting cache references of a second task by reading cache references of the second task from a cache reference save area of a second data structure; and asynchronously prefetching by executing a prefetch instruction definition to exploit the cache line hierarchy, the asynchronously prefetching comprising restoring hot cache lines, as cache lines of the first task, to the cache to replace cold cache lines based on the cache references, the prefetch instruction definition comprising a code defining the prefetch instruction definition for prefetching, a first field specifying a register with an identification of data items related to the first task, a base field designating a base register, and a displacement field designating a displacement, wherein the cache lines were predetermined from a plurality of cache lines associated with the first task during an extraction operation with respect to the first task and the cache line hierarchy. - View Dependent Claims (7)
-
Specification