Unverified Commit beb65c74 authored by Liangsheng Yin's avatar Liangsheng Yin Committed by GitHub
Browse files

[PD]Reduce kv transfer threads (#5791)

parent 621e96bf
......@@ -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()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment