Skip to content

Commit 4a2b171

Browse files
Merge branch 'v24.05.x' into lvolstore-ha-snapshot
2 parents c3341b9 + 0f2d334 commit 4a2b171

File tree

3 files changed

+24
-4
lines changed

3 files changed

+24
-4
lines changed

docker/Dockerfile_spdk

+4-2
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,16 @@ COPY ./ /root/spdk/
1010

1111
RUN dnf install -y git diffutils procps-ng pip kmod hostname wget pkg-config cmake nano systemd-udev
1212

13+
RUN yum install -y dosfstools ntfsprogs e2fsprogs ntfs-* gdb parted fio xfsprogs libasan libubsan
14+
15+
RUN pip install requests
16+
1317
RUN cd spdk && git submodule update --init --depth 1
1418

1519
RUN cd spdk && scripts/pkgdep.sh --rdma --pmem --idxd
1620

1721
RUN mkdir /tmp/pmem
1822

19-
RUN #pip3 install grpcio-tools==1.51.3 protobuf==4.22.1
20-
2123
RUN sed -i "s/^#define SPDK_BDEV_QOS_MIN_IOS_PER_SEC.*/#define SPDK_BDEV_QOS_MIN_IOS_PER_SEC\t200/" /root/spdk/lib/bdev/bdev.c
2224

2325
RUN sed -i "s/^#define SPDK_BDEV_QOS_TIMESLICE_IN_USEC.*/#define SPDK_BDEV_QOS_TIMESLICE_IN_USEC\t5000/" /root/spdk/lib/bdev/bdev.c

docker/Dockerfile_spdk_arm

+4-2
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,16 @@ RUN yum install -y /root/spdk/docker/accel-config-libs-4.1.8.git4405db70-2.el9.a
1313
/root/spdk/docker/accel-config-4.1.8.git4405db70-2.el9.aarch64.rpm \
1414
/root/spdk/docker/accel-config-devel-4.1.8.git4405db70-2.el9.aarch64.rpm
1515

16+
RUN yum install -y dosfstools ntfsprogs e2fsprogs ntfs-* gdb parted fio xfsprogs libasan libubsan
17+
18+
RUN pip install requests
19+
1620
RUN cd spdk && git submodule update --init --depth 1
1721

1822
RUN cd spdk && scripts/pkgdep.sh --rdma --pmem --idxd
1923

2024
RUN mkdir /tmp/pmem
2125

22-
RUN #pip3 install grpcio-tools==1.51.3 protobuf==4.22.1
23-
2426
RUN sed -i "s/^#define SPDK_BDEV_QOS_MIN_IOS_PER_SEC.*/#define SPDK_BDEV_QOS_MIN_IOS_PER_SEC\t200/" /root/spdk/lib/bdev/bdev.c
2527

2628
RUN sed -i "s/^#define SPDK_BDEV_QOS_TIMESLICE_IN_USEC.*/#define SPDK_BDEV_QOS_TIMESLICE_IN_USEC\t5000/" /root/spdk/lib/bdev/bdev.c

scripts/run_spdk_tgt.sh

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/usr/bin/env bash
2+
set -x
3+
4+
modprobe nvme-tcp
5+
modprobe nbd
6+
export spdk=/root/spdk
7+
export cpu_mask=$1
8+
export HUGEMEM=$2
9+
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$spdk/build/lib:$spdk/dpdk/build/lib"
10+
SPDK_SOCK=$3
11+
if [ -z "$SPDK_SOCK" ] ; then
12+
SPDK_SOCK=/var/tmp/spdk.sock
13+
fi
14+
export SPDK_SOCK
15+
$spdk/scripts/setup.sh
16+
$spdk/build/bin/spdk_tgt -m "$cpu_mask" -r "$SPDK_SOCK"

0 commit comments

Comments
 (0)