# US 2004/0073764 A1 · System and method for reinforcement learning and memory management

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

- Number: US 2004/0073764 A1
- Document ID: US20040073764A1
- Status: Published application
- Kind: A1
- Application number: 10/630,525
- Filed: 2003-07-30
- Published: 2004-04-15
- Earliest claimed: 2002-07-31
- Assignees: BEA Systems, Inc.
- Inventors: Eva Andreasson
- Web page: https://patentgrep.com/patent/US20040073764A1

## CPC

- G06F 12/0253: {Garbage collection, i.e. reclamation of unreferenced memory}
- Y10S 707/99944: Object-oriented database structure
- Y10S 707/99957: Garbage collection
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- Y10S: TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS

## Abstract

A system and method for use with a virtual machine, including an adaptive, automated memory management process that takes decisions regarding which garbage collector technique should be used, based on information extracted from the currently active applications. Reinforcement learning is used to decide under which circumstances to invoke the garbage collecting processing. The learning task is specified by rewards and penalties that indirectly tell the RLS agent what it is supposed to do instead of telling it how to accomplish the task. The decision is based on information about the memory allocation behavior of currently running applications. Embodiments of the system can be applied to the task of intelligent memory management in virtual machines, such as the Java Virtual Machine (JVM).

## Claims

### Claim at position 1

1 A system for memory management comprising:
a computer system or virtual machine having a memory space; and,
wherein reinforcement learning is used to control the management of the memory space.

### Claim 2 (depends on 1)

The system of claim 1 wherein the management of the memory or storage space includes a garbage collection process.

### Claim 3 (depends on 1)

The system of claim 1 wherein the virtual machine is a Java Virtual Machine.

### Claim 4 (depends on 1)

The system of claim 1 wherein the reinforcement learning uses a temporal difference method.

### Claim 5 (depends on 4)

The system of claim 4 wherein the temporal difference method uses on-line SARSA.

### Claim 6 (depends on 5)

The system of claim 5 wherein the temporal difference method using SARSA uses tile coding.

### Claim 7

A system for memory management comprising:
a computer system including a virtual machine operating thereon;
a memory space within said computer system and accessible by the virtual machine for the runtime storage and execution of applications; and,
a garbage collector that uses reinforcement learning to control the allocation of memory to applications within said memory space.

### Claim 8 (depends on 7)

The system of claim 7 wherein the virtual machine is a Java Virtual Machine.

### Claim 9 (depends on 7)

The system of claim 7 wherein the reinforcement learning uses a temporal difference method.

### Claim 10 (depends on 9)

The system of claim 9 wherein the temporal difference method uses on-line SARSA.

### Claim 11 (depends on 10)

The system of claim 10 wherein the temporal difference method using SARSA uses tile coding.

### Claim 12

A method for memory management comprising the steps of:
analyzing the memory or storage space of a computer system or virtual machine; and,
using a reinforcement learning technique to control the management of the memory or storage space.

### Claim 13 (depends on 12)

The method of claim 12 wherein the management of the memory or storage space includes a garbage collection process.

### Claim 14 (depends on 12)

The method of claim 12 wherein the virtual machine is a Java Virtual Machine.

### Claim 15 (depends on 12)

The method of claim 12 wherein the reinforcement learning uses a temporal difference method.

### Claim 16 (depends on 15)

The method of claim 15 wherein the temporal difference method uses on-line SARSA.

### Claim 17 (depends on 16)

The method of claim 16 wherein the temporal difference method using SARSA uses tile coding.
