# US 9,355,041 B2 · Frame buffer access tracking via a sliding window in a unified virtual memory system

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

- Number: US 9,355,041 B2
- Document ID: US9355041B2
- Status: Granted
- Kind: B2
- Application number: 14/105,015
- Filed: 2013-12-12
- Published: 2014-09-18
- Granted: 2016-05-31
- Earliest claimed: 2013-03-14
- Assignees: NVIDIA Corporation
- Applicants: Nvidia Corporation
- Inventors: John Mashey; Cameron Buschardt; James Leroy Deming; Jerome F. Duluk, Jr.; Brian Fahs
- Web page: https://patentgrep.com/patent/US9355041B2

## CPC

- G06F 3/0622: {in relation to access}
- G06F 3/0631: {by allocating resources to storage systems}
- G06F 3/0647: {Migration mechanisms}
- G06F 3/0685: {Hybrid storage combining heterogeneous device types, e.g. hierarchical storage, hybrid arrays}
- G06F 12/08: in hierarchically structured memory systems, e.g. virtual memory systems
- G06F 12/1009: using page tables, e.g. page table structures
- G06F 12/1027: using associative or pseudo-associative address translation means, e.g. translation look-aside buffer [TLB]
- G06F 2212/656: Address space sharing
- G06F 2212/684: TLB miss handling
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

One embodiment of the present invention is a memory subsystem that includes a sliding window tracker that tracks memory accesses associated with a sliding window of memory page groups. When the sliding window tracker detects an access operation associated with a memory page group within the sliding window, the sliding window tracker sets a reference bit that is associated with the memory page group and is included in a reference vector that represents accesses to the memory page groups within the sliding window. Based on the values of the reference bits, the sliding window tracker causes the selection a memory page in a memory page group that has fallen into disuse from a first memory to a second memory. Because the sliding window tracker tunes the memory pages that are resident in the first memory to reflect memory access patterns, the overall performance of the memory subsystem is improved.

## Claims

### Claim 1

A memory subsystem implemented in a processor, the memory subsystem comprising:
a memory management unit that includes a sliding window tracker configured to:
detect a first access operation associated with a first memory page group included within a sliding window;
set a first reference bit included in a reference vector and corresponding to the first memory page group to an active value, wherein an inactive value of a second reference bit in the reference vector and corresponding to a second memory page group also included in the sliding window indicates that the second memory page group has not been accessed; and
in response to the active value of the first reference bit and the inactive value of the second reference bit, cause the selection of a memory page in the second memory page group to migrate from a second memory to a first memory.

### Claim 2 (depends on 1)

The memory subsystem of claim 1, wherein the second memory is partitioned into a plurality of memory page windows, each memory page window includes one or more memory page groups, the reference vector comprises a plurality of reference bits, and each reference bit in the plurality of reference bits corresponds to a different memory page group.

### Claim 3 (depends on 2)

The memory subsystem of claim 2, wherein each of the memory page groups includes only one memory page.

### Claim 4 (depends on 2)

The memory subsystem of claim 2, wherein each of the memory page groups includes only two memory pages.

### Claim 5 (depends on 2)

The memory subsystem of claim 2, wherein each of the memory page groups includes a number of memory pages capable of being referenced by a single entry in a translation lookaside buffer.

### Claim 6 (depends on 1)

The memory subsystem of claim 1, wherein the sliding window is defined based on a virtual base address stored in a window register and associated with the first memory page group.

### Claim 7 (depends on 6)

The memory subsystem of claim 6, where in the sliding window tracker is further configured to perform one or more comparison operations between a virtual address associated with the first access operation and a plurality of bits associated with the window register to determine that the first access operation is associated with the sliding window.

### Claim 8 (depends on 1)

The memory subsystem of claim 1, wherein the sliding window tracker is further configured to perform a plurality of write operations to set each of the reference bits included in the reference vector to an inactive value prior to detecting the first access operation.

### Claim 9 (depends on 1)

The memory subsystem of claim 1, wherein the sliding window tracker is further configured to locate the first reference bit within the reference vector based on a virtual address associated with the first access operation.

### Claim 10

A computer-implemented method for selecting memory pages to migrate to a first memory from a second memory in a unified virtual memory system, the method comprising:
detecting a first access operation associated with a first memory page group included within a sliding window;
performing a write operation to set a first reference bit included in a reference vector and corresponding to the first memory page group to an active value;
in response to the active value of the first reference bit and an inactive value of a second reference bit corresponding to a second memory page group, causing the selection of a memory page in the second memory page group to migrate from the second memory to the first memory.

### Claim 11 (depends on 10)

The method of claim 10, wherein the second memory is partitioned into a plurality of memory page windows, each memory page window includes one or more memory page groups, the reference vector comprises a plurality of reference bits, and each reference bit in the plurality of reference bits corresponds to a different memory page group.

### Claim 12 (depends on 11)

The method of claim 11, wherein each of the memory page groups includes only one memory page.

### Claim 13 (depends on 11)

The method of claim 11, wherein each of the memory page groups includes only two memory pages.

### Claim 14 (depends on 11)

The method of claim 11, wherein each of the memory page groups includes a number of memory pages capable of being referenced by a single entry in a translation lookaside buffer.

### Claim 15 (depends on 11)

The method of claim 11, wherein the sliding window is defined based on a virtual base address stored in a window register and associated with the first memory page group.

### Claim 16 (depends on 15)

The method of claim 15, further comprising performing one or more comparison operations between a virtual address associated with the first access operation and a plurality of bits associated with the window register to determine that the first access operation is associated with the sliding window.

### Claim 17 (depends on 10)

The method of claim 10, further comprising performing a plurality of write operations to set each of the reference bits included in the reference vector to an inactive value prior to detecting the first access operation.

### Claim 18 (depends on 10)

The method of claim 10, further comprising locating the first reference bit within the reference vector based on a virtual address associated with the first access operation.

### Claim 19

A computing device comprising:
a first processor;
a first memory associated with the first processor;
a second processor;
a second memory associated with the second processor
wherein the second processor includes a memory management unit that includes a sliding window tracker configured to:
detect a first access operation associated with a first memory page group included within a sliding window;
perform a write operation to set a first reference bit included in a reference vector and corresponding to the first memory page group to an active value;
indicate that a second memory page group has not yet been accessed based on an inactive value of a second reference bit included in the reference vector, wherein the second memory page group also is included within the sliding window; and
in response to the active value of the first reference bit and the inactive value of the second reference bit, cause the selection of a memory page in the second memory page group to migrate from the second memory to the first memory.

### Claim 20 (depends on 19)

The computing device of claim 19, wherein the second memory is partitioned into a plurality of memory page windows, each memory page window includes one or more memory page groups, the reference vector comprises a plurality of reference bits, and each reference bit in the plurality of reference bits corresponds to a different memory page group.

### Claim 21 (depends on 10)

The method of claim 10, wherein the second memory page group is also included within the sliding window.
