File tree 3 files changed +24
-4
lines changed
3 files changed +24
-4
lines changed Original file line number Diff line number Diff line change @@ -10,14 +10,16 @@ COPY ./ /root/spdk/
10
10
11
11
RUN dnf install -y git diffutils procps-ng pip kmod hostname wget pkg-config cmake nano systemd-udev
12
12
13
+ RUN yum install -y dosfstools ntfsprogs e2fsprogs ntfs-* gdb parted fio xfsprogs libasan libubsan
14
+
15
+ RUN pip install requests
16
+
13
17
RUN cd spdk && git submodule update --init --depth 1
14
18
15
19
RUN cd spdk && scripts/pkgdep.sh --rdma --pmem --idxd
16
20
17
21
RUN mkdir /tmp/pmem
18
22
19
- RUN #pip3 install grpcio-tools==1.51.3 protobuf==4.22.1
20
-
21
23
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
22
24
23
25
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
Original file line number Diff line number Diff line change @@ -13,14 +13,16 @@ RUN yum install -y /root/spdk/docker/accel-config-libs-4.1.8.git4405db70-2.el9.a
13
13
/root/spdk/docker/accel-config-4.1.8.git4405db70-2.el9.aarch64.rpm \
14
14
/root/spdk/docker/accel-config-devel-4.1.8.git4405db70-2.el9.aarch64.rpm
15
15
16
+ RUN yum install -y dosfstools ntfsprogs e2fsprogs ntfs-* gdb parted fio xfsprogs libasan libubsan
17
+
18
+ RUN pip install requests
19
+
16
20
RUN cd spdk && git submodule update --init --depth 1
17
21
18
22
RUN cd spdk && scripts/pkgdep.sh --rdma --pmem --idxd
19
23
20
24
RUN mkdir /tmp/pmem
21
25
22
- RUN #pip3 install grpcio-tools==1.51.3 protobuf==4.22.1
23
-
24
26
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
25
27
26
28
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
Original file line number Diff line number Diff line change
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 "
You can’t perform that action at this time.
0 commit comments