# US 2010/0169602 A1 · Method and Apparatus for Efficient Memory Placement

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

- Number: US 2010/0169602 A1
- Document ID: US20100169602A1
- Status: Published application
- Kind: A1
- Application number: 12/433,763
- Filed: 2009-04-30
- Published: 2010-07-01
- Earliest claimed: 2008-12-29
- Inventors: Jared E Hulbert; Hongyu Wang; John C Rudelic; August Camber; Edward Patriquin
- Web page: https://patentgrep.com/patent/US20100169602A1

## CPC

- G06F 12/0246: {in block erasable memory, e.g. flash memory}
- G06F 12/0638: {Combination of memories, e.g. ROM and RAM such as to permit replacement or supplementing of words in one module by words in another module (address formation of the next microinstruction G06F9/26; masking faults in memories by using spares or by reconfiguring G11C29/70)}
- G06F 2212/7202: Allocation control and policies
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A memory profiling system profiles memory objects in various memory devices and identifies memory objects as candidates to be moved to a more efficient memory device. Memory object profiles include historical read frequency, write frequency, and execution frequency. The memory object profile is compared to parameters describing read and write performance of memory types to determine candidate memory types for relocating memory objects. Memory objects with high execution frequency may be given preference when relocating to higher performance memory devices.

## Claims

### Claim 1

A method comprising:
profiling read frequency and write frequency of a memory object;
comparing the read frequency and write frequency of the memory object to parameters describing different memory types to determine a candidate memory type; and
identifying the memory object as a candidate to be relocated to a memory device of the candidate memory type.

### Claim 2 (depends on 1)

The method of claim 1 further comprising relocating the memory object to the memory device of the candidate memory type.

### Claim 3 (depends on 2)

The method of claim 2 wherein relocating the memory object includes moving the memory object from a volatile memory device to a nonvolatile memory device.

### Claim 4 (depends on 2)

The method of claim 2 wherein relocating the memory object includes moving the memory object from a nonvolatile memory device to a volatile memory device.

### Claim 5 (depends on 2)

The method of claim 2 wherein relocating the memory object includes rebuilding a system memory map that allows the memory object to be accessed directly from the memory device of the candidate memory type.

### Claim 6 (depends on 5)

The method of claim 5 wherein relocating the memory object further includes storing the memory object as an uncompressed memory object.

### Claim 7 (depends on 5)

The method of claim 5 wherein relocating the memory object further includes storing the memory object as a compressed memory object.

### Claim 8 (depends on 1)

The method of claim 1 wherein comparing the read frequency and write frequency of the memory object to parameters describing different memory types to determine a candidate memory type comprises:
determining a first group of memory types having write parameters that most closely match the write frequency of the memory object; and
from within the first group of memory types, determining the candidate memory type having a read parameter that most closely matches the read frequency of the memory object.

### Claim 9 (depends on 1)

The method of claim 1 wherein profiling comprises:
monitoring page table activity;
receiving a page fault;
detecting read, write, or execute activity; and
compiling write frequency, read frequency, and execute frequency of the memory objects.

### Claim 10

A machine-accessible medium having instructions stored thereon that when accessed result in the machine performing:
monitoring page table activity in a virtual memory system; and
logging profiling data describing read frequency and write frequency of a memory page, the profiling data to be used to determine whether the memory page should be relocated to a different memory type.

### Claim 11 (depends on 10)

The machine-accessible medium of claim 10 wherein the instructions when accessed further result in the machine performing:
detecting a page fault; and
determining if a profiling period has expired.

### Claim 12 (depends on 10)

The machine-accessible medium of claim 10 wherein the instructions when accessed further result in the machine performing relocating the memory page to a disk.

### Claim 13 (depends on 10)

The machine-accessible medium of claim 10 wherein the instructions when accessed further result in the machine performing:
determining a candidate memory type that matches the read frequency and the write frequency of the memory page.

### Claim 14

A system comprising:
a processor;
a plurality of memory devices of different types; and
a memory manager to profile read frequency and write frequency of memory objects and to determine whether the memory objects would be better suited to reside in different ones of the plurality of memory devices.

### Claim 15 (depends on 14)

The system of claim 14 wherein the memory manager further profiles execution frequencies of the memory objects.

### Claim 16 (depends on 15)

The system of claim 15 further comprising a logger to produce a log of the read, write, and execute frequencies of the memory objects.

### Claim 17 (depends on 15)

The system of claim 15 wherein the memory manager includes a page fault handler to detect read operations, write operations, and code executions when page faults occur.

### Claim 18 (depends on 14)

The system of claim 14 wherein the memory manager includes a memory relocator to relocate memory objects.

### Claim 19 (depends on 14)

The system of claim 14 wherein the plurality of memory devices includes at least one phase change memory (PCM) device.

### Claim 20 (depends on 14)

The system of claim 14 wherein the plurality of memory devices includes at least one FLASH memory device.
