# US 2010/0169708 A1 · Method and apparatus to profile ram memory objects for displacment with nonvolatile memory

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

- Number: US 2010/0169708 A1
- Document ID: US20100169708A1
- Status: Published application
- Kind: A1
- Application number: 12/345,306
- Filed: 2008-12-29
- Published: 2010-07-01
- Earliest claimed: 2008-12-29
- Inventors: John Rudelic; Jared Hulbert; Jeffrey Wang
- Web page: https://patentgrep.com/patent/US20100169708A1

## CPC

- G06F 11/3471: {Address tracing}
- G06F 12/08: in hierarchically structured memory systems, e.g. virtual memory systems
- G06F 2212/2024: Rewritable memory not requiring erasing, e.g. resistive or ferroelectric RAM
- G06F 2212/205: Hybrid memory, e.g. using both volatile and non-volatile memory
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A memory profiling system profiles memory objects in volatile memory and identifies memory objects as candidates to be stored and read directly from nonvolatile memory. The profiling system monitors memory accesses via page faults and identifies a memory object to be loaded in volatile memory. The profiling system uses page faults to determine a page fault type and a write frequency for the memory object, and determines the memory object's memory access type. The profiling system determines whether the object's memory access type meets the capabilities of the nonvolatile memory technology. If the memory access type meets the nonvolatile memory technology capabilities, the profiling system identifies the memory object as a candidate to be transitioned to and read directly from nonvolatile memory (e.g., NOR and PCM). The profiling system stores the memory object candidates in nonvolatile memory such that the memory objects are read directly from nonvolatile memory.

## Claims

### Claim 1

A method comprising:
monitoring memory accesses to a memory object in volatile memory to collect and create profiling data;
determining whether the memory object in volatile memory is a candidate to be stored and read directly from nonvolatile memory using the profiling data; and
storing the memory object candidate in nonvolatile memory such that the memory object is read directly from nonvolatile memory.

### Claim 2 (depends on 1)

The method of claim 1, wherein monitoring memory accesses to a memory object in volatile memory comprises:
monitoring activity of a page table;
detecting a page fault in the page table activity; and
using the page fault to identify a memory object to be loaded into volatile memory.

### Claim 3 (depends on 1)

The method of claim 1, wherein determining whether the memory object in volatile memory is a candidate to be stored and read directly from nonvolatile memory comprises:
determining a write frequency for the memory object, wherein the write frequency is a number of times the memory object is written to during a profiling time period;
determining whether the write frequency meets a write threshold; and
identifying the memory object is a candidate to be read directly from nonvolatile memory if the write frequency meets the write threshold.

### Claim 4 (depends on 3)

The method of claim 3, wherein determining whether the write frequency meets the write threshold comprises:
determining whether the write frequency is equal to or less than a PCM threshold, wherein the PCM threshold is the current write performance rate of a PCM technology; and
identifying the memory object is a candidate to be read directly from nonvolatile memory if the write frequency is equal to or less than the PCM threshold.

### Claim 5 (depends on 4)

The method of claim 4, further comprising:
determining whether the write frequency exceeds a NOR threshold, wherein the first NOR threshold is the current write performance rate of a NOR memory technology; and
identifying the memory object is a candidate to be read directly from PCM memory if the write frequency exceeds the NOR threshold.

### Claim 6 (depends on 5)

The method of claim 5, further comprising:
identifying the memory object is a candidate to be read directly from at least one of NOR memory and PCM memory if the write frequency does not exceed the NOR threshold.

### Claim 7 (depends on 3)

The method of claim 3, wherein determining a write frequency for the memory object comprises:
loading the memory object as a read only memory object;
monitoring attempts to write to the memory object for a period of time, wherein the period of time is a user-defined time period; and
determining a number of times the memory object is written to during the period of time.

### Claim 8 (depends on 1)

The method of claim 1, wherein storing the memory object candidate in nonvolatile memory such that the memory object is read directly from nonvolatile memory comprises:
reconfiguring a system memory based on the profiling data, wherein reconfiguring the system memory includes decompressing the memory object in nonvolatile memory and storing the memory object as an uncompressed memory object in nonvolatile memory.

### Claim 9 (depends on 1)

The method of claim 1, wherein storing the memory object candidate in nonvolatile memory such that the memory object is read directly from nonvolatile memory comprises:
formatting the profiling data in a format used to rebuild a system memory; and
providing the formatted data to rebuild the system memory.

### Claim 10

A machine-accessible storage medium that provides instructions that, if executed by a machine, will cause the machine to perform operations, comprising:
monitoring memory accesses to a memory object in volatile memory to collect and create profiling data;
determining whether the memory object in volatile memory is a candidate to be stored and read directly from nonvolatile memory using the profiling data; and
storing the memory object candidate in nonvolatile memory such that the memory object is read directly from nonvolatile memory.

### Claim 11 (depends on 10)

The machine-accessible storage medium of claim 10, wherein monitoring memory accesses to a memory object in volatile memory comprises:
monitoring activity of a page table;
detecting a page fault in the page table activity; and
using the page fault to identify a memory object to be loaded into volatile memory.

### Claim 12 (depends on 10)

The machine-accessible storage medium of claim 10, wherein determining whether the memory object in volatile memory is a candidate to be stored and read directly from nonvolatile memory comprises:
determining a write frequency for the memory object, wherein the write frequency is a number of times the memory object is written to during a profiling time period;
determining whether the write frequency meets a write threshold; and
identifying a memory object is a candidate to be read directly from nonvolatile memory if the write frequency meets the write threshold.

### Claim 13 (depends on 12)

The machine-accessible storage medium of claim 12, wherein determining whether the write frequency meets the write threshold comprises:
determining whether the write frequency is equal to or less than a PCM threshold, wherein the PCM threshold is the current write performance rate of a PCM technology; and
identifying the memory object is a candidate to be read directly from nonvolatile memory if the write frequency is equal to or less than the PCM threshold.

### Claim 14 (depends on 13)

The machine-accessible storage medium of claim 13, further comprising:
determining whether the write frequency exceeds a NOR threshold, wherein the first NOR threshold is the current write performance rate of a NOR memory technology; and
identifying the memory object is a candidate to be read directly from PCM memory if the write frequency exceeds the NOR threshold.

### Claim 15 (depends on 14)

The machine-accessible storage medium of claim 14, further comprising:
identifying the memory object is a candidate to be read directly from at least one of NOR memory and PCM memory if the write frequency does not exceed the NOR threshold.

### Claim 16 (depends on 12)

The machine-accessible storage medium of claim 12, wherein determining a write frequency for the memory object comprises:
loading the memory object as a read only memory object;
monitoring attempts to write to the memory object for a period of time, wherein the period of time is a user-defined time period; and
determining a number of times the memory object is written to during the period of time.

### Claim 17 (depends on 12)

The machine-accessible storage medium of claim 12, wherein storing the memory object candidate in nonvolatile memory such that the memory object is read directly from nonvolatile memory comprises:
reconfiguring a system memory based on the profiling data, wherein reconfiguring the system memory includes decompressing the memory object in nonvolatile memory and storing the memory object as an uncompressed memory object in nonvolatile memory.

### Claim 18

A system comprising:
a processor;
a nonvolatile memory coupled to the processor; and
a random access memory coupled to the processor to transition a memory object stored in the random access memory to nonvolatile memory, wherein the transitioned memory object is accessed directly from the nonvolatile memory.

### Claim 19 (depends on 18)

The system of claim 18, further comprising:
a memory management unit associated with the processor to generate a page fault if a memory object is not available in the random access memory, wherein the random access memory uses the page fault to identity the one or more memory objects to transition to the nonvolatile memory.

### Claim 20 (depends on 18)

The system of claim 18, wherein the random access memory is further to reconfigure a system memory map to transition the memory object stored in the random access memory to nonvolatile memory.
