# US 10,956,298 B2 · Methods and apparatus to detect memory leaks in computing 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,298 B2
- Document ID: US10956298B2
- Status: Granted
- Kind: B2
- Application number: 16/234,503
- Filed: 2018-12-27
- Published: 2019-05-02
- Granted: 2021-03-23
- Earliest claimed: 2018-12-27
- Assignees: Intel Corporation
- Applicants: Intel Corporation
- Inventors: Mohammad Mejbah Ul Alam; Jason Martin; Justin Gottschlich; Alexander Heinecke; Shengtian Zhou
- Web page: https://patentgrep.com/patent/US10956298B2

## CPC

- G06F 11/3495: {for systems}
- G06F 11/073: {in a memory management context, e.g. virtual memory or cache management (memory management G06F12/00; testing of static memory units G11C29/00)}
- G06F 11/0751: {Error or fault detection not based on redundancy (power supply failures G06F1/30; network fault management H04L41/06)}
- 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 11/327: {Alarm or error message display}
- G06F 11/3409: {for performance assessment}
- G06F 11/3466: {Performance evaluation by tracing or monitoring}
- G06N 3/044: Recurrent networks, e.g. Hopfield networks
- G06N 3/0442: characterised by memory or gating, e.g. long short-term memory [LSTM] or gated recurrent units [GRU]
- G06N 3/088: Non-supervised learning, e.g. competitive learning
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

Methods, apparatus, systems and articles of manufacture are disclosed. An example system includes a memory accessed by a program of interest, a performance monitoring unit to collect first memory access information and second memory access information about an object accessed in the memory by the program of interest; and a leak detector to: determine a non-access period based on the first memory access information and an unsupervised machine learning model trained based on the program of interest; and detect a potential memory leak of the program of interest based on the second memory access information and the non-access period.

## Claims

### Claim 1

A system comprising:
a memory accessed by a program of interest;
a performance monitoring unit to collect first memory access information and second memory access information about an object accessed in the memory by the program of interest; and
a leak detector to:
determine a non-access period based on the first memory access information and an unsupervised machine learning model trained based on the program of interest; and
detect a potential memory leak of the program of interest based on the second memory access information and the non-access period.

### Claim 2 (depends on 1)

A system as defined in claim 1, wherein the unsupervised machine learning model is a recurrent neural network.

### Claim 3 (depends on 1)

A system as defined in claim 1, wherein, in response to detecting the potential memory leak, the leak detector is to remove the object from the memory.

### Claim 4 (depends on 1)

A system as defined in claim 1, wherein, in response to detecting the potential memory leak, the leak detector is to generate an alert.

### Claim 5 (depends on 1)

A system as defined in claim 1, wherein the non-access period is a predicted duration of time between consecutive accesses of the object.

### Claim 6 (depends on 1)

A system as defined in claim 1, wherein the leak detector is to determine a threshold based on the non-access period.

### Claim 7 (depends on 6)

A system as defined in claim 6, wherein the leak detector is to determine the threshold further based on a user setting.

### Claim 8 (depends on 6)

A system as defined in claim 6, wherein the leak detector is to detect the potential memory leak when the second memory access information indicates that the object has not been accessed for a duration of time that meets the threshold.

### Claim 9 (depends on 1)

A system as defined in claim 1, wherein the leak detector is to train the unsupervised machine learning model on a plurality of prior non-access periods.

### Claim 10

A non-transitory computer readable medium comprising instructions that, when executed, cause a machine to:
determine a non-access period between consecutive accesses, by a program of interest, of an object in a memory based on first memory access information;
train an unsupervised machine learning model based on the non-access period; and
detect a potential memory leak of the program of interest based on second memory access information and the unsupervised machine learning model.

### Claim 11 (depends on 10)

A non-transitory computer readable medium as defined in claim 10, wherein the unsupervised machine learning model is a recurrent neural network.

### Claim 12 (depends on 10)

A non-transitory computer readable medium as defined in claim 10, wherein the instructions, when executed, cause the machine to, in response to detecting the potential memory leak, remove the object from the memory.

### Claim 13 (depends on 10)

A non-transitory computer readable medium as defined in claim 10, wherein the instructions, when executed, cause the machine to, in response to detecting the potential memory leak, generate an alert.

### Claim 14 (depends on 10)

A non-transitory computer readable medium as defined in claim 10, wherein the non-access period is a duration of time between the consecutive accesses of the object.

### Claim 15 (depends on 10)

A non-transitory computer readable medium as defined in claim 10, wherein the instructions, when executed, cause the machine to determine a threshold based on the second memory access information and the unsupervised machine learning model.

### Claim 16 (depends on 15)

A non-transitory computer readable medium as defined in claim 15, wherein the instructions, when executed, cause the machine to determine the threshold further based on a user setting.

### Claim 17 (depends on 15)

A non-transitory computer readable medium as defined in claim 15, wherein the instructions, when executed, cause the machine to detect the potential memory leak when the object has not been accessed for a duration of time that meets the threshold.

### Claim 18 (depends on 10)

A non-transitory computer readable medium as defined in claim 10, wherein the instructions, when executed cause the machine to train the unsupervised machine learning model on a plurality of non-access periods including the non-access period.

### Claim 19

A method comprising:
determining a non-access period between consecutive accesses, by a program of interest, of an object in a memory based on first memory access information;
training an unsupervised machine learning model based on the non-access period; and
detecting a potential memory leak of the program of interest based on second memory access information and the unsupervised machine learning model.

### Claim 20 (depends on 19)

A method as defined in claim 19, wherein the unsupervised machine learning model is a recurrent neural network.

### Claim 21 (depends on 19)

A method as defined in claim 19, further including, in response to detecting the potential memory leak, removing the object from the memory.

### Claim 22 (depends on 19)

A method as defined in claim 19, further including, in response to detecting the potential memory leak, generating an alert.

### Claim 23 (depends on 19)

A method as defined in claim 19, wherein the non-access period is a duration of time between the consecutive accesses of the object.

### Claim 24 (depends on 19)

A method as defined in claim 19, further including determining a threshold based on the second memory access information and the unsupervised machine learning model.

### Claim 25 (depends on 24)

A method as defined in claim 24, further including determining the threshold further based on a user setting.
