Caching for context switching applications
AssigneeCisco Technology, Inc.
InventorKenneth W. Batcher
Life of this patent
Estimating the term…
Abstract
Techniques for implementing caches for context switching applications are provided. A context identifier is stored in the cache to indicate the context to which data in the cache is associated. Additionally, the context can have different priorities so that storage space in the cache can be more efficiently allocated to the contexts based on their priorities.
Claims12
A method for implementing a cache for a processor executing a plurality of contexts, comprising:
- retrieving data at an address from a memory for a context, wherein each context has a priority;
- storing the data in the cache in storage space allocated for a lower priority context if storage space allocated for the context is being used;
- storing the data in the cache associated with the address;
- and
- storing in the cache associated with the address a context identifier for the context.
An apparatus for executing a plurality of contexts, comprising:
- a processor;
- a memory that stores data for the processor;
- and
- a cache that stores data associated with an address from the memory and a context identifier for a context that requested the data, wherein each context has a priority and the data is stored in the cache in storage space allocated for a lower priority context if storage space allocated for the context is being used.
A computer program product that implements a cache for a processor executing a plurality of contexts, comprising:
- computer code that retrieves data at an address from a memory for a context, wherein each context has a priority;
- computer code that stores the data in the cache in storage space allocated for a lower priority context if storage space allocated for the context is being used;
- computer code that stores the data in the cache associated with the address;
- computer code that stores in the cache associated with the address a context identifier for the context;
- and
- a computer readable medium that stores the computer codes.
An apparatus for executing a plurality of contexts, comprising:
- means for retrieving data at an address from a memory for a context, wherein each context has a priority;
- means for storing the data in the cache in storage space allocated for a lower priority context if storage space allocated for the context is being used;
- means for storing the data in the cache associated with the address;
- and
- means for storing in the cache associated with the address a context identifier for the context.
Dependencies are inferred from the claim text.