# US 2020/0004691 A1 · Systems and Methods for Managing Dynamic Random Access Memory (DRAM)

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

- Number: US 2020/0004691 A1
- Document ID: US20200004691A1
- Status: Published application
- Kind: A1
- Application number: 16/570,700
- Filed: 2019-09-13
- Published: 2020-01-02
- Earliest claimed: 2017-03-14
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Jani Kokkonen
- Web page: https://patentgrep.com/patent/US20200004691A1

## CPC

- G06F 12/1036: for multiple virtual address spaces, e.g. segmentation (G06F12/1045 takes precedence)
- G06F 9/45545: {Guest-host, i.e. hypervisor is an application program itself, e.g. VirtualBox}
- G06F 9/45558: {Hypervisor-specific management and integration aspects}
- G06F 12/023: {Free address space management}
- G06F 12/0284: {Multiple user address space allocation, e.g. using different base addresses (interprocessor communication G06F15/163)}
- G06F 12/109: for multiple virtual address spaces, e.g. segmentation (G06F12/1036 takes precedence)
- G06F 13/1668: {Details of memory controller}
- G06F 2009/45583: {Memory management, e.g. access or allocation}
- G06F 2212/1016: Performance improvement
- G06F 2212/152: Virtualized environment, e.g. logically partitioned system
- G06F 2212/657: Virtual address space management
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

An apparatus for managing a dynamic random access memory (DRAM) includes a processor configured to map a plurality of clusters of banks of the DRAM to a plurality of applications executing on a common virtual machine (VM), where the common VM runs on a host operating system (OS) of a host computing device, and where each of the clusters of banks is used exclusively by each mapped application.

## Claims

### Claim 1

An apparatus for managing a dynamic random access memory (DRAM), comprising:
a DRAM comprising a plurality of clusters of banks, wherein each of the clusters comprise at least one bank;
a memory configured to store instructions; and
a processor coupled to the memory, wherein the instructions cause the processor to be configured to:
identify a plurality of applications that are executing on a common virtual machine (VM), wherein the common VM runs on a host operating system (OS) of a host computing device; and
map a first cluster of the clusters to a first application of the applications, wherein the DRAM comprises the first cluster, and wherein all first banks in the first cluster is exclusively used by the first application.

### Claim 2 (depends on 1)

The apparatus of claim 1, wherein the instructions further cause the processor to execute a hypervisor that is configured to:
run the common VM;
translate mapping of clusters of banks to first physical addresses;
provide a translated mapping of the clusters to a memory controller, wherein the memory controller controls the DRAM; and
perform, based on the translated mapping, the mapping of the clusters.

### Claim 3 (depends on 2)

The apparatus of claim 2, wherein the hypervisor is further configured to map guest physical addresses used by the hypervisor to second physical addresses of the DRAM.

### Claim 4 (depends on 1)

The apparatus of claim 1, wherein the instructions further cause the processor to be configured to allocate a second cluster of the clusters to a second VM that runs on the host OS, wherein the second clusters comprise a plurality of second banks of the DRAM, wherein the second VM is configured to map the second cluster to a corresponding application of a plurality of second applications executing on the second VM, and wherein each member of the second clusters defines the second banks of the DRAM for exclusive use by each corresponding mapped application of the second applications.

### Claim 5 (depends on 1)

The apparatus of claim 1, wherein the instructions further cause the processor to be configured to uniquely map a third cluster of the clusters of banks to a plurality of third applications, wherein the third applications are executing on a plurality of VMs running on the host OS, and wherein each of the third applications has exclusive use of a corresponding mapped third cluster.

### Claim 6 (depends on 1)

The apparatus of claim 1, wherein the instructions further cause the processor to be configured to map the first cluster to the first application according to a scheduling policy.

### Claim 7 (depends on 1)

The apparatus of claim 1, wherein the instructions further cause the processor to be configured to select same locations of bits of the guest physical addresses from actual physical addresses, wherein the same location of bits are indicative of the clusters of banks, and wherein the guest physical addresses are used by the common VM.

### Claim 8 (depends on 1)

The apparatus of claim 1, wherein the instructions further cause the processor to be configured to:
detect, using the host OS, a virtual memory page fault associated with a certain application of the applications;
identify a fourth cluster of the clusters of banks mapped to the certain application; and
allocate at least one additional physical memory page to the certain application from the fourth cluster.

### Claim 9 (depends on 8)

The apparatus of claim 8, wherein the instructions further cause the processor to be configured to:
identify that an invalid cluster is mapped to the certain application; and
allocate at least one additional virtual memory page to the certain application from one of a plurality of default clusters allocated to the common VM.

### Claim 10 (depends on 8)

The apparatus of claim 8, wherein the instructions further cause the processor to be configured to:
check bits indicative of the fourth cluster in a guest physical address; and
identify the fourth cluster based on checking the bits.

### Claim 11 (depends on 8)

The apparatus of claim 8, wherein the instructions further cause the processor to be configured to:
check a hyp prefetch fault address register (HPFAR) register; and
identify the fourth cluster based on checking the HPFAR.

### Claim 12 (depends on 1)

The apparatus of claim 1 wherein at least one of the first applications is mapped to the first clusters, and wherein the first clusters are used exclusively by the at least one of the first applications.

### Claim 13

A method of managing dynamic random access memory (DRAM), comprising:
identifying a plurality of applications that are executing on a common virtual machine (VM), wherein the common VM runs on a host operating system (OS) of a host computing device; and
mapping a first cluster of a plurality of clusters of banks of the DRAM to a first application of the applications, wherein each of the clusters of comprise a plurality of banks of the DRAM, and wherein all first banks in the first cluster are exclusively used by the first application.

### Claim 14 (depends on 13)

The method of claim 13, further comprising mapping guest physical addresses used by a hypervisor to physical addresses of the DRAM, wherein the hypervisor hosts the common VM, and wherein the memory controller controls the DRAM.

### Claim 15 (depends on 14)

The method of claim 14, further comprising:
detecting, using the host OS, a virtual memory page fault associated with a certain application of the applications;
identifying a second cluster of the clusters that is mapped to the certain application; and
allocating at least one additional physical memory page to the certain application from the second cluster.

### Claim 16 (depends on 15)

The method of claim 15, further comprising:
identifying that an invalid cluster is mapped to the certain application; and
allocating at least one additional virtual memory page to the certain application from one of a plurality of default clusters allocated to the common VM.

### Claim 17 (depends on 8)

The apparatus of claim 8, wherein the instructions further cause the processor to be configured to check a CR2 register to identify the fourth cluster.

### Claim 18 (depends on 8)

The apparatus of claim 8, wherein the instructions further cause the processor to be configured to check a CR3 register to identify the fourth cluster.

### Claim 19 (depends on 6)

The apparatus of claim 6, wherein the scheduling policy is a round robin scheduling policy.

### Claim 20 (depends on 6)

The apparatus of claim 6, wherein the scheduling policy is an application hinting mechanism.
