From 0adc3329811d4d1418ff32898f1d840c5ac28eab Mon Sep 17 00:00:00 2001 From: luo rixin Date: Tue, 11 Oct 2022 15:44:05 +0800 Subject: [PATCH] src/vstart.sh: correct top_cpu's value Signed-off-by: luo rixin --- src/vstart.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vstart.sh b/src/vstart.sh index 7aab8c5a1d679..bc4e0afe5ef59 100755 --- a/src/vstart.sh +++ b/src/vstart.sh @@ -969,7 +969,7 @@ start_osd() { local extra_seastar_args if [ "$ceph_osd" == "crimson-osd" ]; then bottom_cpu=$(( osd * crimson_smp )) - top_cpu=$(( bottom_cpu + crimson_smp )) + top_cpu=$(( bottom_cpu + crimson_smp - 1 )) # set a single CPU nodes for each osd extra_seastar_args="--smp $crimson_smp --cpuset $bottom_cpu-$top_cpu" if [ "$debug" -ne 0 ]; then -- 2.39.5