Multi-thread scheduling method, server, and computer system
AssigneeHuawei Technologies Co., Ltd.
InventorsXiuchang Li, Hui Chen, Jianhai Luan
Life of this patent
Estimating the term…
Abstract
A multi-thread scheduling method, a server, and a computer system, are described. The method includes: determining an affinity between the first thread and the second thread based on first memory access information of the first thread in a first running phase and second memory access information of the second thread in a second running phase; determining a first node based on the first memory access information, the second memory access information, and the affinity; determining that a resource measurement value of the first node is less than a resource threshold; and selecting, from the first node, a processor configured to run the first thread and the second thread.
Claims20
A multi-thread scheduling method, comprising:
- determining an affinity between a first thread and a second thread based on first memory access information of the first thread in a first running phase and second memory access information of the second thread in a second running phase;
- determining a first node based on the first memory access information, the second memory access information, and the affinity;
- determining that a resource measurement value of the first node is less than a resource threshold;
- and
- selecting, based on the first node, a processor configured to run the first thread and the second thread.
A computer system, comprising;
- a memory configured to store instructions;
- and
- a processing device configured to execute the instructions in the memory, to enable the computer system to:
- determine an affinity between a first thread and a second thread based on first memory access information of the first thread in a first running phase and second memory access information of the second thread in a second running phase;
- determine a first node based on the first memory access information, the second memory access information, and the affinity;
- determine that a resource measurement value of the first node is less than a resource threshold;
- and
- select, based on the first node, a processor configured to run the first thread and the second thread.
A computer-readable storage medium, comprising instructions, wherein when the instructions are executed by a processing device of a computer system, the computer system is enabled to:
- determine an affinity between a first thread and a second thread based on first memory access information of the first thread in a first running phase and second memory access information of the second thread in a second running phase;
- determine a first node based on the first memory access information, the second memory access information, and the affinity;
- determine that a resource measurement value of the first node is less than a resource threshold;
- and
- select, based on the first node, a processor configured to run the first thread and the second thread.
Dependencies are inferred from the claim text.