Direct access of cache lock set data without backing memory
AssigneeInternational Business Machines Corporation
InventorsRussell Hoover, Eric Mejdrich, Sandra Woodward
Life of this patent
Estimating the term…
Abstract
Methods, apparatus, and systems for quickly accessing data residing in a cache of one processor, by another processor, while avoiding lengthy accesses to main memory are provided. A portion of the cache may be placed in a lock set mode by the processor in which it resides. While in the lock set mode, this portion of the cache may be accessed directly by another processor without lengthy “backing” writes of the accessed data to main memory.
Claims20
A method of transferring data between multiple processors without writing the data to external memory, comprising:
- allocating a plurality of cache lines of a cache residing on a first processor for use in a lock set;
- storing, by the first processor, data in one or more cache lines allocated to the lock set;
- providing, by the first processor, an indication of the availability of the data stored in the one or more cache lines;
- and
- transferring data stored in the one or more cache lines from the first processor to the second processor without writing the data stored in the one or more cache lines to the external memory.
A method for transferring data generated by a central processing unit (CPU) to a graphics processing unit (GPU) without writing the generated data to external memory, comprising:
- allocating a plurality of cache lines of a cache residing on the CPU for use in a lock set;
- storing, by the CPU, data in one or more cache lines allocated to the lock set;
- providing, by the CPU, an indication to the GPU of the availability of the data stored in the one or more cache lines;
- receiving, by the CPU, a request from the GPU for data stored in one or more cache lines allocated to the lock set;
- and
- without writing the data stored in the one or more cache lines to the external memory, transferring the data stored in the one or more cache lines from the CPU to the GPU and processing the data by the GPU.
A processor comprising:
- one or more processing cores;
- and
- at least one shared cache accessible by the processing cores, the shared cache comprising a plurality of cache lines allocatable to a lock set, wherein data stored in cache lines allocated to the lock set is transferred directly to an external processor without writing the data to external memory.
A system, comprising:
- main memory;
- a memory controller for accessing the main memory;
- a first processor capable of accessing the main memory via the memory controller, the first processor having at least one cache capable of being placed in a lock set mode wherein a plurality of cache lines of the cache are allocated to a lock set;
- and
- a second processor capable of accessing data stored in one or more cache lines allocated to a lock set of the cache on the first processor without the data being written out to main memory.
Dependencies are inferred from the claim text.