# US 2022/0019360 A1 · Credit-based scheduling of memory commands

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

- Number: US 2022/0019360 A1
- Document ID: US20220019360A1
- Status: Published application
- Kind: A1
- Application number: 16/929,003
- Filed: 2020-07-14
- Published: 2022-01-20
- Earliest claimed: 2020-07-14
- Assignees: Micron Technology, Inc.
- Applicants: Micron Technology, Inc.
- Inventors: Patrick A. La Fratta; Robert M. Walker
- Web page: https://patentgrep.com/patent/US20220019360A1

## CPC

- G06F 3/0631: {by allocating resources to storage systems}
- G06F 3/0613: {in relation to throughput}
- 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: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method is described that includes receiving a plurality of streams of memory requests and each stream is associated with a source. The method further includes determining a bandwidth allocation for each stream, wherein each allocation represents a portion of a total bandwidth of a memory component managed by the subsystem and each allocation indicates a priority of a corresponding stream based on a corresponding source of each stream and assigning a set of credits to each stream based on the bandwidth allocations. The method also includes determining a memory command from a queue for issuance, wherein each memory command in the queue is associated with a stream and determining the memory command is based on the credits assigned to each stream such that commands associated with a stream with a higher number of credits is given priority for issuance over commands associated with a stream with a lower number.

## Claims

### Claim 1

A method comprising:
receiving, by a memory subsystem, a plurality of streams of memory requests, wherein each stream of memory requests is associated with a source;
determining a bandwidth allocation for each of the plurality of streams of memory requests, wherein each bandwidth allocation represents a portion of a total bandwidth of the memory subsystem in relation to a memory component managed by the memory subsystem;
assigning a set of credits from a total set of credits managed by the memory subsystem to each stream of memory requests based on the bandwidth allocations for each stream of memory requests from the plurality of streams of memory requests; and
determining a memory command from a memory command queue of the memory subsystem for issuance, wherein each memory command in the memory command queue is associated with a stream of memory requests of the plurality of streams of memory requests and the determining the memory command is based on the credits assigned to each stream of memory requests such that memory commands associated with a stream of memory requests with a higher number of assigned credits is given priority for issuance over memory commands associated with a stream of memory requests with a lower number of assigned credits.

### Claim 2 (depends on 1)

The method of claim 1, wherein each source of the plurality of streams of memory requests is an application on a host system.

### Claim 3 (depends on 1)

The method of claim 1, further comprising:
allocating a credit for the memory command from the credits assigned to the stream of memory requests associated with the memory command; and
issuing the memory command to fulfill a corresponding memory request.

### Claim 4 (depends on 1)

The method of claim 1, wherein determining the memory command for issuance comprises:
selecting a stream of memory requests from the plurality of streams of memory requests with a highest number of assigned credits;
determining (1) whether there are memory commands for the selected stream of memory requests in the memory command queue and (2) whether there are any remaining credits for the selected stream of memory requests; and
selecting a next stream of memory requests from the plurality of streams of memory requests with a next highest number of assigned credits in response to determining that (1) there are no memory commands for the selected stream of memory requests in the memory command queue or (2) there are no remaining credits for the selected stream of memory requests.

### Claim 5 (depends on 4)

The method of claim 4, wherein determining the memory command for issuance further comprises:
determining, in response to determining that (1) there is a memory command for the selected stream of memory requests in the memory command queue and (2) there is a remaining credit for the selected stream of memory requests, whether a memory command in the memory command queue that is associated with the selected stream of memory requests is the oldest memory command for a row in the memory component; and
selecting the next stream of memory requests from the plurality of streams of memory requests with the next highest number of assigned credits in response to determining that no pending memory command in the memory command queue that is associated with the selected stream of memory requests is the oldest memory command for a row in the memory component.

### Claim 6 (depends on 5)

The method of claim 5, wherein determining the memory command for issuance further comprises:
determining, in response to determining that there is a pending memory command associated with the selected stream of memory requests that is the oldest memory command for a row in the memory component, whether one or more memory commands can be identified in the memory command queue that (1) has either already been granted a credit or is associated with the selected stream of memory requests or (2) corresponds to a row in the memory component in which a column command, which is the oldest column command for the row, is associated with a stream of memory requests that has credits available; and
selecting an earliest memory command from the one or more memory commands.

### Claim 7 (depends on 6)

The method of claim 6, wherein determining the memory command for issuance further comprises:
determining whether the selected memory command is a row command;
setting, in response to determining that the selected memory command is a row command, a stream of memory requests associated with the column command as the selected stream of memory requests; and
granting the column command a credit from the credits assigned to the selected stream of memory requests,
wherein the selected memory command is the memory command determined for issuance and the method further comprises issuing the selected memory command to fulfill a corresponding memory request.

### Claim 8 (depends on 7)

The method of claim 7, wherein determining the memory command for issuance further comprises:
setting, in response to determining that the selected memory command is not a row command, a stream of memory requests associated with the selected memory command as the selected stream of memory requests; and
granting the selected memory command a credit from the credits assigned to the selected stream of memory requests,
wherein the method further comprises issuing the selected memory command to fulfill a corresponding memory request.

### Claim 9

A non-transitory computer-readable storage medium comprising instructions that, when executed by a processing device, cause the processing device to:
receive a plurality of streams of memory requests, wherein each stream of memory requests is associated with a source;
determine a bandwidth allocation for each of the plurality of streams of memory requests, wherein each bandwidth allocation represents a portion of a total bandwidth of a memory subsystem in relation to a memory component managed by the memory subsystem;
assign a set of credits from a total set of credits managed by the memory subsystem to each stream of memory requests based on the bandwidth allocations for each stream of memory requests from the plurality of streams of memory requests; and
determine a memory command from a memory command queue of the memory subsystem for issuance, wherein each memory command in the memory command queue is associated with a stream of memory requests of the plurality of streams of memory requests and the determining the memory command is based on the credits assigned to each stream of memory requests such that memory commands associated with a stream of memory requests with a higher number of assigned credits is given priority for issuance over memory commands associated with a stream of memory requests with a lower number of assigned credits.

### Claim 10 (depends on 9)

The non-transitory computer-readable medium of claim 9, wherein each source of the plurality of streams of memory requests is an application on a host system.

### Claim 11 (depends on 9)

The non-transitory computer-readable medium of claim 9, wherein the processing device is further to:
allocate a credit for the memory command from the credits assigned to the stream of memory requests associated with the memory command; and
issue the memory command to fulfill a corresponding memory request.

### Claim 12 (depends on 9)

The non-transitory computer-readable medium of claim 9, wherein determining the memory command for issuance comprises:
selecting a stream of memory requests from the plurality of streams of memory requests with a highest number of assigned credits;
determining (1) whether there are memory commands for the selected stream of memory requests in the memory command queue and (2) whether there are any remaining credits for the selected stream of memory requests; and
selecting a next stream of memory requests from the plurality of streams of memory requests with a next highest number of assigned credits in response to determining that (1) there are no memory commands for the selected stream of memory requests in the memory command queue or (2) there are no remaining credits for the selected stream of memory requests.

### Claim 13 (depends on 12)

The non-transitory computer-readable medium of claim 12, wherein determining the memory command for issuance further comprises:
determining, in response to determining that (1) there is a memory command for the selected stream of memory requests in the memory command queue and (2) there is a remaining credit for the selected stream of memory requests, whether a memory command in the memory command queue that is associated with the selected stream of memory requests is the oldest memory command for a row in the memory component; and
selecting the next stream of memory requests from the plurality of streams of memory requests with the next highest number of assigned credits in response to determining that no pending memory command in the memory command queue that is associated with the selected stream of memory requests is the oldest memory command for a row in the memory component.

### Claim 14 (depends on 13)

The non-transitory computer-readable medium of claim 13, wherein determining the memory command for issuance further comprises:
determining, in response to determining that there is a pending memory command associated with the selected stream of memory requests that is the oldest memory command for a row in the memory component, whether one or more memory commands can be identified in the memory command queue that (1) has either already been granted a credit or is associated with the selected stream of memory requests or (2) corresponds to a row in the memory component in which a column command, which is the oldest column command for the row, is associated with a stream of memory requests that has credits available; and
selecting an earliest memory command from the one or more memory commands.

### Claim 15 (depends on 14)

The non-transitory computer-readable medium of claim 14, wherein determining the memory command for issuance further comprises:
determining whether the selected memory command is a row command;
setting, in response to determining that the selected memory command is a row command, a stream of memory requests associated with the column command as the selected stream of memory requests; and
granting the column command a credit from the credits assigned to the selected stream of memory requests,
wherein the selected memory command is the memory command and the method further comprises issuing the selected memory command to fulfill a corresponding memory request.

### Claim 16 (depends on 15)

The non-transitory computer-readable medium of claim 15, wherein determining the memory command for issuance further comprises:
setting, in response to determining that the selected memory command is not a row command, a stream of memory requests associated with the selected memory command as the selected stream of memory requests; and
granting the selected memory command a credit from the credits assigned to the selected stream of memory requests,
wherein the method further comprises issuing the selected memory command to fulfill a corresponding memory request.

### Claim 17

A system comprising:
a memory components; and
a processing device, operatively coupled with the memory component, to:
assign a set of credits from a total set of credits managed by the memory subsystem to each of a plurality of streams of memory requests based on bandwidth allocations for each stream of memory requests from the plurality of streams of memory requests, wherein each bandwidth allocation represents a portion of a total bandwidth of a memory subsystem in relation to a memory component managed by the memory subsystem; and
determine a memory command from a memory command queue of the memory subsystem for issuance, wherein each memory command in the memory command queue is associated with a stream of memory requests of the plurality of streams of memory requests and the determining the memory command is based on the credits assigned to each stream of memory requests such that memory commands associated with a stream of memory requests with a higher number of assigned credits is given priority for issuance over memory commands associated with a stream of memory requests with a lower number of assigned credits.

### Claim 18 (depends on 17)

The system of claim 17, wherein determining the memory command for issuance comprises:
selecting a stream of memory requests from the plurality of streams of memory requests with a highest number of assigned credits;
determining (1) whether there are memory commands for the selected stream of memory requests in the memory command queue and (2) whether there are any remaining credits for the selected stream of memory requests;
selecting a next stream of memory requests from the plurality of streams of memory requests with a next highest number of assigned credits in response to determining that (1) there are no memory commands for the selected stream of memory requests in the memory command queue or (2) there are no remaining credits for the selected stream of memory requests;
determining, in response to determining that (1) there is a memory command for the selected stream of memory requests in the memory command queue and (2) there is a remaining credit for the selected stream of memory requests, whether a memory command in the memory command queue that is associated with the selected stream of memory requests is the oldest memory command for a row in the memory component; and
selecting the next stream of memory requests from the plurality of streams of memory requests with the next highest number of assigned credits in response to determining that no pending memory command in the memory command queue that is associated with the selected stream of memory requests is the oldest memory command for a row in the memory component.

### Claim 19 (depends on 18)

The system of claim 18, wherein determining the memory command for issuance further comprises:
determining, in response to determining that there is a pending memory command associated with the selected stream of memory requests that is the oldest memory command for a row in the memory component, whether one or more memory commands can be identified in the memory command queue that (1) has either already been granted a credit or is associated with the selected stream of memory requests or (2) corresponds to a row in the memory component in which a column command, which is the oldest column command for the row, is associated with a stream of memory requests that has credits available;
selecting an earliest memory command from the one or more memory commands;
determining whether the selected memory command is a row command;
setting, in response to determining that the selected memory command is a row command, a stream of memory requests associated with the column command as the selected stream of memory requests; and
granting the column command a credit from the credits assigned to the selected stream of memory requests,
wherein the selected memory command is the memory command determined for issuance and the method further comprises issuing the selected memory command to fulfill a corresponding memory request.

### Claim 20 (depends on 19)

The system of claim 19, wherein determining the memory command for issuance further comprises:
setting, in response to determining that the selected memory command is not a row command, a stream of memory requests associated with the selected memory command as the selected stream of memory requests; and
granting the selected memory command a credit from the credits assigned to the selected stream of memory requests,
wherein the method further comprises issuing the selected memory command to fulfill a corresponding memory request.
