Commit 630a742b authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 58e7d04b
...@@ -74,7 +74,7 @@ export PATH=$X/ioping:$PATH ...@@ -74,7 +74,7 @@ export PATH=$X/ioping:$PATH
export PATH=$PATH:/sbin:/usr/sbin export PATH=$PATH:/sbin:/usr/sbin
EOF EOF
# NOTE lmbench before env.sh becuase env.sh uses `scripts/os` from lmbench # NOTE lmbench before env.sh because env.sh uses `scripts/os` from lmbench
git clone -o kirr -b x/kirr https://lab.nexedi.com/kirr/lmbench.git git clone -o kirr -b x/kirr https://lab.nexedi.com/kirr/lmbench.git
pushd lmbench/lmbench3/src pushd lmbench/lmbench3/src
make -j`nproc` make -j`nproc`
...@@ -137,15 +137,13 @@ $@ ...@@ -137,15 +137,13 @@ $@
\"" \""
} }
# ---------------------------------------- # ---- net/fs setup + processes control/teardown ----
# NOTE neo/py, wendelin.core, ... - must be pip install'ed - `neotest deploy` cares about that
# init_net - initialize networking # init_net - initialize networking
init_net() { init_net() {
# local our external address IPv4 or IPv6 # local our external address IPv4 or IPv6
myaddr=$(getent hosts `hostname` |grep -v 127.0 |awk '{print $1}') myaddr=$(getent hosts `hostname` |grep -v 127.0 |awk '{print $1}')
test -n "$myaddr" || die "init_net: cannot determiny my network address" test -n "$myaddr" || die "init_net: cannot determine my network address"
# port allocations ([] works for IPv4 too) # port allocations ([] works for IPv4 too)
Abind=[$myaddr]:5551 # NEO admin Abind=[$myaddr]:5551 # NEO admin
...@@ -356,7 +354,7 @@ GENsqlite() { ...@@ -356,7 +354,7 @@ GENsqlite() {
NEOpylite NEOpylite
demo-zbigarray --worksize=$work gen neo://$cluster@$Mbind demo-zbigarray --worksize=$work gen neo://$cluster@$Mbind
xneoctl set cluster stopping xneoctl set cluster stopping
wait # XXX fragile - won't work if there are childs spawned outside wait # XXX fragile - won't work if there are children spawned outside
sync sync
touch $var/generated.sqlite touch $var/generated.sqlite
} }
...@@ -385,11 +383,10 @@ gen_data() { ...@@ -385,11 +383,10 @@ gen_data() {
} }
# ---- main driver ---- # ---- information about system ----
# pyver <egg> (<showas>) - print version of egg # pyver <egg> (<showas>) - print version of egg
pyver() { pyver() {
#return # XXX temp to save time
local egg=$1 local egg=$1
local showas=$2 local showas=$2
test "$showas" == "" && showas=$egg test "$showas" == "" && showas=$egg
...@@ -411,14 +408,13 @@ fkghz() { ...@@ -411,14 +408,13 @@ fkghz() {
echo "${v}GHz" echo "${v}GHz"
} }
# lspci1 <pcidev> <field> - show <field> from lspci information about <pcidev> # lspci1 <pcidev> <field> - show <field> from lspci information about <pcidev>
lspci1() { lspci1() {
lspci -vmm -s $1 |grep "^$2:\\s*" |sed -e "s/^$2:\\s*//" lspci -vmm -s $1 |grep "^$2:\\s*" |sed -e "s/^$2:\\s*//"
} }
# show date/hardware/versions # show date/os/hardware/versions...
header() { system_info() {
echo -n "# "; date --rfc-2822 echo -n "# "; date --rfc-2822
echo "# `whoami`@`hostname --fqdn` ($myaddr)"; echo "# `whoami`@`hostname --fqdn` ($myaddr)";
echo -n "# "; uname -a echo -n "# "; uname -a
...@@ -576,7 +572,9 @@ header() { ...@@ -576,7 +572,9 @@ header() {
pyver wendelin.core pyver wendelin.core
} }
# run benchmarks
# ---- benchmarking ----
Nrun=4 # repeat benchmarks N time Nrun=4 # repeat benchmarks N time
Npar=8 # run so many parallel clients in parallel phase Npar=8 # run so many parallel clients in parallel phase
...@@ -651,7 +649,7 @@ bench_go() { ...@@ -651,7 +649,7 @@ bench_go() {
# command: benchmark when client and storage are on the same computer # command: benchmark when client and storage are on the same computer
cmd_bench-local() { cmd_bench-local() {
echo -e ">>> bench-local" echo -e ">>> bench-local"
header system_info
bench_disk bench_disk
install_trap install_trap
gen_data gen_data
...@@ -702,7 +700,7 @@ cmd_bench-cluster() { ...@@ -702,7 +700,7 @@ cmd_bench-cluster() {
echo -e ">>> bench-cluster $url" echo -e ">>> bench-cluster $url"
echo -e "\n# server:" echo -e "\n# server:"
header system_info
echo -e "\n# client:" echo -e "\n# client:"
on $url ./neotest info-local on $url ./neotest info-local
...@@ -784,7 +782,7 @@ cmd_bench-cluster() { ...@@ -784,7 +782,7 @@ cmd_bench-cluster() {
exit exit
} }
# command: run client workload against sepearate server # command: run client workload against separate server
cmd_run-client() { cmd_run-client() {
goonly="" goonly=""
case "$1" in case "$1" in
...@@ -803,7 +801,7 @@ cmd_run-client() { ...@@ -803,7 +801,7 @@ cmd_run-client() {
# command: print information about local node # command: print information about local node
cmd_info-local() { cmd_info-local() {
init_net init_net
header system_info
} }
# command: print information about remote node # command: print information about remote node
...@@ -869,6 +867,7 @@ esac ...@@ -869,6 +867,7 @@ esac
# rebuild go bits # rebuild go bits
# neo/py, wendelin.core, ... - must be pip install'ed - `neotest deploy` cares about that
go install -v lab.nexedi.com/kirr/neo/go/... go install -v lab.nexedi.com/kirr/neo/go/...
go build -o zhash_go zhash.go go build -o zhash_go zhash.go
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment