# US 2017/0293447 A1 · Multi-tenant memory service for memory pool architectures

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

- Number: US 2017/0293447 A1
- Document ID: US20170293447A1
- Status: Published application
- Kind: A1
- Application number: 15/092,699
- Filed: 2016-04-07
- Published: 2017-10-12
- Earliest claimed: 2016-04-07
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: John Alan Bivens; Koushik K. Das; Min Li; Ruchi Mahindru; Harigovind V. Ramasamy; Yaoping Ruan; Valentina Salapura; Eugen Schenfeld
- Web page: https://patentgrep.com/patent/US20170293447A1

## CPC

- G06F 3/0631: {by allocating resources to storage systems}
- G06F 3/0619: {in relation to data integrity, e.g. data losses, bit errors}
- G06F 3/064: {Management of blocks}
- G06F 3/065: {Replication mechanisms}
- G06F 3/0653: {Monitoring storage devices or systems}
- G06F 3/067: {Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]}
- G06F 11/1446: Point-in-time backing up or restoration of persistent data
- G06F 11/3006: {where the computing system is distributed, e.g. networked systems, clusters, multiprocessor systems (multiprogramming arrangements G06F9/46; allocation of resources G06F9/50)}
- G06F 11/3433: {for load management (allocation of a server based on load conditions G06F9/505; load rebalancing G06F9/5083; redistributing the load in a network by a load balancer H04L67/1029)}
- 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/0806: Multiuser, multiprocessor or multiprocessing cache systems
- G06F 12/0808: with cache invalidating means (G06F12/0815 takes precedence)
- G06F 3/0641: {De-duplication techniques}
- G06F 11/1453: {using de-duplication of the data}
- G06F 2212/1032: Reliability improvement, data loss prevention, degraded operation etc
- G06F 2212/152: Virtualized environment, e.g. logically partitioned system
- G06F 2212/154: Networked environment
- G06F 2212/502: using adaptive policy
- G06F 2212/62: Details of cache specific to multiprocessor cache arrangements
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A memory management service occupies a configurable portion of an overall memory system in a disaggregate compute environment. The service provides optimized data organization capabilities over the pool of real memory accessible to the system. The service enables various types of data stores to be implemented in hardware, including at a data structure level. Storage capacity conservation is enabled through the creation and management of high-performance, re-usable data structure implementations across the memory pool, and then using analytics (e.g., multi-tenant similarity and duplicate detection) to determine when data organizations should be used. The service also may re-align memory to different data structures that may be more efficient given data usage and distribution patterns. The service also advantageously manages automated backups efficiently.

## Claims

### Claim 1

A method of managing memory in a multi-tenant compute environment, comprising
providing a memory resource pool;
for a given workload, allocating memory resources from the memory resource pool to a set of processors;
organizing data for the given workload in the allocated memory resources according to a data structure; and
determining whether re-organization of the data in the data structure for the given workload would increase performance of the data structure or conserve memory used by the data structure; and
upon a determination that re-organization would increase performance or conserve memory, taking a given action to manage the data, wherein the given action detects data similarity or duplicates and, in response thereto, eliminates given data from the allocated memory resources;
wherein data similarity or duplicates are detected by:
identifying data blocks that are common to multiple tenants or multiple processes;
upon identifying common data blocks, determining whether the common data blocks are stable according to a configurable threshold;
upon a determination that the common data blocks are stable, eliminating duplicate common data blocks;
associating an instance of the common data blocks as a shared common data block; and
providing the multiple tenants or multiple processes a pointer to the shared common data block.

### Claim at position 2

2-3. (canceled)

### Claim 4 (depends on 1)

The method as described in claim 1, further including:
determining that a value for a shared common data block has changed for a first tenant;
determining whether it is computationally less expensive to store a delta value for the shared common data block for the first tenant; and
upon a determination that it is computationally less expensive, storing the delta value for the shared common data block for the first tenant.

### Claim 5 (depends on 4)

The method as described in claim 4, further comprising:
determining whether it is computationally less expensive to store a new value for the shared common data block for the first tenant; and
upon a determination that it is computationally less expensive to store a new value, storing the new value for the shared common data block for the first the tenant.

### Claim 6 (depends on 1)

The method as described in claim 1, wherein the given action to manage the data comprises:
monitoring data distribution or usage patterns of the data; and
based on the monitoring, applying an optimization to adjust the data structure.

### Claim 7 (depends on 1)

The method as described in claim 1, further including:
profiling a data set to produce a data set schema;
periodically backing up the data set without using a processor; and
flushing cached data to main memory prior to a backup operation.

### Claim 8 (depends on 1)

The method as described in claim 1 wherein the data structure organizes the data based on an access requirement of the given workload.

### Claim 9

An apparatus of managing memory in a multi-tenant compute environment, comprising:
one or more hardware processors;
computer memory holding computer program instructions executed by the hardware processors and operative to:
organize a memory resource pool;
for a given workload, allocate memory resources from the memory resource pool to a set of processors;
organize data for the given workload in the allocated memory resources according to a data structure; and
determine whether re-organization of the data in the data structure for the given workload would increase performance of the data structure or conserve memory used by the data structure; and
upon a determination that re-organization would increase performance or conserve memory, take a given action to manage the data, wherein the given action detects data similarity or duplicates and, in response thereto, eliminates given data from the allocated memory resources;
wherein data similarity or duplicates are detected by:
identifying data blocks that are common to multiple tenants or multiple processes;
upon identifying common data blocks, determining whether the common data blocks are stable according to a configurable threshold;
upon a determination that the common data blocks are stable, eliminating duplicate common data blocks;
associating an instance of the common data blocks as a shared common data block; and
providing the multiple tenants or multiple processes a pointer to the shared common data block.

### Claim at position 9

10-11. (canceled)

### Claim 12 (depends on 9)

The apparatus as described in claim 9, wherein the computer program instructions are further operative to:
determine that a value for a shared common data block has changed for a first tenant;
determine whether it is computationally less expensive to store a delta value for the shared common data block for the first tenant; and
upon a determination that it is computationally less expensive, store the delta value for the shared common data block for the first tenant.

### Claim 13

The apparatus as described in claim [4], wherein the computer program instructions are further operative to:
determine whether it is computationally less expensive to store a new value for the shared common data block for the first tenant; and
upon a determination that it is computationally less expensive to store a new value, store the new value for the shared common data block for the first the tenant.

### Claim 14 (depends on 9)

The apparatus as described in claim 9, wherein the given action to manage the data comprises:
monitoring data distribution or usage patterns of the data; and
based on the monitoring, applying an optimization to adjust the data structure.

### Claim 15 (depends on 9)

The apparatus as described in claim 9, wherein the computer program instructions are further operative to:
profile a data set to produce a data set schema;
periodically back-up the data set without using a processor; and
flush cached data to main memory prior to a backup operation.

### Claim 16 (depends on 9)

The apparatus as described in claim 9 wherein the data structure organizes the data based on an access requirement of the given workload.

### Claim 17

A computer program product in a non-transitory computer readable medium for use in a data processing system to manage memory in a multi-tenant compute environment, the computer program product holding computer program instructions executed in the data processing system and operative to:
organize a memory resource pool;
for a given workload, allocate memory resources from the memory resource pool to a set of processors;
organize data for the given workload in the allocated memory resources according to a data structure; and
determine whether re-organization of the data in the data structure for the given workload would increase performance of the data structure or conserve memory used by the data structure; and
upon a determination that re-organization would increase performance or conserve memory, take a given action to manage the data, wherein the given action detects data similarity or duplicates and, in response thereto, eliminates given data from the allocated memory resources;
wherein data similarity or duplicates are detected by:
identifying data blocks that are common to multiple tenants or multiple processes;
upon identifying common data blocks, determining whether the common data blocks are stable according to a configurable threshold;
upon a determination that the common data blocks are stable, eliminating duplicate common data blocks;
associating an instance of the common data blocks as a shared common data block; and
providing the multiple tenants or multiple processes a pointer to the shared common data block.

### Claim at position 16

18-19. (canceled)

### Claim 20 (depends on 17)

The computer program product as described in claim 17, wherein the computer program instructions are further operative to:
determine that a value for a shared common data block has changed for a first tenant;
determine whether it is computationally less expensive to store a delta value for the shared common data block for the first tenant; and
upon a determination that it is computationally less expensive, store the delta value for the shared common data block for the first tenant.

### Claim 21 (depends on 20)

The computer program product as described in claim 20, wherein the computer program instructions are further operative to:
determine whether it is computationally less expensive to store a new value for the shared common data block for the first tenant; and
upon a determination that it is computationally less expensive to store a new value, store the new value for the shared common data block for the first the tenant.

### Claim 22 (depends on 17)

The computer program product as described in claim 17, wherein the given action to manage the data comprises:
monitoring data distribution or usage patterns of the data; and
based on the monitoring, applying an optimization to adjust the data structure.

### Claim 23 (depends on 17)

The computer program product as described in claim 17, wherein the computer program instructions are further operative to:
profile a data set to produce a data set schema;
periodically back-up the data set without using a processor; and
flush cached data to main memory prior to a backup operation.

### Claim 24 (depends on 17)

The computer program product as described in claim 17 wherein the data structure organizes the data based on an access requirement of the given workload.

### Claim 25

A data center facility, comprising:
a memory pool;
an optical interconnect; and
a memory manager executing in a hardware element and operative to manage allocation of memory resources from the memory resource pool to a set of processors for multiple tenant workloads, to organize data for a given tenant workload according to a data structure, and to selectively re-organize the data in the data structure to increase performance of the data structure or reduce memory required to service the given tenant workload by taking a given action to manage the data, wherein the given action detects data similarity or duplicates and, in response thereto, eliminates given data from allocated memory resources, wherein data similarity or duplicates are detected by:
identifying data blocks that are common to multiple tenants or multiple processes;
upon identifying common data blocks, determining whether the common data blocks are stable according to a configurable threshold;
upon a determination that the common data blocks are stable, eliminating duplicate common data blocks;
associating an instance of the common data blocks as a shared common data block; and
providing the multiple tenants or multiple processes a pointer to the shared common data block.
