# US 2019/0317843 A1 · Shared memory usage tracking across multiple processes

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

- Number: US 2019/0317843 A1
- Document ID: US20190317843A1
- Status: Published application
- Kind: A1
- Application number: 15/950,822
- Filed: 2018-04-11
- Published: 2019-10-17
- Earliest claimed: 2018-04-11
- Assignees: EMC IP Holding Company LLC
- Applicants: EMC IP Holding Company LLC
- Inventors: Junping Zhao; Xiangping Chen
- Web page: https://patentgrep.com/patent/US20190317843A1

## CPC

- G06F 9/544: {Buffers; Shared memory; Pipes}
- G06F 11/301: {where the computing system is a virtual computing platform, e.g. logically partitioned systems (virtual machines G06F9/45533; logical partitioning of resources G06F9/5077)}
- G06F 11/3017: {where the computing system is implementing multitasking (multiprogramming arrangements G06F9/46; allocation of resources G06F9/50)}
- G06F 11/3037: {where the computing system component is a memory, e.g. virtual memory, cache (accessing, addressing or allocating within memory systems or architectures G06F12/00; checking stores for correct operation G11C29/00)}
- G06F 11/3055: {Monitoring arrangements for monitoring the status of the computing system or of the computing system component, e.g. monitoring if the computing system is on, off, available, not available (error or fault processing without redundancy G06F11/0703; error detection or correction by redundancy in data representation G06F11/08; error detection or correction of the data by redundancy in operations G06F11/14; error detection or correction by redundancy in hardware G06F11/16)}
- G06F 11/3466: {Performance evaluation by tracing or monitoring}
- G06F 12/08: in hierarchically structured memory systems, e.g. virtual memory systems
- G06F 12/10: Address translation
- G06F 12/1009: using page tables, e.g. page table structures
- G06F 12/1072: Decentralised address translation, e.g. in distributed shared memory systems
- G06F 12/109: for multiple virtual address spaces, e.g. segmentation (G06F12/1036 takes precedence)
- G06F 13/1663: {Access to shared memory}
- G06F 9/45558: {Hypervisor-specific management and integration aspects}
- G06F 2009/45583: {Memory management, e.g. access or allocation}
- G06F 2212/1032: Reliability improvement, data loss prevention, degraded operation etc
- G06F 2212/1044: Space efficiency improvement
- G06F 2212/151: Emulated environment, e.g. virtual machine
- G06F 2212/206: Memory mapped I/O
- G06F 2212/652: Page size control
- G06F 2212/656: Address space sharing
- G06F 2212/657: Virtual address space management
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

An apparatus in one embodiment comprises a host device that includes at least one processor and an associated memory. The host device is configured to implement a plurality of processes each configured to access a shared region of the memory. The host device is further configured to establish a multi-process control group for the shared region, to maintain state information for the multi-process control group, and to track usage of the shared region by the processes based at least in part on the state information. At least a subset of the processes may comprise respective containers implemented utilizing operating system level virtualization of the processor of the host device. The multi-process control group established for the shared region illustratively comprises a coarse-grained control group having a granularity greater than a single page of the shared region.

## Claims

### Claim 1

An apparatus comprising:
a host device comprising at least one processor and an associated memory;
the host device being configured to implement a plurality of processes each configured to access a shared region of the memory;
the host device being further configured:
to establish a multi-process control group for the shared region;
to maintain state information for the multi-process control group; and
to track usage of the shared region by the processes based at least in part on the state information.

### Claim 2 (depends on 1)

The apparatus of claim 1 wherein at least a subset of the processes comprise respective containers implemented utilizing operating system level virtualization of the processor of the host device.

### Claim 3 (depends on 1)

The apparatus of claim 1 wherein the multi-process control group established for the shared region comprises a coarse-grained control group having a granularity greater than a single page of the shared region.

### Claim 4 (depends on 1)

The apparatus of claim 1 wherein the host device is further configured to establish single-process control groups for respective ones of the processes with each such single-process control group being a fine-grained control group having a granularity equivalent to a single page of the shared region.

### Claim 5 (depends on 1)

The apparatus of claim 1 wherein the multi-process control group specifies a plurality of characteristics of the shared region including one or more of the following:
an allocated size of the shared region;
a current paged-in size of the shared region;
a current number of processes accessing the shared region; and
a plurality of pointers to respective single-process control groups for the processes accessing the shared region.

### Claim 6 (depends on 5)

The apparatus of claim 5 wherein the usage tracking comprises assessing usage of the shared region to each of the processes at least in part as a function of the current paged-in size divided by the current number of processes accessing the shared region.

### Claim 7 (depends on 1)

The apparatus of claim 1 wherein the state information maintained for the multi-process control group comprises a current state selected from a plurality of possible states including at least the following states:
a first state indicating that usage of the shared memory region has been properly assessed to respective ones of the processes and that no update to the usage tracking is needed; and
a second state indicating that there has been at least one change necessitating an update to the usage tracking.

### Claim 8 (depends on 7)

The apparatus of claim 7 wherein said at least one change necessitating an update to the usage tracking comprises one or more of:
an addition of a new process to the processes accessing the shared region;
a deletion of an existing process from the processes accessing the shared region; and
another type of change in at least one characteristic of the shared region.

### Claim 9 (depends on 8)

The apparatus of claim 8 wherein another type of change in at least one characteristic of the shared region comprises one or more of:
an addition of a new page to a plurality of pages of the shared region; and
a deletion of an existing page from the plurality of pages of the shared region.

### Claim 10 (depends on 7)

The apparatus of claim 7 wherein the plurality of possible states further comprises at least one of the following states:
a third state indicating that an update to the usage tracking is in progress; and
a fourth state indicating that an immediate update to the usage tracking is needed.

### Claim 11 (depends on 1)

The apparatus of claim 1 wherein the usage tracking comprises assessing usage of the shared region substantially equally to each of the processes accessing the shared region.

### Claim 12 (depends on 1)

The apparatus of claim 1 wherein the usage tracking comprises assessing usage of the shared region to the processes in accordance with actual usage of the shared region by the processes.

### Claim 13 (depends on 1)

The apparatus of claim 1 wherein the usage tracking is implemented as a background thread executing on the processor of the host device.

### Claim 14 (depends on 7)

The apparatus of claim 7 wherein the usage tracking is configured:
to determine whether or not the multi-process control group is in the second state;
responsive to an affirmative determination that the multi-process control group is in the second state:
to calculate new assessments of usage of the shared region for respective ones of the processes;
to provide the new assessments to respective single-process control groups of the respective processes; and
to change the state of the multi-process control group from the second state to the first state.

### Claim 15

A method comprising:
configuring a host device comprising at least one processor and an associated memory to implement a plurality of processes each configured to access a shared region of the memory;
establishing a multi-process control group for the shared region;
maintaining state information for the multi-process control group; and
tracking usage of the shared region by the processes based at least in part on the state information;
wherein the establishing, maintaining and tracking are performed by the host device.

### Claim 16 (depends on 15)

The method of claim 15 wherein at least a subset of the processes comprise respective containers implemented utilizing operating system level virtualization of the processor of the host device.

### Claim 17 (depends on 15)

The method of claim 15 wherein the multi-process control group established for the shared region comprises a coarse-grained control group having a granularity greater than a single page of the shared region.

### Claim 18

A computer program product comprising a non-transitory processor-readable storage medium having stored therein program code of one or more software programs, wherein the program code when executed by a host device comprising at least one processor and an associated memory causes the host device:
to implement a plurality of processes each configured to access a shared region of the memory;
to establish a multi-process control group for the shared region;
to maintain state information for the multi-process control group; and
to track usage of the shared region by the processes based at least in part on the state information.

### Claim 19 (depends on 18)

The computer program product of claim 18 wherein at least a subset of the processes comprise respective containers implemented utilizing operating system level virtualization of the processor of the host device.

### Claim 20 (depends on 18)

The computer program product of claim 18 wherein the multi-process control group established for the shared region comprises a coarse-grained control group having a granularity greater than a single page of the shared region.
