hacks as of 9 mar
This commit is contained in:
19
nbg1.disktest/Makefile
Normal file
19
nbg1.disktest/Makefile
Normal file
@@ -0,0 +1,19 @@
|
||||
HOST := nbg1.datavibe.net
|
||||
WHEN := $(shell date -u +%Y-%m-%d.%H.%M.%S)
|
||||
|
||||
default: runlog
|
||||
|
||||
runlog:
|
||||
script ./log.$(WHEN).txt bash -c "make run"
|
||||
|
||||
run: sync
|
||||
ssh root@$(HOST) "bash /root/disktest.sh 2>&1"
|
||||
|
||||
sync:
|
||||
rsync -avP ./disktest.sh root@$(HOST):/root/disktest.sh
|
||||
|
||||
clean:
|
||||
rm log.*.txt
|
||||
|
||||
results:
|
||||
grep -ie 'cpu\|encryption\|zfs\|ashift\|64kchunk\|read\|write\|samsung' *.txt | grep -v groupid | grep -v '^readwrite' | grep -v echo | grep -v rm | grep -v Laying
|
||||
72
nbg1.disktest/disktest.sh
Normal file
72
nbg1.disktest/disktest.sh
Normal file
@@ -0,0 +1,72 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -x
|
||||
|
||||
POOLNAME="tank"
|
||||
MPT="/srv/z"
|
||||
JOBFILE="/tmp/jobfile.fio"
|
||||
KEYLOC="/tmp/testkey.raw"
|
||||
|
||||
function main() {
|
||||
show_system_info
|
||||
do_zfs_tests
|
||||
}
|
||||
|
||||
function print_divider() {
|
||||
echo '##############################################################'
|
||||
echo '##############################################################'
|
||||
}
|
||||
|
||||
function show_system_info() {
|
||||
print_divider
|
||||
date -u
|
||||
lsb_release -a
|
||||
uname -a
|
||||
lsblk -t
|
||||
nvme list
|
||||
modinfo zfs | grep -iw version
|
||||
modinfo spl | grep -iw version
|
||||
zfs version
|
||||
print_divider
|
||||
}
|
||||
|
||||
function prep_system() {
|
||||
killall fio || true
|
||||
sleep 1
|
||||
|
||||
}
|
||||
|
||||
function do_zfs_tests() {
|
||||
print_divider
|
||||
|
||||
FO="--eta-newline=10 --eta-interval=10 --eta=always"
|
||||
|
||||
for NJ in 1 16 ; do
|
||||
for BS in 64k ; do
|
||||
for DIRNAME in none comp enc both ; do
|
||||
|
||||
cat > $JOBFILE <<EOF
|
||||
|
||||
[test-$DIRNAME-${BS}chunk-${NJ}thread]
|
||||
bs=$BS
|
||||
directory=$MPT/$DIRNAME/
|
||||
iodepth=64
|
||||
ioengine=libaio
|
||||
readwrite=readwrite
|
||||
numjobs=$NJ
|
||||
nrfiles=$NJ
|
||||
size=10000M
|
||||
runtime=120
|
||||
time_based=1
|
||||
group_reporting=1
|
||||
EOF
|
||||
cat $JOBFILE
|
||||
fio $FO $JOBFILE 2>&1
|
||||
rm -rf $MPT/$DIRNAME/*
|
||||
done
|
||||
done
|
||||
done
|
||||
|
||||
}
|
||||
|
||||
main
|
||||
9
nbg1.disktest/log.2020-02-28.21.46.16.txt
Normal file
9
nbg1.disktest/log.2020-02-28.21.46.16.txt
Normal file
@@ -0,0 +1,9 @@
|
||||
Script started on Fri Feb 28 13:46:16 2020
|
||||
command: bash -c make run
|
||||
rsync -avP ./disktest.sh root@nbg1.datavibe.net:/root/disktest.sh
|
||||
bash: rsync: command not found
|
||||
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
|
||||
rsync error: remote command not found (code 127) at io.c(226) [sender=3.1.3]
|
||||
make[1]: *** [sync] Error 127
|
||||
|
||||
Script done on Fri Feb 28 13:46:16 2020
|
||||
692
nbg1.disktest/log.2020-02-28.21.46.25.txt
Normal file
692
nbg1.disktest/log.2020-02-28.21.46.25.txt
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user