# US 2021/0286716 A1 · Cascading pid controller for metadata page eviction

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

- Number: US 2021/0286716 A1
- Document ID: US20210286716A1
- Status: Published application
- Kind: A1
- Application number: 16/813,886
- Filed: 2020-03-10
- Published: 2021-09-16
- Earliest claimed: 2020-03-10
- Assignees: EMC IP Holding Company LLC
- Applicants: Emc IP Holding Company LLC
- Inventors: Andrew Chanler; Mathew Pilozzi
- Web page: https://patentgrep.com/patent/US20210286716A1

## CPC

- G06F 12/0246: {in block erasable memory, e.g. flash memory}
- G06F 12/0868: Data transfer between cache memory and other subsystems, e.g. storage devices or host systems
- G05B 11/42: for obtaining a characteristic which is both proportional and time-dependent, e.g. P. I., P. I. D.
- G06F 2212/1016: Performance improvement
- G06F 2212/1032: Reliability improvement, data loss prevention, degraded operation etc
- G06F 2212/1044: Space efficiency improvement
- G06F 2212/214: Solid state disk
- G06F 2212/261: Storage comprising a plurality of storage devices
- G06F 2212/263: Network storage, e.g. SAN or NAS
- G06F 2212/284: being distributed
- G06F 2212/462: Track or segment
- G06F 2212/466: Metadata, control data
- G06F 2212/7207: management of metadata or control data
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G05B: CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS (systems for controlling or regulating non-electric variables G05D; systems for regulating electric or magnetic variables G05F; control devices or systems insofar as characterised by mechanical features only G05G)

## Abstract

In a storage system that implements metadata paging, the page free pool is replenished in the background to reduce foreground evictions and associated latency on page-in. A two-level page eviction controller with cascaded proportional, integral, derivative (PID) controllers optimizes the size of the free page pool and optimizes the rate at which pages are freed in the background. By optimizing these two parameters the page eviction controller dynamically maximizes used pages (minimizing free pages) to increase the metadata cache hit ratio. Optimizing the parameters also reduces the chances of foreground page evictions, thereby reducing IO latency, during both steady state and burst page-in requests.

## Claims

### Claim 1

An apparatus, comprising:
at least one computing node comprising a processor and memory;
at least one non-volatile drive managed by the at least one computing node;
a data set maintained on the at least one non-volatile drive;
metadata for the data set, the metadata maintained on the at least one non-volatile drive; and
a metadata paging controller that copies pages of the metadata from the at least one non-volatile drive to free pages of a free pool in the memory as needed and evicts pages of metadata from the memory, the metadata paging controller adjusting a target size of the free pool based on a free pool relative minimum setpoint for a time period.

### Claim 2 (depends on 1)

The apparatus of claim 1 wherein the metadata paging controller adjusts the target size of the free pool based on a difference between the free pool relative minimum setpoint for the time period and an actual free pool relative minimum for the time period.

### Claim 3 (depends on 2)

The apparatus of claim 2 wherein the metadata paging controller adjusts a background page eviction rate based on the target size of the free pool.

### Claim 4 (depends on 3)

The apparatus of claim 3 wherein the metadata paging controller adjusts the background page eviction rate based on a difference between the target size of the free pool and actual size of the free pool.

### Claim 5 (depends on 4)

The apparatus of claim 4 wherein the metadata paging controller calculates the difference between the free pool relative minimum setpoint for the time period and an actual free pool relative minimum for the time period combined with a number of foreground evictions occurring in the time period.

### Claim 6 (depends on 5)

The apparatus of claim 5 wherein the metadata paging controller comprises cascaded proportional-integral-derivative (PID) controllers.

### Claim 7 (depends on 6)

The apparatus of claim 6 wherein the pages of metadata and the free pages of the free pool are in a dedicated portion of the memory.

### Claim 8

A method, comprising:
in a storage system comprising at least one computing node comprising a processor and memory, at least one non-volatile drive managed by the at least one computing node, a data set maintained on the at least one non-volatile drive, and metadata for the data set, the metadata maintained on the at least one non-volatile drive:
copying pages of the metadata from the at least one non-volatile drive to free pages of a free pool in the memory as needed;
evicting pages of metadata from the memory based on adjusting a target size of the free pool based on a free pool relative minimum setpoint for a time period.

### Claim 9 (depends on 8)

The method of claim 8 comprising adjusting the target size of the free pool based on a difference between the free pool relative minimum setpoint for the time period and an actual free pool relative minimum for the time period.

### Claim 10 (depends on 9)

The method of claim 9 comprising adjusting a background page eviction rate based on the target size of the free pool.

### Claim 11 (depends on 10)

The method of claim 10 comprising adjusting the background page eviction rate based on a difference between the target size of the free pool and actual size of the free pool.

### Claim 12 (depends on 11)

The method of claim 11 comprising calculating the difference between the free pool relative minimum setpoint for the time period and an actual free pool relative minimum for the time period combined with a number of foreground evictions occurring in the time period.

### Claim 13 (depends on 12)

The method of claim 12 comprising adjusting with cascaded proportional-integral-derivative (PID) controllers.

### Claim 14 (depends on 13)

The method of claim 13 comprising maintaining the pages of metadata and the free pages of the free pool in a dedicated portion of the memory.

### Claim 15

A computer-readable storage medium storing instructions that when executed by a computer cause the computer to perform a method for using a computer system to evict pages of metadata from memory, the method comprising:
copying pages of the metadata from a non-volatile drive to free pages of a free pool in the memory as needed; and
evicting pages of metadata from the memory based on adjusting a target size of the free pool based on a free pool relative minimum setpoint for a time period.

### Claim 16 (depends on 15)

The computer-readable storage medium of claim 15 wherein the method further comprises adjusting the target size of the free pool based on a difference between the free pool relative minimum setpoint for the time period and an actual free pool relative minimum for the time period.

### Claim 17 (depends on 16)

The computer-readable storage medium of claim 16 wherein the method further comprises adjusting a background page eviction rate based on the target size of the free pool.

### Claim 18 (depends on 17)

The computer-readable storage medium of claim 17 wherein the method further comprises adjusting the background page eviction rate based on a difference between the target size of the free pool and actual size of the free pool.

### Claim 19 (depends on 18)

The computer-readable storage medium of claim 18 wherein the method further comprises calculating the difference between the free pool relative minimum setpoint for the time period and an actual free pool relative minimum for the time period combined with a number of foreground evictions occurring in the time period.

### Claim 20 (depends on 19)

The computer-readable storage medium of claim 19 wherein the method further comprises adjusting with cascaded proportional-integral-derivative (PID) controllers.
