Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Take CPU Affinity into consideration for Best Effort #17

Open
aisensiy opened this issue Dec 5, 2023 · 1 comment
Open

Take CPU Affinity into consideration for Best Effort #17

aisensiy opened this issue Dec 5, 2023 · 1 comment

Comments

@aisensiy
Copy link

aisensiy commented Dec 5, 2023

Here is a 8 cards 4090 server nvidia topo -m result:

	GPU0	GPU1	GPU2	GPU3	GPU4	GPU5	GPU6	GPU7	NIC0	NIC1	CPU Affinity	NUMA Affinity	GPU NUMA ID
GPU0	 X 	SYS	SYS	SYS	SYS	SYS	SYS	SYS	SYS	SYS	0-55,112-167	0		N/A
GPU1	SYS	 X 	SYS	SYS	SYS	SYS	SYS	SYS	SYS	SYS	0-55,112-167	0		N/A
GPU2	SYS	SYS	 X 	SYS	SYS	SYS	SYS	SYS	SYS	SYS	0-55,112-167	0		N/A
GPU3	SYS	SYS	SYS	 X 	SYS	SYS	SYS	SYS	SYS	SYS	0-55,112-167	0		N/A
GPU4	SYS	SYS	SYS	SYS	 X 	SYS	SYS	SYS	SYS	SYS	56-111,168-223	1		N/A
GPU5	SYS	SYS	SYS	SYS	SYS	 X 	SYS	SYS	SYS	SYS	56-111,168-223	1		N/A
GPU6	SYS	SYS	SYS	SYS	SYS	SYS	 X 	SYS	PHB	PHB	56-111,168-223	1		N/A
GPU7	SYS	SYS	SYS	SYS	SYS	SYS	SYS	 X 	SYS	SYS	56-111,168-223	1		N/A
NIC0	SYS	SYS	SYS	SYS	SYS	SYS	PHB	SYS	 X 	PIX
NIC1	SYS	SYS	SYS	SYS	SYS	SYS	PHB	SYS	PIX	 X

All of the Connectivity is SYS. But in llm inference situation, when scheduling two cards with different CPU Affinity together, the inference speed will be very slower than one card.

More info can be found here vllm-project/vllm#1838

@klueska
Copy link
Contributor

klueska commented Dec 5, 2023

Sounds like you want to enable the topology manager, which will assure this kind of alignment:
https://kubernetes.io/blog/2020/04/01/kubernetes-1-18-feature-topoloy-manager-beta/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants