# US 2015/0149514 A1 · Proactive memory allocation

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

- Number: US 2015/0149514 A1
- Document ID: US20150149514A1
- Status: Published application
- Kind: A1
- Application number: 14/253,634
- Filed: 2014-04-15
- Published: 2015-05-28
- Earliest claimed: 2013-11-22
- Assignees: Sap SE
- Inventors: Hyeong Seog Kim; Jaeyun Noh; Yong Sik Kwon; Sang Kyun Cha
- Web page: https://patentgrep.com/patent/US20150149514A1

## CPC

- G06F 12/023: {Free address space management}
- G06F 9/5016: {the resource being the memory}
- G06F 16/2282: {Tablespace storage structures; Management thereof}
- G06F 12/08: in hierarchically structured memory systems, e.g. virtual memory systems
- G06F 2209/5011: Pool
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Technologies are described for performing proactive memory allocation (e.g., pre-allocation). Proactive memory allocation (e.g., proactive memory page allocation) can be provided for applications, such as database applications. For example, an application can be associated with a free memory pool (e.g., a free memory pool containing free memory pages). A dedicated thread of the application can monitor the free memory pool and perform proactive memory allocation when needed (e.g., when the amount of memory in the pool is low). For example, the dedicated thread can obtain new free memory from the operating system and add it to the pool.

## Claims

### Claim 1

A method, implemented at least in part by a computing device, for proactive memory page allocation, the method comprising:
monitoring, during runtime, free memory pages available within an application; and
based on the monitoring, when a number of free memory pages indicates a low free memory condition, performing proactive memory page allocation comprising:
allocating one or more new free memory pages; and
adding the allocated one or more new free memory pages as additional free memory pages available for use by the application.

### Claim 2 (depends on 1)

The method of claim 1 wherein the free memory pages available within the application are stored in a free memory page pool associated with the application.

### Claim 3 (depends on 1)

The method of claim 1 wherein allocating the one or more new free memory pages comprises:
obtaining, by the application, the one or more new free memory pages from an operating system of the computing device.

### Claim 4 (depends on 1)

The method of claim 1 wherein the monitoring and the performing proactive memory page allocation are performed by a dedicated thread of the application.

### Claim 5 (depends on 1)

The method of claim 1 wherein the method is performed by a plurality of threads comprising:
one or more threads configured to perform application processing operations; and
a dedicated thread that performs the monitoring and the proactive memory page allocation, wherein the dedicated thread is independent of the one or more threads configured to perform the application processing operations.

### Claim 6 (depends on 1)

The method of claim 1 wherein the application is a database application, wherein the free memory pages available within the application are utilized by a computer process running the application, wherein the computer process comprises a plurality of threads of execution, and wherein the plurality of threads comprise:
one or more threads configured to perform database-related operations; and
a dedicated thread that performs the monitoring and the proactive memory page allocation, wherein the dedicated thread is independent of the one or more threads configured to perform the database-related operations.

### Claim 7 (depends on 1)

The method of claim 1 wherein the application is an in-memory database application that performs, at least in part, database operations related to a row store, wherein the free memory pages available within the application are used when additional memory is needed for the row store.

### Claim 8 (depends on 7)

The method of claim 7 wherein the database operations comprise:
insertion operations for inserting data to the row store;
update operations for updating data within the row store; and
delete operations for deleting data from the row store.

### Claim 9 (depends on 1)

The method of claim 1 wherein the application is executed by a plurality of threads of execution, wherein the plurality of threads comprise:
a thread dedicated to performing the monitoring and the proactive memory page allocation; and
one or more other threads configured to:
perform database-related operations; and
perform proactive memory page allocation when the low free memory condition is detected during performance of the database-related operations.

### Claim 10

A database environment comprising:
a computer server; and
a database application;
the database environment configured to perform operations for proactive memory page allocation, the operations comprising:
during runtime of the database application, by a dedicated thread:
monitoring free memory pages available within a free memory page pool, wherein the free memory page pool is associated with the database application; and
based on the monitoring, when a number of free memory pages in the free memory page pool falls below a threshold value, performing proactive memory page allocation comprising:
allocating a plurality of free memory pages; and
adding the allocated plurality of free memory pages to the free memory page pool;
wherein the proactive memory page allocation is performed until the number of free memory pages in the free memory page pool reaches the threshold value.

### Claim 11 (depends on 10)

The database environment of claim 10 wherein the database application is executed by a plurality of threads of execution comprising:
the dedicated thread that is dedicated to performing the monitoring and the performing proactive memory page allocation; and
one or more other threads that are configured to perform database-related operations.

### Claim 12 (depends on 11)

The database environment of claim 11 wherein the one or more other threads are further configured to perform proactive memory page allocation upon detecting, during performance of the database-related operations, that the free memory page pool has fallen below the threshold value.

### Claim 13 (depends on 10)

The database environment of claim 10 wherein allocating the plurality of free memory pages comprises:
obtaining, by the dedicated thread, a free memory segment from an operating system of the computer server; and
dividing the free memory segment into the allocated plurality of free memory pages.

### Claim 14 (depends on 10)

The database environment of claim 10 wherein the database application is an in-memory database application that performs, at least in part, database operations related to a row store, wherein the free memory page pool is used when additional memory is needed for the row store.

### Claim 15 (depends on 14)

The database environment of claim 14 wherein the database operations comprise:
insertion operations for inserting data to the row store;
update operations for updating data within the row store; and
delete operations for deleting data from the row store.

### Claim 16

A computer-readable storage medium storing computer-executable instructions for causing a computing device to perform a method for proactive memory page allocation, the method comprising:
monitoring, during runtime, free memory pages available within an application; and
based on the monitoring, when a number of free memory pages indicates a low free memory condition, performing proactive memory page allocation comprising:
allocating one or more new free memory pages; and
adding the allocated one or more new free memory pages as additional free memory pages available for use by the application.

### Claim 17 (depends on 16)

The computer-readable storage medium of claim 16 wherein the free memory pages available within the application are stored in a free memory page pool associated with the application.

### Claim 18 (depends on 16)

The computer-readable storage medium of claim 16 wherein allocating the one or more new free memory pages comprises:
obtaining, by the application, the one or more new free memory pages from an operating system of the computing device.

### Claim 19 (depends on 16)

The computer-readable storage medium of claim 16 wherein the application is a database application, wherein the free memory pages available within the application are utilized by a computer process running the application, wherein the computer process comprises a plurality of threads of execution, and wherein the plurality of threads comprise:
one or more threads configured to perform database-related operations; and
a dedicated thread that performs the monitoring and the proactive memory page allocation, wherein the dedicated thread is independent of the one or more threads configured to perform the database-related operations.

### Claim 20 (depends on 16)

The computer-readable storage medium of claim 16 wherein the application is executed by a plurality of threads of execution, wherein the plurality of threads comprise:
a thread dedicated to performing the monitoring and the proactive memory page allocation; and
one or more other threads configured to:
perform database-related operations; and
perform proactive memory page allocation when the low free memory condition is detected during performance of the database-related operations.
