Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neoppod
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Levin Zimmermann
neoppod
Commits
630a742b
Commit
630a742b
authored
Oct 05, 2017
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
58e7d04b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
16 deletions
+15
-16
go/neo/t/neotest
go/neo/t/neotest
+15
-16
No files found.
go/neo/t/neotest
View file @
630a742b
...
...
@@ -74,7 +74,7 @@ export PATH=$X/ioping:$PATH
export PATH=
$PATH
:/sbin:/usr/sbin
EOF
# NOTE lmbench before env.sh bec
ua
se env.sh uses `scripts/os` from lmbench
# NOTE lmbench before env.sh bec
au
se env.sh uses `scripts/os` from lmbench
git clone
-o
kirr
-b
x/kirr https://lab.nexedi.com/kirr/lmbench.git
pushd
lmbench/lmbench3/src
make
-j
`
nproc
`
...
...
@@ -137,15 +137,13 @@ $@
\"
"
}
# ----------------------------------------
# NOTE neo/py, wendelin.core, ... - must be pip install'ed - `neotest deploy` cares about that
# ---- net/fs setup + processes control/teardown ----
# init_net - initialize networking
init_net
()
{
# local our external address IPv4 or IPv6
myaddr
=
$(
getent hosts
`
hostname
`
|grep
-v
127.0 |awk
'{print $1}'
)
test
-n
"
$myaddr
"
||
die
"init_net: cannot determin
y
my network address"
test
-n
"
$myaddr
"
||
die
"init_net: cannot determin
e
my network address"
# port allocations ([] works for IPv4 too)
Abind
=[
$myaddr
]
:5551
# NEO admin
...
...
@@ -356,7 +354,7 @@ GENsqlite() {
NEOpylite
demo-zbigarray
--worksize
=
$work
gen neo://
$cluster
@
$Mbind
xneoctl
set
cluster stopping
wait
# XXX fragile - won't work if there are child
s
spawned outside
wait
# XXX fragile - won't work if there are child
ren
spawned outside
sync
touch
$var
/generated.sqlite
}
...
...
@@ -385,11 +383,10 @@ gen_data() {
}
# ----
main driver
----
# ----
information about system
----
# pyver <egg> (<showas>) - print version of egg
pyver
()
{
#return # XXX temp to save time
local
egg
=
$1
local
showas
=
$2
test
"
$showas
"
==
""
&&
showas
=
$egg
...
...
@@ -411,14 +408,13 @@ fkghz() {
echo
"
${
v
}
GHz"
}
# lspci1 <pcidev> <field> - show <field> from lspci information about <pcidev>
lspci1
()
{
lspci
-vmm
-s
$1
|grep
"^
$2
:
\\
s*"
|sed
-e
"s/^
$2
:
\\
s*//"
}
# show date/
hardware/versions
header
()
{
# show date/
os/hardware/versions...
system_info
()
{
echo
-n
"# "
;
date
--rfc-2822
echo
"#
`
whoami
`
@
`
hostname
--fqdn
`
(
$myaddr
)"
;
echo
-n
"# "
;
uname
-a
...
...
@@ -576,7 +572,9 @@ header() {
pyver wendelin.core
}
# run benchmarks
# ---- benchmarking ----
Nrun
=
4
# repeat benchmarks N time
Npar
=
8
# run so many parallel clients in parallel phase
...
...
@@ -651,7 +649,7 @@ bench_go() {
# command: benchmark when client and storage are on the same computer
cmd_bench-local
()
{
echo
-e
">>> bench-local"
header
system_info
bench_disk
install_trap
gen_data
...
...
@@ -702,7 +700,7 @@ cmd_bench-cluster() {
echo
-e
">>> bench-cluster
$url
"
echo
-e
"
\n
# server:"
header
system_info
echo
-e
"
\n
# client:"
on
$url
./neotest info-local
...
...
@@ -784,7 +782,7 @@ cmd_bench-cluster() {
exit
}
# command: run client workload against sep
e
arate server
# command: run client workload against separate server
cmd_run-client
()
{
goonly
=
""
case
"
$1
"
in
...
...
@@ -803,7 +801,7 @@ cmd_run-client() {
# command: print information about local node
cmd_info-local
()
{
init_net
header
system_info
}
# command: print information about remote node
...
...
@@ -869,6 +867,7 @@ esac
# 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 build
-o
zhash_go zhash.go
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment