Logging system using persistent memory
AssigneeInternational Business Machines Corporation
InventorsRu Fang, Bin He, Hui-I Hsiao, Chandrasekaran Mohan, Yun Wang
Life of this patent
Estimating the term…
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.
Claims15
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;
- separating the data and the log record corresponding to the data;
- writing the data to a memory buffer on a main memory device for at least temporary storage in the main memory device;
- writing the log record directly to a log space on a persistent memory device that is separate from the main memory device for at least temporary storage in the persistent memory device, wherein the persistent memory device is a storage class memory device comprising phase change memory, wherein the log record is written to the persistent memory device without any intervening cache of the log record in the memory buffer storing the data, a log buffer, and/or other volatile memory device;
- storing the data from the memory buffer to a data file on a data storage device via a first write operation;
- and
- archiving the log record to a log file on the data storage device via a second write operation that is separate from the first write operation in response to a predetermined condition of the log space,
- wherein the second write operation is asynchronous with respect to the first write operation, and
- wherein the data storage device, the main memory device, and the persistent memory device are different devices.
A method for logging, comprising:
- receiving a transaction comprising data and a log record corresponding to the data;
- separating the data and the log record corresponding to the data;
- writing the data to a memory buffer on a main memory device for at least temporary storage in the main memory device;
- writing the log record directly to a log space on a persistent memory device that is separate from the main memory device for at least temporary storage in the persistent memory device, wherein the persistent memory device is a storage class memory device comprising phase change memory, wherein the log record is written to the persistent memory device without any intervening cache of the log record in the memory buffer storing the data, a log buffer, and/or other volatile memory device;
- storing the data from the memory buffer to a data file on a data storage device via a first write operation;
- and
- archiving the log record to a log file on the data storage device via a second write operation that is separate from the first write operation in response to a predetermined condition of the log space,
- wherein the second write operation is asynchronous with respect to the first write operation, and
- wherein the data storage device, the main memory device, and the persistent memory device are different devices.
A logging system, comprising:
- a processor configured to:
- receive a transaction comprising data and a log record corresponding to the data;
- and
- separate the data and the log record corresponding to the data;
- a main memory device comprising a data buffer configured to at least temporarily store the data corresponding to the transaction;
- a persistent memory device comprising a log space configured to directly and at least temporarily store the log record corresponding to the transaction without any intervening cache of the log record in a log buffer, the memory buffer and/or other volatile memory device, wherein the persistent memory device is a storage class memory device comprising phase change memory;
- a data storage device coupled to the persistent memory device and the main memory device, wherein the data storage device comprises:
- a data file configured to store the data from the memory buffer on the main memory device in a first operation;
- and
- a log file configured to archive the log record from the log space on the persistent memory device in a second write operation file and in response to a predetermined condition of the log space, wherein the second write operation is asynchronous with respect to the first write operation.
Dependencies are inferred from the claim text.