# US 2017/0286171 A1 · Memory management

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

- Number: US 2017/0286171 A1
- Document ID: US20170286171A1
- Status: Published application
- Kind: A1
- Application number: 15/086,631
- Filed: 2016-03-31
- Published: 2017-10-05
- Earliest claimed: 2016-03-31
- Assignees: Intel Corporation
- Inventors: Padmashree K. Apparao; Zhen Zhou; Thomas L. Carr
- Web page: https://patentgrep.com/patent/US20170286171A1

## CPC

- G06F 9/5016: {the resource being the memory}
- G06F 9/45558: {Hypervisor-specific management and integration aspects}
- G06F 9/485: {Task life-cycle, e.g. stopping, restarting, resuming execution (G06F9/4881 takes precedence)}
- G06F 9/5022: {Mechanisms to release resources}
- G06F 12/023: {Free address space management}
- G06F 2009/45583: {Memory management, e.g. access or allocation}
- G06F 2209/5019: Workload prediction
- G06F 2209/542: Intercept
- G06F 2212/1024: Latency reduction
- G06F 2212/1044: Space efficiency improvement
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

System and techniques for memory management are described herein. A request for an adjusted process-value for a process may be received. Here, the adjusted process-value may be used to compare resident processes to determine which resident process will be terminated in certain circumstances. In response to the request for the adjusted process-value, a launch-time weight for the process may be obtained. The launch-time weight may be combined with a process-value to create an adjusted process-value. The adjusted process-value may then be returned to the requestor.

## Claims

### Claim 1

A component for memory management in a device, the component comprising:
an out-of-memory (OOM) adjustor to:
obtain a launch-time weight for a process; and
combine the launch-time weight with a process-value to create an adjusted process-value; and
a low-memory killer to:
receive a memory subsystem request to free memory;
identify a process from a plurality of resident processes based on the launch-time weight; and
terminate the process.

### Claim 2 (depends on 1)

The component of claim 1, wherein to obtain the launch-weight for the process includes the OOM adjustor to:
obtain a launch time for the process, the launch time being the time taken to launch the process; and
calculate the launch-time weight from the launch time.

### Claim 3 (depends on 2)

The component of claim 2 comprising an operating system (OS) event parser to:
observe OS event messages, the event messages including process start time and process start completion time; and
record the event messages in a history database, wherein the OOM adjustor is to:
calculate the launch time from the process start time and the process start completion time form the history database; and
record the launch time for the process in a fine-tuning table.

### Claim 4 (depends on 3)

The component of claim 3, wherein the event messages include a process start type of either warm launch or cold launch, and wherein to record the launch time includes the OS event parser to record the process start type.

### Claim 5 (depends on 4)

The component of claim 4, wherein to calculate the launch-time weight includes the OOM adjustor to modify the calculation by a value corresponding to the process start type.

### Claim 6 (depends on 2)

The component of claim 2, wherein to calculate the launch-time weight includes the OOM adjustor to divide the square root of the launch time by a platform constant and then subtract a launch-time threshold.

### Claim 7 (depends on 6)

The component of claim 6, wherein the launch-time threshold is based on the time to resume a suspended application.

### Claim 8 (depends on 7)

The component of claim 7, wherein the launch-time threshold is an average of resume times for applications in the device.

### Claim 9 (depends on 6)

The component of claim 6, wherein to combine the launch-time weight with the process-value includes the OOM adjustor to subtract the launch-time weight from the process-value.

### Claim 10 (depends on 9)

The component of claim 9, wherein the weight is multiplied by a constant prior to being subtracted, the constant being a scaling factor based on the process-value.

### Claim 11

A method for memory management in a system, the method comprising:
receiving a request for an adjusted process-value for a process, the adjusted process-value used to compare resident processes to determine which resident process will be terminated;
obtaining, in response to the request for the adjusted process-value, a launch-time weight for the process;
combining the launch-time weight with a process-value to create an adjusted process-value; and
returning the adjusted process-value to the requestor.

### Claim 12 (depends on 11)

The method of claim 11, wherein obtaining the launch-weight for the process includes:
obtaining a launch time for the process, the launch time being the time taken to launch the process; and
calculating the launch-time weight from the launch time.

### Claim 13 (depends on 12)

The method of claim 12, wherein calculating the launch-time weight includes dividing the square root of the launch time by a platform constant and then subtracting a launch-time threshold.

### Claim 14 (depends on 13)

The method of claim 13, wherein the launch-time threshold is based on the time to resume a suspended application.

### Claim 15 (depends on 13)

The method of claim 13, wherein combining the launch-time weight with the process-value includes subtracting the launch-time weight from the process-value.

### Claim 16

At least one machine readable medium including instructions for memory management in a system, the instructions, when execute by a machine, cause the machine to:
receive a memory system request for a adjusted process-value for a process, the adjusted process-value used by the memory subsystem to compare resident processes to determine which resident process will be terminated;
obtain, in response to the request for the adjusted process-value, a launch-time weight for the process;
combine the launch-time weight with a process-value to create an adjusted process-value; and
return the adjusted process-value to the memory subsystem.

### Claim 17 (depends on 16)

The at least one machine readable medium of claim 16, wherein the instructions to obtain the launch-weight for the process include instructions that cause the machine to:
obtain a launch time for the process, the launch time being the time taken to launch the process; and
calculate the launch-time weight from the launch time.

### Claim 18 (depends on 17)

The at least one machine readable medium of claim 17, wherein the instructions to obtain the launch time for the process include instructions that cause the machine to:
observe operating system event messages, the event messages including process start time and process start completion time;
calculate the launch time from the process start time and the process start completion time; and
record the launch time for the process.

### Claim 19 (depends on 18)

The at least one machine readable medium of claim 18, wherein the event messages include a process start type of either warm launch or cold launch, and wherein the instructions to record the launch time include instructions that cause the machine to record the process start type.

### Claim 20 (depends on 19)

The at least one machine readable medium of claim 19, wherein the instructions to calculate the launch-time weight include instructions that cause the machine to modify the calculation by a value corresponding to the process start type.

### Claim 21 (depends on 17)

The at least one machine readable medium of claim 17, wherein the instructions to calculate the launch-time weight include instructions that cause the machine to divide the square root of the launch time by a platform constant and then to subtract a launch-time threshold.

### Claim 22 (depends on 21)

The at least one machine readable medium of claim 21, wherein the launch-time threshold is based on the time to resume a suspended application.

### Claim 23 (depends on 22)

The at least one machine readable medium of claim 22, wherein the launch-time threshold is an average of resume times for applications in the system.

### Claim 24 (depends on 21)

The at least one machine readable medium of claim 21, wherein the instructions to combine the launch-time weight with the process-value include instructions that cause the machine to subtract the launch-time weight from the process-value.

### Claim 25 (depends on 24)

The at least one machine readable medium of claim 24, wherein the weight is multiplied by a constant prior to being subtracted, the constant being a scaling factor based on the process-value.
