[PD]Reduce kv transfer threads (#5791)

This commit is contained in:
Liangsheng Yin
2025-04-27 23:03:30 +08:00
committed by GitHub
parent 621e96bf9b
commit beb65c7433

View File

@@ -149,7 +149,7 @@ class MooncakeKVManager(BaseKVManager):
# Determine the number of threads to use for kv sender
cpu_count = os.cpu_count()
self.executor = concurrent.futures.ThreadPoolExecutor(
max_workers=cpu_count if cpu_count is not None else 64
min(cpu_count // 4, 16)
)
elif self.disaggregation_mode == DisaggregationMode.DECODE:
self.start_decode_thread()