# US 2022/0035663 A1 · Techniques for managing cores for storage

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

- Number: US 2022/0035663 A1
- Document ID: US20220035663A1
- Status: Published application
- Kind: A1
- Application number: 16/945,387
- Filed: 2020-07-31
- Published: 2022-02-03
- Earliest claimed: 2020-07-31
- Assignees: EMC IP Holding Company LLC
- Applicants: EMC IP Holding Company LLC
- Inventors: John Gillono; Philippe Armangau; Vamsi K. Vankamamidi; Ashok Tamilarasan
- Web page: https://patentgrep.com/patent/US20220035663A1

## CPC

- G06F 9/4881: {Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues}
- G06F 3/0611: {in relation to response time}
- G06F 3/0653: {Monitoring storage devices or systems}
- G06F 3/0659: {Command handling arrangements, e.g. command buffers, queues, command scheduling}
- G06F 3/067: {Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]}
- G06F 3/0683: {Plurality of storage devices}
- G06F 9/30047: {Prefetch instructions; cache control instructions}
- G06F 9/5027: {the resource being a machine, e.g. CPUs, Servers, Terminals}
- G06F 9/505: {considering the load}
- G06F 2209/5018: Thread allocation
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method of managing CPU cores in a data storage apparatus (DSA) configured to perform both host I/O (Input/Output) processing and background storage processing is provided. The method includes (a) selectively classifying background storage tasks in one of a first classification for longer-running tasks and a second classification for shorter-running tasks; (b) selecting CPU cores that are running fewer than a threshold number of first-classification background tasks to process host I/O requests; and (c) processing the host I/O requests on their selected CPU cores. An apparatus, system, and computer program product for performing a similar method are also provided.

## Claims

### Claim 1

A method of managing CPU (Central Processing Unit) cores in a data storage apparatus (DSA) configured to perform both host I/O (Input/Output) processing and background storage processing, the method comprising:
selectively classifying background storage tasks in one of a first classification for longer-running tasks and a second classification for shorter-running tasks;
selecting CPU cores that are running fewer than a threshold number of first-classification background storage tasks to process host I/O requests; and
processing the host I/O requests on their selected CPU cores.

### Claim 2 (depends on 1)

The method of claim 1 wherein the method further comprises, for each first-classification background storage task:
selecting a CPU core within a predefined subset of the CPU cores that is running fewer than a maximum number of first-classification background storage tasks to process that first-classification background storage task, the predefined subset having a fixed number of CPU cores that is smaller than a total number of CPU cores available to perform host I/O processing and background storage processing; and
processing that first-classification background storage task on its selected CPU core within the predefined subset.

### Claim 3 (depends on 2)

The method of claim 2 wherein the threshold number is one.

### Claim 4 (depends on 3)

The method of claim 3 wherein the maximum number is also one.

### Claim 5 (depends on 2)

The method of claim 2 wherein selectively classifying background storage tasks includes classifying flush tasks into the first classification, flush tasks being tasks that persistently store data from a cache into long-term persistent storage.

### Claim 6 (depends on 5)

The method of claim 5 wherein selectively classifying background storage tasks further includes classifying rebuild tasks into the first classification, rebuild tasks being tasks that reconstruct data of a failed drive onto a replacement drive.

### Claim 7 (depends on 6)

The method of claim 6,
wherein the maximum number is at least two; and
selecting the CPU core within the predefined subset of the CPU cores includes, for a flush task, selecting as the CPU core a CPU core from the predefined subset that is not running a rebuild task.

### Claim 8 (depends on 2)

The method of claim 2 wherein the fixed number of CPU cores is within a range of 50% to 75% of the total number of CPU cores available to perform host I/O processing and background storage processing.

### Claim 9 (depends on 8)

The method of claim 8 wherein the total number of CPU cores available to perform host I/O processing and background storage processing is smaller than a total number of CPU cores of the DSA.

### Claim 10 (depends on 2)

The method of claim 2 wherein the method further comprises, assigning second-classification background storage tasks to CPU cores based on numbers of background storage tasks running on each CPU core.

### Claim 11 (depends on 10)

The method of claim 10 wherein assigning second-classification background storage tasks to CPU cores based on numbers of background storage tasks running on each CPU core includes assigning second-classification background storage tasks to CPU cores having fewest background storage tasks running thereon within a group of CPU cores that is smaller than the total number of CPU cores available to perform host I/O processing and background storage processing, up to a preferred threshold number of running background storage tasks.

### Claim 12 (depends on 11)

The method of claim 11 wherein assigning second-classification background storage tasks to CPU cores based on numbers of background storage tasks running on each CPU core further includes, once the preferred threshold number of running background storage tasks has been reached on the CPU cores of the group, assigning second-classification background storage tasks to CPU cores not belonging to the group having fewest background storage tasks running thereon, up to the preferred threshold number of running background storage tasks.

### Claim 13 (depends on 12)

The method of claim 12 wherein assigning second-classification background storage tasks to CPU cores based on numbers of background storage tasks running on each CPU core further includes, once the preferred threshold number of running background storage tasks has been reached on the CPU cores not belonging the group, assigning second-classification background storage tasks to CPU cores belonging to the group having fewest background storage tasks running thereon, up to an overall threshold number of running background storage tasks, the overall threshold number being larger than the preferred threshold number.

### Claim 14

A data storage apparatus (DSA) comprising:
network interface circuitry connecting to a remote host over a network;
persistent storage storing data; and
a plurality of CPU (Central Processing Unit) cores connected to memory, the CPU cores connected to the memory being configured to perform both host I/O (Input/Output) processing and background storage processing and to:
selectively classify background storage tasks in one of a first classification for longer-running tasks and a second classification for shorter-running tasks;
select CPU cores that are running fewer than a threshold number of first-classification background storage tasks to process host I/O requests; and
process the host I/O requests on their selected CPU cores.

### Claim 15 (depends on 14)

The DSA of claim 14 wherein the plurality of CPU cores connected to the memory is further configured to:
select a CPU core within a predefined subset of the CPU cores that is running fewer than a maximum number of first-classification background storage tasks to process that first-classification background storage task, the predefined subset having a fixed number of CPU cores that is smaller than a total number of CPU cores available to perform host I/O processing and background storage processing; and
process that first-classification background storage task on its selected CPU core within the predefined subset.

### Claim 16 (depends on 15)

The DSA of claim 15 wherein the fixed number of CPU cores is within a range of 50% to 75% of the total number of CPU cores available to perform host I/O processing and background storage processing.

### Claim 17 (depends on 16)

The DSA of claim 16 wherein the total number of CPU cores available to perform host I/O processing and background storage processing is smaller than a total number of CPU cores of the DSA.

### Claim 18

A computer program product comprising a non-transitory computer-readable storage medium storing a set of instructions, which, when performed by processing circuitry of a data storage apparatus (DSA), cause the DSA to manage CPU (Central Processing Unit) cores configured to perform both host I/O (Input/Output) processing and background storage processing by:
selectively classifying background storage tasks in one of a first classification for longer-running tasks and a second classification for shorter-running tasks;
selecting CPU cores that are running fewer than a threshold number of first-classification background storage tasks to process host I/O requests; and
processing the host I/O requests on their selected CPU cores.

### Claim 19 (depends on 18)

The computer program product of claim 18 wherein the set of instructions, when performed by the processing circuitry, further cause the DSA to, for each first-classification background storage task:
select a CPU core within a predefined subset of the CPU cores that is running fewer than a maximum number of first-classification background storage tasks to process that first-classification background storage task, the predefined subset having a fixed number of CPU cores that is smaller than a total number of CPU cores available to perform host I/O processing and background storage processing; and
process that first-classification background storage task on its selected CPU core within the predefined subset.

### Claim 20 (depends on 19)

The computer program product of claim 19 wherein the threshold number is one.
