Merge pull request #311 from Azure/vdbench_32

Vdbench 32
This commit is contained in:
Rebecca Makar 2019-02-19 16:36:27 -05:00 коммит произвёл GitHub
Родитель 6b2d6170bd e80241e24d
Коммит c6c790a4a9
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 90 добавлений и 2 удалений

Просмотреть файл

@ -228,6 +228,49 @@ EOM
chown $LINUX_USER:$LINUX_USER $FILENAME
}
function write_3node_inmem32() {
FILENAME=/home/$LINUX_USER/inmem32node3.conf
/bin/cat <<EOM >$FILENAME
create_anchors=yes
include=azure-clients.conf
fsd=default,depth=1,width=1,files=64,size=32m
EOM
COUNTER=0
for VFXT in $(echo $NFS_IP_CSV | sed "s/,/ /g")
do
MOUNT_POINT="${BASE_DIR}${NODE_MOUNT_PREFIX}${COUNTER}"
FSD_HOST="host-${COUNTER}"
echo "fsd=fsd!${FSD_HOST},anchor=${MOUNT_POINT}/vdbench/!sizedir/!${FSD_HOST}" >> $FILENAME
COUNTER=$(($COUNTER + 1))
done
/bin/cat <<EOM >>$FILENAME
fwd=default,xfersize=512k,fileio=sequential,fileselect=sequential,threads=24
fwd=fwdW!host,host=!host,fsd=(fsd!host*),operation=write,openflags=fsync
fwd=fwdR!host,host=!host,fsd=(fsd!host*),operation=read,openflags=o_direct
rd=default,elapsed=1080,fwdrate=max,interval=1,maxdata=144g
rd=makedirs1,fwd=(fwdWhost*),operations=(mkdir),maxdata=1m
rd=makefiles1,fwd=(fwdWhost*),operations=(create),maxdata=1m
rd=writefiles1,fwd=(fwdWhost*)
rd=writeread1,fwd=(fwdRhost*,fwdWhost*)
rd=readall1,fwd=(fwdRhost*),format=no,maxdata=432g
rd=writefiles2,fwd=(fwdWhost*)
rd=writeread2,fwd=(fwdRhost*,fwdWhost*)
rd=readall2,fwd=(fwdRhost*),format=no,maxdata=432g
rd=writefiles3,fwd=(fwdWhost*)
rd=writeread3,fwd=(fwdRhost*,fwdWhost*)
rd=readall3,fwd=(fwdRhost*),format=no,maxdata=432g
EOM
chown $LINUX_USER:$LINUX_USER $FILENAME
}
function write_ondisk() {
FILENAME=/home/$LINUX_USER/ondisk.conf
/bin/cat <<EOM >$FILENAME
@ -272,6 +315,50 @@ EOM
chown $LINUX_USER:$LINUX_USER $FILENAME
}
function write_3node_32_ondisk() {
FILENAME=/home/$LINUX_USER/ondisk32.conf
/bin/cat <<EOM >$FILENAME
create_anchors=yes
include=azure-clients.conf
fsd=default,depth=1,width=1,files=768,size=64m
EOM
COUNTER=0
for VFXT in $(echo $NFS_IP_CSV | sed "s/,/ /g")
do
MOUNT_POINT="${BASE_DIR}${NODE_MOUNT_PREFIX}${COUNTER}"
FSD_HOST="host-${COUNTER}"
echo "fsd=fsd!${FSD_HOST},anchor=${MOUNT_POINT}/!junction/!sizedir/!${FSD_HOST}" >> $FILENAME
COUNTER=$(($COUNTER + 1))
done
/bin/cat <<EOM >>$FILENAME
fwd=format,threads=18,xfersize=512k,openflags=fsync
fwd=default,xfersize=512k,fileio=sequential,fileselect=sequential,threads=18
fwd=fwdW!host,host=!host,fsd=(fsd!host*),operation=write,openflags=fsync
fwd=fwdR!host,host=!host,fsd=(fsd!host*),operation=read,openflags=o_direct
rd=default,elapsed=2400,fwdrate=max,interval=1,maxdata=1728g
rd=makedirs1,fwd=(fwdWhost*),operations=(mkdir),maxdata=1m
rd=makefiles1,fwd=(fwdWhost*),operations=(create),maxdata=1m
rd=writefiles1,fwd=(fwdWhost*)
rd=writeread1,fwd=(fwdRhost*,fwdWhost*)
rd=readall1,fwd=(fwdRhost*)
rd=writefiles2,fwd=(fwdWhost*)
rd=writeread2,fwd=(fwdRhost*,fwdWhost*)
rd=readall2,fwd=(fwdRhost*)
rd=writefiles3,fwd=(fwdWhost*)
rd=writeread3,fwd=(fwdRhost*,fwdWhost*)
rd=readall3,fwd=(fwdRhost*)
EOM
chown $LINUX_USER:$LINUX_USER $FILENAME
}
function write_throughput() {
FILENAME=/home/$LINUX_USER/throughput.conf
/bin/cat <<EOM >$FILENAME
@ -355,6 +442,7 @@ function write_vdbench_files() {
write_copy_idrsa
write_azure_clients
write_inmem
write_3node_inmem32
write_ondisk
write_throughput
write_smallfileIO

Просмотреть файл

@ -25,7 +25,7 @@ class TestVDBench:
commands = """
sudo mkdir -p /nfs/node0/bootstrap
cd /nfs/node0/bootstrap
sudo curl --retry 5 --retry-delay 5 -o /nfs/node0/bootstrap/bootstrap.vdbench.sh https://raw.githubusercontent.com/Azure/Avere/master/src/clientapps/vdbench/bootstrap.vdbench.sh
sudo curl --retry 5 --retry-delay 5 -o /nfs/node0/bootstrap/bootstrap.vdbench.sh https://raw.githubusercontent.com/Azure/Avere/vdbench_32/src/clientapps/vdbench/bootstrap.vdbench.sh
sudo curl --retry 5 --retry-delay 5 -o /nfs/node0/bootstrap/vdbench50407.zip https://avereimageswestus.blob.core.windows.net/vdbench/vdbench50407.zip
sudo curl --retry 5 --retry-delay 5 -o /nfs/node0/bootstrap/vdbenchVerify.sh https://raw.githubusercontent.com/Azure/Avere/master/src/clientapps/vdbench/vdbenchVerify.sh
sudo chmod +x /nfs/node0/bootstrap/vdbenchVerify.sh
@ -81,7 +81,7 @@ class TestVDBench:
commands = """
~/copy_idrsa.sh
cd
./run_vdbench.sh inmem.conf uniquestring1
./run_vdbench.sh inmem32node3.conf uniquestring1
""".split("\n")
run_ssh_commands(ssh_client, commands)
finally: