Cache memory storage space management system and method
AssigneeInternational Business Machines Corporation
InventorsHenry W. Adams, III, Thomas B. Genduso, Wan L. Leung
Life of this patent
Estimating the term…
Abstract
A mechanism is provided for supporting stack cache memory device management of POP read or PUSH write data in a computer system. The computer system further comprises a main memory and a processor associated with the stack cache memory device. The stack cache memory device includes at least one cache line having a plurality of address spaces arranged from a lowest address to a highest address. In response to the processor initiating a POP read or PUSH write operation, the mechanism provides logic for preventing placement of data in the cache which will not be reused by the processor, and for further preventing removal of data which may be reused by the processor.
Claims5
A method of managing POP read data information contained in a stack cache memory device, in a computer system having a main memory and a processor associated with the stack cache memory device, said stack cache memory device including at least one cache line containing a plurality of words having adjacent address locations, said address locations arranged from a lowest address to a highest address within said at least one cache line, said method comprising the steps of:
- (i) initiating a POP read operation with said processor to read data;
- (ii) determining if said read data is c ontaine d within said stack cache memory device;
- (iii) determining if said read data corresponds to the highest address word in said at least one cache line;
- and
- (iv)(a) passing said read data from said stack cache memory device to said processor and invalidating all of said plurality of address locations in said at least one cache line if said read data is contained within said stack cache memory device and said read data corresponds to the highest address word in said at least one cache line;
- or
- (iv)(b) directing said processor to retrieve said read data from said main memory without copying said read data to said at least one cache line if said read data is not contained within said stack cache memory device and said read data corresponds to the highest address word in said at least one cache line;
- else
- (iv)(c) not invalidating said at least one cache line if said read data does not correspond to the highest address word in said at least one cache line.
Dependencies are inferred from the claim text.