# US 2017/0285964 A1 · Tuning memory across database clusters for distributed query stability

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

- Number: US 2017/0285964 A1
- Document ID: US20170285964A1
- Status: Published application
- Kind: A1
- Application number: 15/085,410
- Filed: 2016-03-30
- Published: 2017-10-05
- Earliest claimed: 2016-03-30
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Ian R. Finlay; Christian M. Garcia-Arellano; Adam J. Storm; Gennady Yakub
- Web page: https://patentgrep.com/patent/US20170285964A1

## CPC

- G06F 3/0608: {Saving storage space on storage systems}
- G06F 3/0629: {Configuration or reconfiguration of storage systems}
- G06F 3/0631: {by allocating resources to storage systems}
- G06F 3/0644: {Management of space entities, e.g. partitions, extents, pools}
- G06F 3/067: {Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]}
- G06F 9/50: Allocation of resources, e.g. of the central processing unit [CPU]
- G06F 16/24542: {Plan optimisation}
- G06F 16/2471: {Distributed queries}
- G06F 9/5072: {Grid computing}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method for optimizing query compilation by tuning memory across a database cluster is provided. The method may include receiving, by a global memory tuner, memory configuration information from a plurality of nodes within the database cluster. The method may also include determining a node within the plurality of nodes having a least available memory value relative to a remainder of nodes within the plurality of nodes based on the received memory configuration information. The method may then include calculating a globally tuned memory value based on a memory value associated with the determined node. The method may further include determining a memory distribution based on the calculated globally tuned memory value. The method may also include sending the determined memory distribution to the plurality of nodes.

## Claims

### Claim at position 1

1-8. (canceled)

### Claim 9

A computer system for tuning memory across a database cluster, comprising:
one or more processors, one or more computer-readable memories, one or more computer-readable tangible storage medium, and program instructions stored on at least one of the one or more tangible storage medium for execution by at least one of the one or more processors via at least one of the one or more memories, wherein the computer system is capable of performing a method comprising:
receiving, by a global memory tuner, memory configuration information from a plurality of nodes within the database cluster;
determining a node within the plurality of nodes having a least available memory value relative to a remainder of nodes within the plurality of nodes based on the received memory configuration information;
calculating a globally tuned memory value based on a memory value associated with the determined node;
determining a memory distribution based on the calculated globally tuned memory value; and
sending the determined memory distribution to the plurality of nodes.

### Claim 10 (depends on 9)

The computer system of claim 9, wherein calculating the globally tuned memory value based on the memory value associated with the determined node comprises setting the globally tuned memory value to equal the memory value associated with the determined node.

### Claim 11 (depends on 9)

The computer system of claim 9, wherein calculating the globally tuned memory value based on the memory value associated with the determined node comprises setting the globally tuned memory value to be less than the memory value associated with the determined node.

### Claim 12 (depends on 9)

The computer system of claim 9, wherein sending the determined memory distribution to the plurality of nodes further includes each node within the plurality of nodes applying the sent memory distribution.

### Claim 13 (depends on 12)

The computer system of claim 12, wherein each node within the plurality of nodes designates a memory portion equal to the calculated globally tuned memory value as a globally tuned memory partition.

### Claim 14 (depends on 13)

The computer system of claim 13, wherein, each node within the plurality of nodes having additional memory beyond the globally tuned memory partition further partitions the additional memory as locally tuned memory that is tuned by a local memory tuner, and wherein the local memory tuner determines how to distribute the locally tuned memory and apply configuration changes locally to the locally tuned memory.

### Claim 15 (depends on 9)

The computer system of claim 9, wherein determining the memory distribution based on the calculated globally tuned memory value further comprises the global memory tuner using aggregated cost/benefit data collected from a local benefit collector associated with each node within the plurality of nodes.

### Claim 16 (depends on 9)

The computer system of claim 9, further comprising:
generating at least one query plan based on the distributed memory configuration, wherein the generated at least one query plan uses only the distributed memory configuration configured at each node within the plurality of nodes.

### Claim 17

A computer program product for tuning memory across a database cluster, comprising:
one or more computer-readable storage medium and program instructions stored on at least one of the one or more tangible storage medium, the program instructions executable by a processor, the program instructions comprising:
program instructions to receive, by a global memory tuner, memory configuration information from a plurality of nodes within the database cluster;
program instructions to determine a node within the plurality of nodes having a least available memory value relative to a remainder of nodes within the plurality of nodes based on the received memory configuration information;
program instructions to calculate a globally tuned memory value based on a memory value associated with the determined node;
program instructions to determine a memory distribution based on the calculated globally tuned memory value; and
program instructions to send the determined memory distribution to the plurality of nodes.

### Claim 18 (depends on 17)

The computer program product of claim 17, wherein calculating the globally tuned memory value based on the memory value associated with the determined node comprises setting the globally tuned memory value to equal the memory value associated with the determined node.

### Claim 19 (depends on 17)

The computer program product of claim 17, wherein calculating the globally tuned memory value based on the memory value associated with the determined node comprises setting the globally tuned memory value to be less than the memory value associated with the determined node.

### Claim 20 (depends on 17)

The computer program product of claim 17, wherein sending the determined memory distribution to the plurality of nodes further includes each node within the plurality of nodes applying the sent memory distribution.
