# US 2012/0254120 A1 · Logging system using persistent memory

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

- Number: US 2012/0254120 A1
- Document ID: US20120254120A1
- Status: Published application
- Kind: A1
- Application number: 13/077,574
- Filed: 2011-03-31
- Published: 2012-10-04
- Earliest claimed: 2011-03-31
- Assignees: International Business Machines Corporation
- Inventors: Ru Fang; Bin He; Hui-I Hsiao; Chandrasekaran Mohan; Yun Wang
- Web page: https://patentgrep.com/patent/US20120254120A1

## CPC

- G06F 16/2379: {Updates performed during online database operations; commit processing}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A computer program product, including: a computer readable storage device to store a computer readable program, wherein the computer readable program, when executed by a processor within a computer, causes the computer to perform operations for logging. The operations include: receiving a transaction including data and a log record corresponding to the data; writing the data to a data storage device; and writing the log record to a log space on a persistent memory device coupled to the data storage device.

## Claims

### Claim 1

A computer program product, comprising:
a computer readable storage device to store a computer readable program, wherein the computer readable program, when executed by a processor within a computer, causes the computer to perform operations for logging, the operations comprising:
receiving a transaction comprising data and a log record corresponding to the data;
writing the data to a data storage device; and
writing the log record to a log space on a persistent memory device coupled to the data storage device.

### Claim 2 (depends on 1)

The computer program product of claim 1, wherein the persistent memory device is a storage class memory device comprising phase change memory.

### Claim 3 (depends on 1)

The computer program product of claim 1, wherein the computer program product, when executed on the computer, causes the computer to perform additional operations, comprising:
writing the data at a memory buffer device before writing the data to the data storage device, wherein the memory buffer device is configured to write the data to a data file on the data storage device, wherein the memory buffer device is separate from the persistent memory device.

### Claim 4 (depends on 1)

The computer program product of claim 1, wherein the computer program product, when executed on the computer, causes the computer to perform additional operations, comprising:
asynchronously archiving the log record from the log space to the data storage device with respect to the data.

### Claim 5 (depends on 1)

The computer program product of claim 1, wherein the computer program product, when executed on the computer, causes the computer to perform additional operations, comprising:
managing a plurality of log records in the log space using a log space manager on the persistent memory device according to the log records received by the persistent memory device.

### Claim 6 (depends on 5)

The computer program product of claim 5, wherein the log space manager is further configured to:
communicate with an operating system corresponding to the logging system to initialize and remove the log space on the persistent memory device according to the log records received by the persistent memory device; and
allocate chunks on the log space for subsystems within the logging system to write the log records.

### Claim 7 (depends on 1)

The computer program product of claim 1, wherein the computer program product, when executed on the computer, causes the computer to perform additional operations, comprising:
acquiring an address of the log space on the persistent memory device;
locating a most recent checkpoint log record;
reading each log record after the checkpoint log record; and
restoring a system state.

### Claim 8

A method for logging, comprising:
receiving a transaction comprising data and a log record corresponding to the data;
writing the data to a data storage device; and
writing the log record to a log space on a persistent memory device coupled to the data storage device.

### Claim 9 (depends on 8)

The method of claim 8, wherein the persistent memory device is a storage class memory device comprising phase change memory.

### Claim 10 (depends on 8)

The method of claim 8, further comprising writing the data at a memory buffer device before writing the data to the data storage device, wherein the memory buffer device is configured to write the data to a data file on the data storage device, wherein the memory buffer device is separate from the persistent memory device.

### Claim 11 (depends on 8)

The method of claim 8, further comprising asynchronously archiving the log record from the log space to the data storage device with respect to the data.

### Claim 12 (depends on 8)

The method of claim 8, further comprising managing a plurality of log records in the log space using a log space manager on the persistent memory device according to the log records received by the persistent memory device.

### Claim 13 (depends on 12)

The method of claim 12, wherein the log space manager is further configured to:
communicate with an operating system corresponding to the logging system to initialize and remove the log space on the persistent memory device according to the log records received by the persistent memory device; and
allocate chunks on the log space for subsystems within the logging system to write the log records.

### Claim 14 (depends on 8)

The method of claim 8, further comprising:
acquiring an address of the log space on the persistent memory device;
locating a most recent checkpoint log record;
reading each log record after the checkpoint log record; and
restoring a system state.

### Claim 15

A logging system, comprising:
a persistent memory device comprising a log space; and
a data storage device coupled to the persistent memory device,
wherein the persistent memory device is configured to receive a log record in the log space corresponding to data to be written to the data storage device.

### Claim 16 (depends on 15)

The system of claim 15, wherein the persistent memory device is a storage class memory device comprising phase change memory.

### Claim 17 (depends on 15)

The system of claim 15, further comprising a memory buffer device configured to receive the data before writing the data to a data file on the data storage device, wherein the memory buffer device is separate from the persistent memory device, wherein the persistent memory device is further configured to asynchronously archive the log record from the log space to the data storage device with respect to the data.

### Claim 18 (depends on 15)

The system of claim 15, wherein the persistent memory device further comprises a log space manager configured to manage a plurality of log records in the log space on the persistent memory device according to the log records received by the persistent memory device.

### Claim 19 (depends on 18)

The system of claim 18, wherein the log space manager is further configured to:
communicate with an operating system corresponding to the logging system to initialize and remove the log space on the persistent memory device according to the log records received by the persistent memory device; and
allocate chunks on the log space for subsystems within the logging system to write the log records.

### Claim 20 (depends on 15)

The system of claim 15, further comprising a recovery subsystem configured to:
acquire an address of the log space on the persistent memory device;
locate a most recent checkpoint log record;
read each log record after the checkpoint log record; and
restore a system state.
