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
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
neoppod
Commits
3a1bdf4a
Commit
3a1bdf4a
authored
Oct 13, 2017
by
Test
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
X bench-remote / tcp : std benchmark output
parent
9450b6db
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
7 deletions
+15
-7
go/neo/t/neotest
go/neo/t/neotest
+15
-7
No files found.
go/neo/t/neotest
View file @
3a1bdf4a
...
@@ -882,7 +882,7 @@ cmd_bench-cluster() {
...
@@ -882,7 +882,7 @@ cmd_bench-cluster() {
echo
-e
"
\n
*** link latency:"
echo
-e
"
\n
*** link latency:"
peer
=
`
python
-c
"import urlparse as p; u=p.urlparse(
\"
scheme://
$url
\"
); print u.hostname"
`
peer
=
`
python
-c
"import urlparse as p; u=p.urlparse(
\"
scheme://
$url
\"
); print u.hostname"
`
# ping2bench <topic> - converts timings
s from ping to std benchmark
# ping2bench <topic> - converts timings
from ping to std benchmark format
ping2bench
()
{
ping2bench
()
{
# rtt min/avg/max/mdev = 0.028/0.031/0.064/0.007 ms, ipg/ewma 0.038/0.032 ms
# rtt min/avg/max/mdev = 0.028/0.031/0.064/0.007 ms, ipg/ewma 0.038/0.032 ms
# XXX normalize to µs
# XXX normalize to µs
...
@@ -902,13 +902,13 @@ Benchmark$1-avg 1 \\2 ms/op\
...
@@ -902,13 +902,13 @@ Benchmark$1-avg 1 \\2 ms/op\
echo
-e
"
\n
#
`
hostname
`
⇄
$peer
(ping
${
size
}
B)"
echo
-e
"
\n
#
`
hostname
`
⇄
$peer
(ping
${
size
}
B)"
{
$profile
sudo
-n
ping
-i0
-w
3
-s
$size
-q
$peer
||
\
{
$profile
sudo
-n
ping
-i0
-w
3
-s
$size
-q
$peer
||
\
echo
"# skipped -> enable ping in sudo for
`
whoami
`
@
`
hostname
`
"
;
}
|
\
echo
"# skipped -> enable ping in sudo for
`
whoami
`
@
`
hostname
`
"
;
}
|
\
ping2bench
`
hostname
`
-
$peer
/ping/
${
size
}
B
ping2bench
`
hostname
`
-
$peer
/ping
rtt
/
${
size
}
B
echo
-e
"
\n
#
$peer
⇄
`
hostname
`
(ping
${
size
}
B)"
echo
-e
"
\n
#
$peer
⇄
`
hostname
`
(ping
${
size
}
B)"
# TODO profile remotely
# TODO profile remotely
on
$url
"sudo -n ping -i0 -w3 -s
${
size
}
-q
\$
(echo
\$
{SSH_CONNECTION%% *}) ||
\
on
$url
"sudo -n ping -i0 -w3 -s
${
size
}
-q
\$
(echo
\$
{SSH_CONNECTION%% *}) ||
\
echo
\\\"
# skipped -> enable ping in sudo for
\`
whoami
\`
@
\`
hostname
\`\\\"
"
|
\
echo
\\\"
# skipped -> enable ping in sudo for
\`
whoami
\`
@
\`
hostname
\`\\\"
"
|
\
ping2bench
$peer
-
`
hostname
`
/ping/
${
size
}
B
ping2bench
$peer
-
`
hostname
`
/ping
rtt
/
${
size
}
B
done
done
# TODO
# TODO
...
@@ -921,6 +921,14 @@ Benchmark$1-avg 1 \\2 ms/op\
...
@@ -921,6 +921,14 @@ Benchmark$1-avg 1 \\2 ms/op\
# ? tcp pacing
# ? tcp pacing
# net.ipv4.tcp_autocorking (f54b3111 "tcp: auto corking")
# net.ipv4.tcp_autocorking (f54b3111 "tcp: auto corking")
echo
-e
"
\n
*** TCP latency:"
echo
-e
"
\n
*** TCP latency:"
# lattcp2bench <topic> - convert timings from lat_tcp to std benchmark format
lattcp2bench
()
{
# TCP latency using neo2: 52.3468 microseconds
sed
-u
-e
\
"s|^TCP latency using .*:
\(
[0-9.]
\+\)
microseconds.*
\$
|Benchmark
$1
1
\\
1 µs/op
\t
# &|"
}
# 1 = minimum TCP payload
# 1 = minimum TCP payload
# 1460 = 1500 (Ethernet MTU) - 20 (IPv4 header !options) - 20 (TCP header !options)
# 1460 = 1500 (Ethernet MTU) - 20 (IPv4 header !options) - 20 (TCP header !options)
# 1440 = 1500 (Ethernet MTU) - 40 (IPv6 header !options) - 20 (TCP header !options)
# 1440 = 1500 (Ethernet MTU) - 40 (IPv6 header !options) - 20 (TCP header !options)
...
@@ -930,25 +938,25 @@ Benchmark$1-avg 1 \\2 ms/op\
...
@@ -930,25 +938,25 @@ Benchmark$1-avg 1 \\2 ms/op\
echo
-e
"
\n
#
`
hostname
`
⇄
$peer
(lat_tcp.c
${
size
}
B -> lat_tcp.c -s)"
echo
-e
"
\n
#
`
hostname
`
⇄
$peer
(lat_tcp.c
${
size
}
B -> lat_tcp.c -s)"
# TODO profile remotely
# TODO profile remotely
on
$url
"nohup lat_tcp -s </dev/null >/dev/null 2>/dev/null &"
on
$url
"nohup lat_tcp -s </dev/null >/dev/null 2>/dev/null &"
nrun lat_tcp
-m
$size
$peer
nrun lat_tcp
-m
$size
$peer
| lattcp2bench
"
`
hostname
`
-
$peer
/tcprtt(c-c)/
${
size
}
B"
lat_tcp
-S
$peer
lat_tcp
-S
$peer
echo
-e
"
\n
#
`
hostname
`
⇄
$peer
(lat_tcp.c
${
size
}
B -> lat_tcp.go -s)"
echo
-e
"
\n
#
`
hostname
`
⇄
$peer
(lat_tcp.c
${
size
}
B -> lat_tcp.go -s)"
# TODO profile remotely
# TODO profile remotely
on
$url
"nohup lat_tcp_go -s </dev/null >/dev/null 2>/dev/null &"
on
$url
"nohup lat_tcp_go -s </dev/null >/dev/null 2>/dev/null &"
nrun lat_tcp
-m
$size
$peer
nrun lat_tcp
-m
$size
$peer
| lattcp2bench
"
`
hostname
`
-
$peer
/tcprtt(c-go)/
${
size
}
B"
lat_tcp
-S
$peer
lat_tcp
-S
$peer
echo
-e
"
\n
#
$peer
⇄
`
hostname
`
(lat_tcp.c
${
size
}
B -> lat_tcp.c -s)"
echo
-e
"
\n
#
$peer
⇄
`
hostname
`
(lat_tcp.c
${
size
}
B -> lat_tcp.c -s)"
lat_tcp
-s
lat_tcp
-s
# TODO profile remotely
# TODO profile remotely
nrun on
$url
"lat_tcp -m
$size
\$
{SSH_CONNECTION%% *}"
nrun on
$url
"lat_tcp -m
$size
\$
{SSH_CONNECTION%% *}"
| lattcp2bench
"
$peer
-
`
hostname
`
/tcprtt(c-c)/
${
size
}
B"
lat_tcp
-S
localhost
lat_tcp
-S
localhost
echo
-e
"
\n
#
$peer
⇄
`
hostname
`
(lat_tcp.c
${
size
}
B -> lat_tcp.go -s)"
echo
-e
"
\n
#
$peer
⇄
`
hostname
`
(lat_tcp.c
${
size
}
B -> lat_tcp.go -s)"
lat_tcp_go
-s
2>/dev/null &
lat_tcp_go
-s
2>/dev/null &
# TODO profile remotely
# TODO profile remotely
nrun on
$url
"lat_tcp -m
$size
\$
{SSH_CONNECTION%% *}"
nrun on
$url
"lat_tcp -m
$size
\$
{SSH_CONNECTION%% *}"
| lattcp2bench
"
$peer
-
`
hostname
`
/tcprtt(c-go)/
${
size
}
B"
lat_tcp
-S
localhost
lat_tcp
-S
localhost
done
done
...
...
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