Prioritization of processes for deactivating processes to reduce memory pressure condition
AssigneeHewlett-Packard Development Company, L.P.
InventorsWilliam Pohl, Walter J. Searle, Chukwuma Valentine Akpuokwe, Bradd William Szonye
Life of this patent
Estimating the term…
Abstract
It is determined that a memory pressure condition exists which limits how many active processes are allowed. There is generated and stored of a set of values corresponding to parameters for each process where the parameters are related to priority factors assigned to the associated process. There is calculated a prioritization score for each process based on the corresponding set of values. There is determined a first active process with the lowest priority based on the prioritization scores. The first active process is deactivated to reduce the memory pressure condition.
Claims20
A method for setting priorities for deactivating and reactivating processes in a computing system, the method comprising the steps of:
- determining that a memory pressure condition exists which limits how many active processes are allowed;
- generating and storing a set of values for each process related to priority factors assigned to the associated process, wherein generate and storing the set of values includes generating and storing for each process at least a value that is proportional to a measure of parent-child descendent where the measure is a number of generates between the process and original start-up processes;
- calculating a prioritization score for each process based on the corresponding set of values;
- determining a first active process with lowest priority based on the prioritization scores;
- and
- deactivating the first active process to reduce the memory pressure condition by transferring the first active process from a random access memory that contains active processes to a virtual memory storage location.
A computing apparatus, comprising:
- a processor;
- random access memory of a given size coupled to the processor adapted to store active processes;
- the processor adapted to determine that a memory pressure condition exists which limits how many active processes are allowed;
- the processor adapted to generate and causes to be stored a set of values for each process related to priority factors assigned to the associated process, wherein the processor generates and causes the storing for each process at least a value that is proportional to a measure of parent-child descendent where the measure is a number of generations between the process and original start-up processes;
- the processor adapted to calculate a prioritization score for each process based on the corresponding set of values;
- the processor adapted to identify a first active process with lowest priority based on the prioritization scores;
- the processor adapted to deactivate the first active process to reduce the memory pressure condition;
- the processor adapted to determine a deactivated process with highest priority based on the prioritization scores;
- and
- the processor adapted to activate the deactivated process with the highest priority if said activating will not increase the memory pressure condition.
An article, comprising:
- one or more non-transitory computer-readable media comprising:
- instructions for determining that a memory pressure condition exists which limits how many active processes are allowed;
- instructions for generating and storing a set of values for each process related to priority factors assigned to the associated process, wherein instructions for generating and storing the set of values for each process comprises instructions for generating and storing for each process at least a value that is proportional to a measure of parent-child descendent where the measure is a number of generations between the process and original start-up processes;
- instructions for calculating a prioritization score for each process based on the corresponding set of values;
- instructions for determining a first active process with lowest priority based on the scores;
- and
- instructions for deactivating the first active process to reduce the memory pressure condition;
- wherein the instructions for deactivating the first active process comprises instructions for transferring the first active process from a random access memory that contains active processes to a virtual memory storage location.
Dependencies are inferred from the claim text.