]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
src/vstart.sh: correct top_cpu's value 48437/head
authorluo rixin <luorixin@huawei.com>
Tue, 11 Oct 2022 07:44:05 +0000 (15:44 +0800)
committerluo rixin <luorixin@huawei.com>
Tue, 11 Oct 2022 07:44:20 +0000 (15:44 +0800)
Signed-off-by: luo rixin <luorixin@huawei.com>
src/vstart.sh

index 7aab8c5a1d679a54e4f1105fea2838159575ad8e..bc4e0afe5ef5930ca68665a74f14844c05955cd0 100755 (executable)
@@ -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