# US 2024/0187351 A1 · Stream allocation using stream credits

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

- Number: US 2024/0187351 A1
- Document ID: US20240187351A1
- Status: Published application
- Kind: A1
- Application number: 18/437,988
- Filed: 2024-02-09
- Published: 2024-06-06
- Earliest claimed: 2018-10-08
- Assignees: EMC IP Holding Company LLC
- Applicants: EMC IP Holding Company LLC
- Inventors: Keyur B. Desai
- Web page: https://patentgrep.com/patent/US20240187351A1

## CPC

- G06F 9/5027: {the resource being a machine, e.g. CPUs, Servers, Terminals}
- H04L 47/39: {Credit based}
- G06F 3/0617: {in relation to availability}
- G06F 3/0635: {by changing the path, e.g. traffic rerouting, path reconfiguration}
- G06F 3/067: {Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]}
- G06F 9/5061: {Partitioning or combining of resources}
- H04L 47/806: {Broadcast or multicast traffic}
- H04L 65/612: for unicast
- H04L 65/80: Responding to QoS
- G06F 2209/504: Resource capping
- Y02D 10/00: Energy efficient computing, e.g. low power processors, power management or thermal management
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- Y02D: CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE

## Abstract

Systems and methods for allocating resources are disclosed. Resources such as streams are allocated using a stream credit system. Credits are issued to the clients in a manner that ensure the system is operating in a safe allocation state. The credits can be used not only to allocate resources but also to throttle clients where necessary. Credits can be granted fully, partially, and in a number greater than a request. Zero or negative credits can also be issued to throttle clients.

## Claims

### Claim 1

A method for allocating resources of a cluster of servers, the method comprising:
predetermining a maximum stream credits associated with each client of the cluster of servers;
receiving a request for stream credits from a client at the cluster, wherein the stream credits are for using streams provided by the cluster of servers;
determining, by the cluster, an allocation state of the cluster in response to the request for stream credits from the client, wherein determining the allocation state includes:
determining a number of streams available from the servers;
assuming that the request for stream credits is granted; and
determining whether at least one other client could request and use their maximum stream credits;
wherein the allocation state is safe when the at least one other client can request and use their maximum stream credits and wherein the allocation state is unsafe when the at least one other client cannot request and use their maximum stream credits; and
issuing the stream credits to the client in response to the request for stream credits based on the allocation state.

### Claim 2 (depends on 1)

The method of claim 1, further comprising streaming one or more streams to the clients, wherein each of the one or more streams consumes resources of the cluster of servers.

### Claim 3 (depends on 1)

The method of claim 1, further comprising determining a current allocation matrix that identifies streams currently allocated to each of the clients from each of the servers in the cluster of servers.

### Claim 4 (depends on 3)

The method of claim 3, further comprising determining a current demand matrix that specifies a maximum number of streams that can be requested by each of the clients from each of the servers in the cluster of servers.

### Claim 5 (depends on 1)

The method of claim 1, further comprising determining a current need matrix based on the current demand matrix and the current allocation matrix, wherein the current need matrix identifies a number of stream credits that each of the clients can request to acquire their maximum number of stream credits.

### Claim 6 (depends on 1)

The method of claim 1, further comprising defining a maximum number of streams for allocation for each of the servers, wherein the maximum number of streams for each of the servers is based on a number of write or read parameters.

### Claim 7 (depends on 1)

The method of claim 1, wherein each stream credit corresponds to a percentage of a CPU (central processing unit), percent of CPU consumed by a data transmission rate, or a percent of CPU consumed by a predetermined number of writes.

### Claim 8 (depends on 1)

The method of claim 1, wherein issuing the stream credits based on the allocation state includes at least one of:
issuing stream credits in an amount equal to the request when the allocation state is safe; and when the allocation state is unsafe,
issuing stream credits in an amount greater than the request;
issuing stream credits in an amount greater than zero and less than the request;
issuing zero stream credits; or
issuing negative stream credits.

### Claim 9 (depends on 1)

The method of claim 1, further comprising:
throttling the client when the allocation state is not safe until the allocation state is safe; or
self-throttling by the clients.

### Claim 10

A method for allocating resources of a cluster of servers, the method comprising:
predetermining a maximum credits associated with each client of the cluster of servers;
receiving a request for credits from a client at the cluster, wherein the credits are for using resources provided by the cluster of servers;
determining, by the cluster, an allocation state of the cluster in response to the request for credits from the client, wherein determining the allocation state includes:
determining resources available from the servers;
assuming that the request for credits is granted; and
determining whether at least one other client could request and use their maximum credits;
wherein the allocation state is safe when the at least one other client can request and use their maximum credits and wherein the allocation state is unsafe when the at least one other client cannot request and use their maximum credits; and
issuing the credits to the client in response to the request for credits based on the allocation state.

### Claim 11 (depends on 10)

The method of claim 10, further comprising streaming one or more streams to the clients, wherein each of the one or more streams consumes resources of the cluster of servers.

### Claim 12 (depends on 10)

The method of claim 10, further comprising determining a current allocation matrix that identifies resources currently allocated to each of the clients from each of the servers in the cluster of servers.

### Claim 13 (depends on 12)

The method of claim 12, further comprising determining a current demand matrix that specifies a maximum number of resources that can be requested by each of the clients from each of the servers in the cluster of servers.

### Claim 14 (depends on 10)

The method of claim 10, further comprising determining a current need matrix based on the current demand matrix and the current allocation matrix, wherein the current need matrix identifies a number of credits that each of the clients can request to acquire their maximum number of credits.

### Claim 15 (depends on 10)

The method of claim 10, further comprising defining a maximum amount of resources for allocation for each of the servers, wherein the maximum amount of resources for each of the servers is based on a number of write or read parameters.

### Claim 16 (depends on 10)

The method of claim 10, wherein each credit corresponds to a percentage of a CPU (central processing unit), percent of CPU consumed by a data transmission rate, or a percent of CPU consumed by a predetermined number of writes.

### Claim 17 (depends on 10)

The method of claim 10, wherein issuing the credits based on the allocation state includes at least one of:
issuing credits in an amount equal to the request when the allocation state is safe; and when the allocation state is unsafe,
issuing credits in an amount greater than the request;
issuing credits in an amount greater than zero and less than the request;
issuing zero credits; or
issuing negative credits.

### Claim 18 (depends on 10)

The method of claim 10, wherein:
the credits are stream credits for performing streaming operations with the resources;
the credits are restore credits for performing restore operations with the resources; or
the credits are distributed segment processing credits for performing distributed segment processing operations with the resources.

### Claim 19 (depends on 18)

The method of claim 18, wherein the resources include one or more of streams, reads, writes, processing, and/or deduplication.

### Claim 20

A non-transitory computer readable medium including instructions for implementing a method for allocating resources of a cluster of servers when performing a data protection operation, the method comprising:
predetermining a maximum credits associated with each client of the cluster of servers;
receiving a request for credits from a client at the cluster, wherein the credits are for using resources provided by the cluster of servers;
determining, by the cluster, an allocation state of the cluster in response to the request for credits from the client, wherein determining the allocation state includes:
determining resources available from the servers;
assuming that the request for credits is granted; and
determining whether at least one other client could request and use their maximum credits;
wherein the allocation state is safe when the at least one other client can request and use their maximum credits and wherein the allocation state is unsafe when the at least one other client cannot request and use their maximum credits; and
issuing the credits to the client in response to the request for credits based on the allocation state.
