Consistency of data in persistent memory
AssigneeInternational Business Machines Corporation
InventorsMohammad Banikazemi, Bulent Abali
Life of this patent
Estimating the term…
Abstract
Consistency of data stored in persistent memory is maintained using separate commit and harden operations for a transaction. A transaction is committed with a processing device, the committing including marking an end of an atomic operation on a modified object from the transaction, creating a new copy of the modified object, and storing a mapping of the modified object to the new copy of the modified object in a recorded log. A checksum identifying the modified object is created and stored in the recorded log. The transaction is hardened by storing the modified object and the recorded log from cache into persistent memory.
Claims22
A computer-implemented method for providing consistency of data stored in persistent memory, the method comprising:
- committing, by a processing device, a transaction in cache, the committing including marking an end of an atomic operation on a modified object from the transaction, creating a new copy of the modified object after a delay that corresponds to a next write operation, and storing a mapping of the modified object to the new copy of the modified object in a recorded log;
- calculating a checksum that identifies the modified object and storing the checksum in the recorded log;
- and
- hardening the transaction, the hardening including storing the modified object and the recorded log from the cache into persistent memory.
A computer system for providing consistency of data stored in persistent memory, the computer system comprising:
- a memory having computer readable instructions;
- and a processor for executing the computer readable instructions, the instructions including:
- committing, by the processor, a transaction in cache, the committing including marking an end of an atomic operation on a modified object from the transaction, creating a new copy of the modified object after a delay that corresponds to a next write operation, and storing a mapping of the modified object to the new copy of the modified object in a recorded log;
- calculating a checksum that identifies the modified object and storing the checksum in the recorded log;
- and
- hardening the transaction, the hardening including storing the modified object and the recorded log from the cache into persistent memory.
A computer program product, the computer program product comprising a non-transitory computer readable storage medium having program code for providing consistency of data stored in persistent memory embodied therewith, the program code executable by a processor to cause:
- committing, by the processor, a transaction in cache, the committing including marking an end of an atomic operation on a modified object from the transaction, creating a new copy of the modified object after a delay that corresponds to a next write operation, and storing a mapping of the modified object to the new copy of the modified object in a recorded log;
- calculating a checksum that identifies the modified object and storing the checksum in the recorded log;
- and
- hardening the transaction, the hardening including storing the modified object and the recorded log from the cache into persistent memory.
Dependencies are inferred from the claim text.