摘要 |
A computer system 300 has a processor 310, which stores data in volatile near random access memory 150B and nonvolatile far random access memory 151B. The volatile memory may by dynamic RAM. The nonvolatile memory may be phase change memory. The data stored in nonvolatile memory is cached in volatile memory. The computer system executes transactions and processes. The processes may be defined with a process start instruction and a process end instruction. When a cache line, which is to be written to nonvolatile memory, is written by a process or transaction, an attribute of the cache line is set. At the end of the transaction or process, the cache lines are written to the non-volatile memory. If a transaction is aborted, then the changes may be rolled back in the cache. |