Queue scheduling method and device, and computer storage medium
First Claim
1. A queue scheduling method, wherein a scheduling extension unit is arranged, comprising:
- receiving an enqueuing trigger message by the scheduling extension unit after a queue is written in a queue cache, wherein the enqueuing trigger message includes a queue identifier;
writing the queue identifier in a queue identifier cache and setting a state of the queue identifier to be in the queue identifier cache by the scheduling extension unit;
acquiring queue information of the queue and sending an enqueuing report to a scheduling unit by the scheduling extension unit when no authorization arrives; and
determining, by the scheduling unit, whether to schedule the queue according to the queue information of the queue;
wherein the queue information comprises a queue depth and a queue authorized value;
determining, by the scheduling unit, whether to schedule the queue according to the queue information of the queue comprises;
the scheduling unit setting a scheduling state of the queue; and
determining, by the scheduling unit, whether the queue is to be scheduled according to the queue information of the queue after the scheduling unit receives the enqueuing report, comprises;
the scheduling unit scheduling the queue and setting a scheduling state of the queue as a scheduling-joined state when a scheduling state of the queue is a scheduling-unjoined state and a queue depth and a queue authorized value of the queue are not zero; and
the scheduling unit discarding the enqueuing report and stopping processing the queue when the scheduling state of the queue is a scheduling-joined state and a queue depth or a queue authorized value of the queue is zero.
1 Assignment
0 Petitions
Accused Products
Abstract
Embodiments of the present disclosure disclose a queue scheduling method and device, and a computer storage medium. The method includes: arranging a scheduling expansion unit; receiving an enqueuing trigger message by the scheduling extension unit after a queue is written in a queue cache, where the enqueuing trigger message has a queue identifier and queue information of the queue; writing the queue identifier in a queue identifier cache and setting a state of the queue identifier to be in the queue identifier cache by the scheduling extension unit; sending an enqueuing report to a scheduling unit by the scheduling extension unit when no authorization arrives; and determining, by the scheduling unit, whether to schedule the queue according to the queue information of the queue.
1 Citation
20 Claims
-
1. A queue scheduling method, wherein a scheduling extension unit is arranged, comprising:
-
receiving an enqueuing trigger message by the scheduling extension unit after a queue is written in a queue cache, wherein the enqueuing trigger message includes a queue identifier; writing the queue identifier in a queue identifier cache and setting a state of the queue identifier to be in the queue identifier cache by the scheduling extension unit; acquiring queue information of the queue and sending an enqueuing report to a scheduling unit by the scheduling extension unit when no authorization arrives; and determining, by the scheduling unit, whether to schedule the queue according to the queue information of the queue; wherein the queue information comprises a queue depth and a queue authorized value; determining, by the scheduling unit, whether to schedule the queue according to the queue information of the queue comprises;
the scheduling unit setting a scheduling state of the queue; anddetermining, by the scheduling unit, whether the queue is to be scheduled according to the queue information of the queue after the scheduling unit receives the enqueuing report, comprises; the scheduling unit scheduling the queue and setting a scheduling state of the queue as a scheduling-joined state when a scheduling state of the queue is a scheduling-unjoined state and a queue depth and a queue authorized value of the queue are not zero; and the scheduling unit discarding the enqueuing report and stopping processing the queue when the scheduling state of the queue is a scheduling-joined state and a queue depth or a queue authorized value of the queue is zero. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11)
-
-
12. A queue scheduling device, comprising:
-
a processor and a storage device, wherein the storage device stores processor-executable programs, and the programs comprise a scheduling extension unit and a scheduling unit, wherein the scheduling extension unit is configured for;
receiving an enqueuing trigger message after a queue is written in a queue cache, wherein the enqueuing trigger message includes a queue identifier and queue information of a queue;writing the queue identifier in the queue identifier cache and setting a state of the queue identifier to be in the queue identifier cache; and acquiring queue information of the queue and sending an enqueuing report to the scheduling unit when no authorization arrives; the scheduling unit is configured for;
determining whether to schedule the queue according to the queue information of the queue;wherein the queue information comprises a queue depth and a queue authorized value; the scheduling unit is configured for setting a scheduling state of the queue; and after receiving the enqueuing report, the scheduling unit is further configured for;
scheduling the queue and setting a scheduling state of the queue as a scheduling-joined state when a scheduling state of the queue is a scheduling-unjoined state and a queue depth and a queue authorized value of the queue are not zero; and
discarding the enqueuing report and stopping processing the queue when a scheduling state of the queue is a scheduling-joined state and a queue depth or a queue authorized value of the queue is zero. - View Dependent Claims (13, 14, 15, 16, 17, 18, 19)
-
-
20. A non-transitory computer storage medium, in which a computer executable instruction is stored and is used for executing a queue scheduling method, wherein a scheduling extension unit is arranged, comprising:
-
receiving an enqueuing trigger message by the scheduling extension unit after a queue is written in a queue cache, wherein the enqueuing trigger message includes a queue identifier; writing the queue identifier in a queue identifier cache and setting a state of the queue identifier to be in the queue identifier cache by the scheduling extension unit; acquiring queue information of the queue and sending an enqueuing report to a scheduling unit by the scheduling extension unit when no authorization arrives; and determining, by the scheduling unit, whether to schedule the queue according to the queue information of the queue; wherein the queue information comprises a queue depth and a queue authorized value; determining, by the scheduling unit, whether to schedule the queue according to the queue information of the queue comprises;
the scheduling unit setting a scheduling state of the queue; anddetermining, by the scheduling unit, whether the queue is to be scheduled according to the queue information of the queue after the scheduling unit receives the enqueuing report, comprises; the scheduling unit scheduling the queue and setting a scheduling state of the queue as a scheduling-joined state when a scheduling state of the queue is a scheduling-unjoined state, and a queue depth and a queue authorized value of the queue are not zero; and the scheduling unit discarding the enqueuing report and stopping processing the queue when the scheduling state of the queue is a scheduling-joined state; and
a queue depth or a queue authorized value of the queue is zero.
-
Specification