# US 2025/0094214 A1 · Methods for adjusting a priority of submission queues, hosts, electronic devices, and computer devices

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

- Number: US 2025/0094214 A1
- Document ID: US20250094214A1
- Status: Published application
- Kind: A1
- Application number: 18/424,370
- Filed: 2024-01-26
- Published: 2025-03-20
- Earliest claimed: 2023-09-18
- Assignees: Yangtze Memory Technologies Co., Ltd.
- Applicants: Yangtze Memory Technologies Co., Ltd.
- Inventors: Tianyi Wang
- Web page: https://patentgrep.com/patent/US20250094214A1

## 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/0659: {Command handling arrangements, e.g. command buffers, queues, command scheduling}
- Y02P 90/30: Computing systems specially adapted for manufacturing
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- Y02P: CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS

## Abstract

The present disclosure provides a method for adjusting a priority of a submission queue. The method includes: acquiring latency periods of a plurality of submission queues, wherein the latency periods of the submission queues are determined by an average value of completion periods of a plurality of commands in the submission queues, and the completion period is a difference between a timing at which an execution of the command is completed and a timing at which the command is added to the submission queue; determining latency scores of the submission queues based on the latency periods of the submission queues; determining a target submission queue among the plurality of submission queues based on the latency scores of the submission queues and adjusting the priority of the target submission queue; and sending an instruction to give notification of a result of a priority adjustment of the target submission queue.

## Claims

### Claim 1

A method of adjusting a priority of a submission queue, comprising:
acquiring latency periods of a plurality of submission queues, wherein the latency period of each of the submission queues is determined by an average value of a sum of completion periods of a plurality of commands in each of the submission queues, and the completion period is a difference between a timing at which an execution of the command is completed and a timing at which the command is added to the submission queue;
determining latency scores of the submission queues based on the latency periods of the submission queues;
determining a target submission queue among the plurality of submission queues based on the latency scores of the submission queues and adjusting the priority of the target submission queue; and
sending an instruction to give notification of a result of a priority adjustment of the target submission queue.

### Claim 2 (depends on 1)

The method of claim 1, wherein priorities of the submission queues comprise an urgent class and a weighted round robin arbitration (WWR) class with the urgent class being higher than the WWR class, and
determining the target submission queue among the plurality of submission queues based on the latency scores of the submission queues and adjusting the priority of the target submission queue comprises:
among the plurality of submission queues, determining the submission queue with the highest latency score as a first target submission queue and adjusting the priority of the first target submission queue to be the urgent class; and/or
among the plurality of submission queues, determining the submission queue with the lowest latency score as a second target submission queue and adjusting the priority of the second target submission queue to be the WWR class.

### Claim 3 (depends on 1)

The method of claim 1, wherein determining the target submission queue among the plurality of submission queues based on the latency scores of the submission queues and adjusting the priority of the target submission queue comprises:
determining priority scores of the submission queues based on the latency scores of the submission queues and a number of commands in the submission queues; and
determining the target submission queue among the plurality of submission queues based on the priority scores of the submission queues and adjusting the priority of the target submission queue.

### Claim 4 (depends on 3)

The method of claim 3, wherein priorities of the submission queues comprise an urgent class and a weighted round robin arbitration (WWR) class with the urgent class being higher than the WWR class, and
determining the target submission queue among the plurality of submission queues based on the priority scores of the submission queues and adjusting the priority of the target submission queue comprises:
among the plurality of submission queues, determining the submission queue with the highest priority score as a first target submission queue and adjusting the priority of the first target submission queue to be the urgent class; and/or
among the plurality of submission queues, determining the submission queue with the lowest priority score as a second target submission queue and adjusting the priority of the second target submission queue to be the WWR class.

### Claim 5 (depends on 3)

The method of claim 3, further comprising:
determining the target submission queue among the plurality of submission queues based on the priority scores and latency scores of the submission queues and adjusting the priority of the target submission queue.

### Claim 6 (depends on 5)

The method of claim 5, wherein priorities of the submission queues comprise an urgent class and a weighted round robin arbitration (WWR) class with the urgent class being higher than the WWR class, and
determining the target submission queue among the plurality of submission queues based on the priority scores and latency scores of the submission queues and adjusting the priority of the target submission queue comprises:
among the submission queues with the latency scores higher than a first threshold, determining the submission queue with the highest priority score as a first target submission queue and adjusting the priority of the first target submission queue to be the urgent class; and/or
among the submission queues with the latency scores lower than a second threshold, determining the submission queue with the lowest priority score as a second target submission queue and adjusting the priority of the second target submission queue to be the WWR class, and
wherein the second threshold is lower than the first threshold.

### Claim 7 (depends on 3)

The method of claim 3, wherein the priority score of the submission queue is determined by a product of the latency score of the submission queue and the number of commands in the submission queue.

### Claim 8 (depends on 1)

The method of claim 1, wherein determining the latency scores of the submission queues based on the latency periods of the submission queues comprises:
calculating an average value μ of the latency periods of the plurality of submission queues;
calculating a standard deviation σ of the latency periods of the plurality of submission queues; and
determining the latency scores of the submission queues according to a mean normalization equation
score
i
=
lat
i
-
μ
σ
,
wherein i is a number of the submission queues, lati is the latency period of an ith submission queue, and scorei is the latency score of the ith submission queue.

### Claim 9

A host comprising a host processor and an interface circuit for coupling with a memory system, wherein the host processor is configured to:
acquire latency periods of a plurality of submission queues, wherein the latency periods of the submission queues are determined by an average value of a sum of completion periods of a plurality of commands in the submission queues, and the completion period is a difference between a timing at which an execution of the command is completed and a timing at which the command is added to the submission queue;
determine latency scores of the submission queues based on the latency periods of the submission queues; and
determine a target submission queue among the plurality of submission queues based on the latency scores of the submission queues and adjust a priority of the target submission queue, and
the interface circuit is configured to:
send an instruction to give notification of a result of a priority adjustment of the target submission queue.

### Claim 10 (depends on 9)

The host of claim 9, wherein priorities of the submission queues comprise an urgent class and a weighted round robin arbitration (WWR) class with the urgent class being higher than the WWR class, and
the host processor determining the target submission queue among the plurality of submission queues based on the latency scores of the submission queues and adjusting the priority of the target submission queue is configured to:
among the plurality of submission queues, determine the submission queue with the highest latency score as a first target submission queue and adjust the priority of the first target submission queue to be the urgent class; and/or
among the plurality of submission queues, determine the submission queue with the lowest latency score as a second target submission queue and adjust the priority of the second target submission queue to be the WWR class.

### Claim 11 (depends on 9)

The host of claim 9, wherein the host processor determining the target submission queue among the plurality of submission queues based on the latency scores of the submission queues and adjusting the priority of the target submission queue is configured to:
determine priority scores of the submission queues based on the latency scores of the submission queues and a number of commands in the submission queues; and
determine the target submission queue among the plurality of submission queues based on the priority scores of the submission queues and adjust the priority of the target submission queue.

### Claim 12 (depends on 11)

The host of claim 11, wherein priorities of the submission queues comprise an urgent class and a weighted round robin arbitration (WWR) class with the urgent class being higher than the WWR class, and
the host processor determining the target submission queue among the plurality of submission queues based on the priority scores of the submission queues and adjusting the priority of the target submission queue is configured to:
among the plurality of submission queues, determine the submission queue with the highest priority score as a first target submission queue and adjust the priority of the first target submission queue to be the urgent class; and/or
among the plurality of submission queues, determine the submission queue with the lowest priority score as a second target submission queue and adjust the priority of the second target submission queue to be the WWR class.

### Claim 13 (depends on 9)

The host of claim 9, wherein the host processor is further configured to:
determine the target submission queue among the plurality of submission queues based on the priority scores and latency scores of the submission queues and adjust the priority of the target submission queue.

### Claim 14 (depends on 13)

The host of claim 13, wherein priorities of the submission queues comprise an urgent class and a weighted round robin arbitration (WWR) class with the urgent class being higher than the WWR class, and
the host processor determining the target submission queue among the plurality of submission queues based on the priority scores and latency scores of the submission queues and adjusting the priority of the target submission queue is configured to:
among the submission queues with the latency scores higher than a first threshold, determine the submission queue with the highest priority score as a first target submission queue and adjust the priority of the first target submission queue to be the urgent class; and/or
among the submission queues with the latency scores lower than a second threshold lower than the first threshold, determine the submission queue with the lowest priority score as a second target submission queue and adjust the priority of the second target submission queue to be the WWR class.

### Claim 15 (depends on 9)

The host of claim 9, wherein the priority score of the submission queue is determined by a product of the latency score of the submission queue and a number of commands in the submission queue.

### Claim 16 (depends on 9)

The host of claim 9, wherein the host processor determining the latency scores of the submission queues based on the latency periods of the submission queues is configured to:
calculate an average value μ of the latency periods of the plurality of submission queues;
calculate a standard deviation σ of the latency periods of the plurality of submission queues; and
determine the latency scores of the submission queues according to a mean normalization equation
score
i
=
lat
i
-
μ
σ
,
wherein i is a number of the submission queues, lati is the latency period of an ith submission queue, and scorei is the latency score of the ith submission queue.

### Claim 17

An electronic device comprising a host comprising a first interface and a memory system comprising a second interface, the host and the memory system being coupled with each other through the first interface and the second interface, wherein
the first interface is configured to send a first instruction to the memory system to give notification of a result of a priority adjustment of a target submission queue among a plurality of submission queues; and
the second interface is configured to receive the first instruction from the host and send a second instruction to the host to feedback a reception of the first instruction.

### Claim 18 (depends on 17)

The electronic device of claim 17, wherein after the second interface sends a second instruction to the host to feedback the reception of the first instruction, the memory system executes commands from a plurality of submission queues through the second interface.

### Claim 19 (depends on 18)

The electronic device of claim 18, wherein the memory system executes commands from the plurality of submission queues through the second interfaces based on at least one of the result of the priority adjustment and a weighted round robin arbitration.

### Claim 20 (depends on 18)

The electronic device of claim 18, wherein after the memory system executes the commands, the second interface is configured to:
notify the host of a completion of the commands; and
notify the memory system that an execution result in a completion queue has been checked by the host.
