Apparatus, system, and method for maintaining a context stack
AssigneeInternational Business Machines Corporation
InventorsLourie A. Bryan, Gregory T. Kishi, Kerri R. Shotwell, Joseph M. Swingler
Life of this patent
Estimating the term…
Abstract
An apparatus, system, and method are disclosed for maintaining a context stack. A monitor module monitors a stack size after each monitor interval for a stack of a plurality of contexts. Each context defines communications between a process and a data set and comprises a pathway for communicating with the data set and a process identifier. A stack module deallocates a context that satisfies a stack policy from the stack if the stack size is within a buffer threshold of a maximum threshold.
Claims24
A computer program product comprising a non-transitory storage device storing a computer readable program for maintaining a context stack, wherein the computer readable program when executed on a computer causes the computer to:
- monitor a stack size after each monitor interval for a stack of a plurality of existing contexts that are not associated to a process of a plurality of processes, wherein each context is associable and reusable with a plurality of processes and comprises a pathway to a data set when not associated to any process of the plurality of processes, the pathway comprising a logical volume identifier and a logical address for the data set, the context defines communications between the process and the data set through the pathway when associated to the process, and each context is returned to the stack when not associated to the process;
- deallocate a context that satisfies a stack policy from the stack if the stack size is within a buffer threshold of a maximum threshold.
An apparatus to maintain a context stack, the apparatus comprising:
- a processor;
- the processor comprising a monitor module monitoring a stack size after each monitor interval for a stack of a plurality of existing contexts that are not associated to a process of a plurality of processes, wherein each context is associable and reusable with a plurality of processes and comprises a pathway to a data set when not associated to any process of the plurality of processes, the pathway comprising a logical volume identifier and a logical address for the data set, the context defines communications between the process and the data set through the pathway when associated to the process, and each context is returned to the stack when not associated to the process;
- and
- a stack module deallocating a context that satisfies a stack policy from the stack if the stack size is within a buffer threshold of a maximum threshold.
A system to maintain a context stack, the system comprising:
- a plurality of storage devices storing a data set;
- a plurality of existing contexts, each context comprising a pathway to a data set when not associated to a process of a plurality of processes, each context is associable and reusable with a pluality of processes and comprise a pathway to a data set when not associated to any process of plurality of processes, the pathway comprising a logical volume identifier and a logical address for the data set, each context defines communications between the process and the data set through the pathway when associated to the process, and each context is returned to the stack when not associated to the process;
- a server in communication with the storage devices and comprising
- a stack of contexts;
- a monitor module monitoring a stack size for the stack after each monitor interval, the monitor interval in the range of one hundred to two hundred seconds;
- and
- a stack module deallocating a context that satisfies a stack policy from the stack if the stack size is within a buffer threshold of a maximum threshold.
A method for deploying computer infrastructure, comprising integrating a computer readable program stored on a tangible storage device into a computing system, wherein the program in combination with the computing system performs the following:
- monitor a stack size after each monitor interval for a stack of a plurality of existing contexts that are not associated to a process of a plurality of processes, wherein each context is associable and reuseable with a plurality of processes and comprises a pathway to a data set when not associated to any process of the plurality of processes, the pathway comprising a logical volume identifier and a logical address for the data set, the context defines communications between the process and the data set through the pathway when associated to the process, and each context is returned to the stack when not associated to the process;
- and
- deallocate a cleanup number of contexts satisfying a stack policy from the stack from the stack if the stack size is within a buffer threshold of a maximum threshold, wherein the stack policy is satisfied if a retention interval is expired after a creation of the context else if the context has a largest memory use of the plurality of contexts.
Dependencies are inferred from the claim text.