test/iscsi_tgt: specify reactor mask from command line

Signed-off-by: Jim Harris <james.r.harris@intel.com>
Change-Id: I1a4d9fd8940e17b2e4854edbe09ee5fe6fd62edb

Reviewed-on: https://review.gerrithub.io/362596
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
This commit is contained in:
Jim Harris 2017-05-25 09:27:36 -07:00 committed by Ben Walker
parent 4b521e1720
commit d67536f6b5
10 changed files with 6 additions and 10 deletions

View File

@ -28,7 +28,7 @@ mkdir -p /usr/local/etc
cp $testdir/its.conf /usr/local/etc/
cp $testdir/auth.conf /usr/local/etc/
$ISCSI_APP -c $testdir/iscsi.conf &
$ISCSI_APP -c $testdir/iscsi.conf -m 0x1 &
pid=$!
echo "Process pid: $pid"

View File

@ -1,5 +1,4 @@
[Global]
ReactorMask 0x1
LogFacility "local7"
[iSCSI]

View File

@ -18,7 +18,7 @@ MALLOC_BLOCK_SIZE=512
rpc_py="python $rootdir/scripts/rpc.py"
$ISCSI_APP -c $testdir/iscsi.conf &
$ISCSI_APP -c $testdir/iscsi.conf -m 0xFFFF &
pid=$!
echo "Process pid: $pid"

View File

@ -1,5 +1,4 @@
[Global]
ReactorMask 0xFFFF
LogFacility "local7"
[iSCSI]

View File

@ -13,7 +13,7 @@ RPC_PORT=5260
fio_py="python $rootdir/scripts/fio.py"
$ISCSI_APP -c $testdir/iscsi.conf &
$ISCSI_APP -c $testdir/iscsi.conf -m 0xFFFF &
pid=$!
echo "Process pid: $pid"

View File

@ -1,5 +1,4 @@
[Global]
ReactorMask 0xFFFF
LogFacility "local7"
[iSCSI]

View File

@ -41,7 +41,8 @@ do
cp $testdir/iscsi.conf $testdir/iscsi.conf.$i
port=$(($RPC_PORT + $i))
echo "Listen 127.0.0.1:$port" >> $testdir/iscsi.conf.$i
$ISCSI_APP -c $testdir/iscsi.conf.$i -s 1000 -i $i &
# TODO: run the different iSCSI instances on non-overlapping CPU masks
$ISCSI_APP -c $testdir/iscsi.conf.$i -s 1000 -i $i -m 0xFFFF &
pid=$!
echo "Process pid: $pid"

View File

@ -1,5 +1,4 @@
[Global]
ReactorMask 0xFFFF
LogFacility "local7"
[iSCSI]

View File

@ -1,5 +1,4 @@
[Global]
ReactorMask 0xFFFF
LogFacility "local7"
[iSCSI]

View File

@ -27,7 +27,7 @@ NETMASK=$INITIATOR_IP/32
rpc_py="python $rootdir/scripts/rpc.py"
fio_py="python $rootdir/scripts/fio.py"
$ISCSI_APP -c $testdir/iscsi.conf &
$ISCSI_APP -c $testdir/iscsi.conf -m 0xFFFF &
pid=$!
trap "killprocess $pid; exit 1" SIGINT SIGTERM EXIT