# US 10,956,172 B2 · Memory management of data processing systems

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

- Number: US 10,956,172 B2
- Document ID: US10956172B2
- Status: Granted
- Kind: B2
- Application number: 15/962,298
- Filed: 2018-04-25
- Published: 2018-08-30
- Granted: 2021-03-23
- Earliest claimed: 2015-06-05
- Assignees: Apple Inc.
- Applicants: Apple Inc.
- Inventors: Andrew D. Myrick; David M. Chan; Jonathan R. Reeves; Jeffrey D. Curless; Lionel D. Desai; James C. McIlree; Karen A. Crippes; Rasha Eqbal
- Web page: https://patentgrep.com/patent/US10956172B2

## CPC

- G06F 9/4406: {Loading of operating system}
- G06F 3/0608: {Saving storage space on storage systems}
- G06F 3/0653: {Monitoring storage devices or systems}
- G06F 3/0673: {Single storage device}
- G06F 9/4401: Bootstrapping (security arrangements therefor G06F21/57)
- G06F 9/442: {Shutdown}
- G06F 9/485: {Task life-cycle, e.g. stopping, restarting, resuming execution (G06F9/4881 takes precedence)}
- G06F 9/5016: {the resource being the memory}
- G06F 11/0793: {Remedial or corrective actions (recovery from an exception in an instruction pipeline G06F9/3861; by retry G06F11/1402; for recovering from a failure of a protocol instance or entity H04L69/40)}
- G06F 11/1438: {Restarting or rejuvenating}
- G06F 11/3037: {where the computing system component is a memory, e.g. virtual memory, cache (accessing, addressing or allocating within memory systems or architectures G06F12/00; checking stores for correct operation G11C29/00)}
- G06F 2201/81: Threshold
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Techniques for memory management of a data processing system are described herein. According to one embodiment, a memory usage monitor executed by a processor of a data processing system monitors memory usages of groups of programs running within a memory of the data processing system. In response to determining that a first memory usage of a first group of the programs exceeds a first predetermined threshold, a user level reboot is performed in which one or more applications running within a user space of an operating system of the data processing system are terminated and relaunched. In response to determining that a second memory usage of a second group of the programs exceeds a second predetermined threshold, a system level reboot is performed in which one or more system components running within a kernel space of the operating system are terminated and relaunched.

## Claims

### Claim 1

A non-transitory machine-readable medium having instructions stored therein, which when executed by a data processing system, cause the data processing system to perform a method for memory management, the method comprising:
monitoring, by a state monitor executed by a data processing system, an operating state of a program;
in response to determining that the program transitions from an inactive state into an active state, tracking a period of time during which the program remains active; and
in response to determining that the time period exceeds a predetermined threshold that is associated with the program, performing a predetermined memory usage reduction action associated with the program,
wherein when the program is active, the program maintains an inter-process call (IPC) transaction with a kernel component of an operating system.

### Claim 2 (depends on 1)

The non-transitory machine-readable medium of claim 1, wherein performing a predetermined memory usage reduction action comprises forcing the program to transition from the active state to the inactive state.

### Claim 3 (depends on 1)

The non-transitory machine-readable medium of claim 1, wherein the method further comprises:
monitoring activities of the program while the program is active; and
in response to detecting a predetermined event performed by the program, resetting a counter recording the time period to a predetermined level.

### Claim 4 (depends on 1)

The non-transitory machine readable medium of claim 1, wherein the program, in the inactive state, operates and uses memory.

### Claim 5 (depends on 4)

The non-transitory machine readable medium of claim 4, wherein the program transitions in response to a predetermined type of transaction performed by the program.

### Claim 6 (depends on 5)

The non-transitory machine readable medium of claim 5, wherein the predetermined type of transaction is an inter-process call initiated by the program.

### Claim 7 (depends on 6)

The non-transitory machine readable medium of claim 6, wherein the inter-process call is a call to a component of an operating system.

### Claim 8 (depends on 6)

The non-transitory machine readable medium of claim 6, wherein the predetermined memory usage reduction action comprises forcing the program to transition from the active state to the inactive state.

### Claim 9 (depends on 1)

The non-transitory machine readable medium of claim 1, wherein the program in the inactive state operates with less memory than when the program is in the active state.

### Claim 10

A computer-implemented method for memory management, the method comprising:
monitoring, by a state monitor executed by a data processing system, an operating state of a program;
in response to determining that the program transitions from an inactive state into an active state, tracking a period of time during which the program remains active; and
in response to determining that the time period exceeds a predetermined threshold that is associated with the program, performing a predetermined memory usage reduction action associated with the program
wherein when the program is active, the program maintains an inter-process call (IPC) transaction with a kernel component of an operating system.

### Claim 11 (depends on 10)

The method of claim 10, wherein performing a predetermined memory usage reduction action comprises forcing the program to transition from the active state to the inactive state.

### Claim 12 (depends on 10)

The method of claim 10, further comprising:
monitoring activities of the program while the program is active; and in response to detecting a predetermined event performed by the program, resetting a counter recording the time period to a predetermined level.

### Claim 13 (depends on 10)

The method of claim 10, wherein the program, in the inactive state, operates and uses memory.

### Claim 14 (depends on 13)

The method of claim 13, wherein the transition occurs in response to a predetermined type of transaction performed by the program.

### Claim 15 (depends on 14)

The method of claim 14, wherein the predetermined type of transaction is an interprocess call initiated by the program.

### Claim 16 (depends on 15)

The method of claim 15, wherein the inter-process call is a call to a component of an operating system.

### Claim 17 (depends on 15)

The method of claim 15, wherein the predetermined memory usage reduction action comprises forcing the program to transition from the active state to the inactive state.

### Claim 18 (depends on 10)

The method of claim 10, wherein the program in the inactive state operates with less memory than when the program is in the active state.
