# US 2017/0285977 A1 · Methods and apparatus to manage a process under a memory constraint

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2017/0285977 A1
- Document ID: US20170285977A1
- Status: Published application
- Kind: A1
- Application number: 15/089,439
- Filed: 2016-04-01
- Published: 2017-10-05
- Earliest claimed: 2016-04-01
- Assignees: Intel Corporation
- Applicants: Intel Corporation
- Inventors: Zhen Zhou; Padmashree K. Apparao; Thomas L. Carr
- Web page: https://patentgrep.com/patent/US20170285977A1

## CPC

- G06F 12/0638: {Combination of memories, e.g. ROM and RAM such as to permit replacement or supplementing of words in one module by words in another module (address formation of the next microinstruction G06F9/26; masking faults in memories by using spares or by reconfiguring G11C29/70)}
- G06F 3/0604: {Improving or facilitating administration, e.g. storage management}
- G06F 3/0608: {Saving storage space on storage systems}
- G06F 3/0634: {by changing the state or mode of one or more devices}
- G06F 3/0673: {Single storage device}
- G06F 12/08: in hierarchically structured memory systems, e.g. virtual memory systems
- G06F 3/061: {Improving I/O performance}
- G06F 2212/1016: Performance improvement
- G06F 2212/1041: Resource optimization
- G06F 2212/171: Portable consumer electronics, e.g. mobile phone
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Methods and apparatus to manage a process under a memory constraint are disclosed herein. An example method includes detecting that a process is to transition from a foreground mode of operation to a background mode of operation. Without transitioning the process to the background mode of operation, a projected out of memory score is calculated. Without transitioning the process to the background mode of operation, the projected out of memory score is compared to a score threshold. Without transitioning the process to the background mode of operation, the process is terminated when the projected out of memory score is greater than the score threshold.

## Claims

### Claim 1

At least one tangible computer-readable storage disk or storage device comprising instructions which, when executed, cause a processor to at least:
detect that a process is to transition from a foreground mode of operation to a background mode of operation;
without transitioning the process to the background mode of operation, calculate a projected out of memory score;
without transitioning the process to the background mode of operation, compare the projected out of memory score to a score threshold; and
without transitioning the process to the background mode of operation, terminate the process when the projected out of memory score is greater than the score threshold.

### Claim 2 (depends on 1)

The at least one tangible computer-readable storage disk or storage device as defined in claim 1, wherein the instructions, when executed, further cause the processor to:
determine a percentage of an amount of usable memory currently used by the process;
determine a projected adjustment value; and
create the projected out of memory score based on the percentage and the projected adjustment value.

### Claim 3 (depends on 2)

The at least one tangible computer-readable storage disk or storage device as defined in claim 2, wherein the instructions, when executed, further cause the processor to determine the projected adjustment value by determining a default adjustment value for a background process.

### Claim 4 (depends on 2)

The at least one tangible computer-readable storage disk or storage device as defined in claim 2, wherein the instructions, when executed, further cause the processor to determine the projected adjustment value by performing a lookup of an adjustment value currently associated with a second process operating in the background mode of operation.

### Claim 5 (depends on 4)

The at least one tangible computer-readable storage disk or storage device as defined in claim 4, wherein the background mode of operation is at least one of a visible application, a secondary server, a hidden application, a content provider, or an empty application.

### Claim 6 (depends on 1)

The at least one tangible computer-readable storage disk or storage device as defined in claim 1, wherein the instructions, when executed, further cause the processor to determine the score threshold based on a low memory threshold.

### Claim 7 (depends on 1)

The at least one tangible computer-readable storage disk or storage device as defined in claim 1, wherein the instructions, when executed, further cause the processor to, when the projected out of memory score is less than or equal to the score threshold, allow the process to transition to the background mode of operation.

### Claim 8

A method to manage memory utilization, the method comprising:
detecting that a process is to transition from a foreground mode of operation to a background mode of operation;
without transitioning the process to the background mode of operation, calculating a projected out of memory score;
without transitioning the process to the background mode of operation, comparing the projected out of memory score to a score threshold; and
without transitioning the process to the background mode of operation, terminating the process when the projected out of memory score is greater than the score threshold.

### Claim 9 (depends on 8)

The method as defined in claim 8, wherein the calculating of the projected out of memory score includes:
determining a percentage of an amount of usable memory currently used by the process;
determining a projected adjustment value; and
creating the projected out of memory score based on the percentage and the projected adjustment value.

### Claim 10 (depends on 9)

The method as defined in claim 9, wherein the determining of the projected adjustment value includes determining a default adjustment value for a background process.

### Claim 11 (depends on 9)

The method as defined in claim 9, wherein the determining of the projected adjustment value includes performing a lookup of an adjustment value currently associated with a second process operating in the background mode of operation.

### Claim 12 (depends on 11)

The method as defined in claim 11, wherein the background mode of operation is at least one of a visible application, a secondary server, a hidden application, a content provider, or an empty application.

### Claim 13 (depends on 8)

The method as defined in claim 8, further including determining the score threshold based on a low memory threshold.

### Claim 14 (depends on 8)

The method as defined in claim 8, further including, when the projected out of memory score is less than or equal to the score threshold, allowing the process to transition to the background mode of operation.

### Claim 15

A processor platform comprising:
a process state transition detector to detect that a process executed by a processor is to transition from a foreground mode of operation to a background mode of operation;
an out of memory score calculator to, without transitioning the process to the background mode of operation, calculate a projected out of memory score;
a threshold comparator to, without transitioning the process to the background mode of operation, compare the projected out of memory score to a score threshold; and
a process controller to, without transitioning the process to the background mode of operation, terminate the process when the projected out of memory score is greater than the score threshold.

### Claim 16 (depends on 15)

The processor platform as defined in claim 15, wherein the out of memory score calculator is to determine a percentage of an amount of usable memory currently used by the process, and further including:
a priority adjustor to determine a projected adjustment value, the out of memory score calculator to create the projected out of memory score based on the percentage and the projected adjustment value.

### Claim 17 (depends on 16)

The processor platform as defined in claim 16, wherein the priority adjustor determines the projected adjustment value by determining a default adjustment value for a background process.

### Claim 18 (depends on 16)

The processor platform as defined in claim 16, wherein the priority adjustor is to determine the projected adjustment value by performing a lookup of an adjustment value currently associated with a second process operating in the background mode of operation.

### Claim 19 (depends on 18)

The processor platform as defined in claim 18, wherein the background mode of operation is at least one of a visible application, a secondary server, a hidden application, a content provider, or an empty application.

### Claim 20 (depends on 15)

The processor platform as defined in claim 15, wherein the threshold comparator is to determine the score threshold based on a low memory threshold.

### Claim 21 (depends on 15)

The processor platform as defined in claim 15, wherein the process controller is to, when the projected out of memory score is less than or equal to the score threshold, allow the process to transition to the background mode of operation.
