mirror of
https://github.com/kvcache-ai/Mooncake.git
synced 2026-11-05 01:17:55 +00:00
[GH-ISSUE #12] Failed to set socket affinity #7
Labels
No labels
ascend
auto-closed
bug
bug
CI/Build
Common
documentation
enhancement
feature request
good first issue
help wanted
high priority
MetaX
nightly-failure
pull-request
PyTorch Backend
question
RFC
Roadmap
stale
Store
Tests
Transfer Engine
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
kvcache-ai/Mooncake#7
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @BaiStone2017 on GitHub (Dec 3, 2024).
Original GitHub issue: https://github.com/kvcache-ai/Mooncake/issues/12
My mooncake config file as follow:


While I run those commands:
etcd --listen-client-urls http://0.0.0.0:2379 --advertise-client-urls http://192.169.137.233:2379NCCL_DEBUG=INFO VLLM_LOGGING_LEVEL=DEBUG VLLM_HOST_IP=192.169.137.233 VLLM_PORT="51000" MASTER_ADDR=192.169.137.233 MASTER_PORT="54324" MOONCAKE_CONFIG_PATH=./mooncake_tcp.json VLLM_DISTRIBUTED_KV_ROLE=producer python3 -m vllm.entrypoints.openai.api_server --model qwen2-7b --port 8100 --max-model-len 4096 --gpu-memory-utilization 0.9 --disable-log-stats --disable-log-requestsand
NCCL_DEBUG=INFO VLLM_LOGGING_LEVEL=DEBUG VLLM_HOST_IP=192.169.137.233 VLLM_PORT="51000" MASTER_ADDR=192.169.137.233 MASTER_PORT="54324" MOONCAKE_CONFIG_PATH=./mooncake_tcp.json VLLM_DISTRIBUTED_KV_ROLE=consumer python3 -m vllm.entrypoints.openai.api_server --model qwen2-7b --port 8200 --max-model-len 4096 --gpu-memory-utilization 0.9 --disable-log-stats --disable-log-requestsOnly in VLLM_DISTRIBUTED_KV_ROLE=producer instance occur as follow:
Is this normal? Although this does not affect normal inference.
@alogfans commented on GitHub (Dec 4, 2024):
It seems that
bindToSocket()incommon.hnot worked as expected. Can you provide the value ofsocket_idandcpu_setinbindToSocket(), as well the output ofnumactl -H?@BaiStone2017 commented on GitHub (Dec 4, 2024):
@alogfans commented on GitHub (Dec 5, 2024):
Our current implementation uses the numa_* family of interfaces to get a list of threads located at NUMA 0 that matches what numactl -H shows, but only a number of them are available in a container environment, so populating the cpu_set is limited to the ones located at Available CPUs (36/37). You can try this.
@BaiStone2017 commented on GitHub (Dec 5, 2024):
谢谢。请问下,如果指定线程id,需要怎么样修改代码?
@alogfans commented on GitHub (Dec 10, 2024):
You can try out our latest patch. As shown in
mooncake-transfer-engine/include/common.h, we usenuma_all_cpus_ptrto identify available cpus for current process.@BaiStone2017 commented on GitHub (Dec 10, 2024):
thx