Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Kirill Smelkov
neo
Commits
659ce938
Commit
659ce938
authored
Oct 10, 2017
by
Kirill Smelkov
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
X neotest: Adjust ping and TCP RR sizes to fit 1 Ethernet frame, etc...
parent
af41382e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
go/neo/t/neotest
go/neo/t/neotest
+10
-2
No files found.
go/neo/t/neotest
View file @
659ce938
...
...
@@ -786,7 +786,11 @@ cmd_bench-cluster() {
echo
-e
"
\n
*** link latency:"
peer
=
`
python
-c
"import urlparse as p; u=p.urlparse(
\"
scheme://
$url
\"
); print u.hostname"
`
sizev
=
"56 1472"
# 16 = minimum ping payload size at which it starts putting struct timeval into payload and print RTT
# 1472 = 1500 (Ethernet MTU) - 20 (IPv4 header !options) - 8 (ICMPv4 header)
# 1452 = 1500 (Ethernet MTU) - 40 (IPv6 header !options) - 8 (ICMPv6 header)
# FIXME somehow IPv6 uses lower MTU than 1500 - recheck
sizev
=
"16 1452"
# max = min(IPv4, IPv6) so that it is always only 1 Ethernet frame on the wire
for
size
in
$sizev
;
do
echo
-e
"
\n
#
`
hostname
`
⇄
$peer
(ping
${
size
}
B)"
$profile
sudo
-n
ping
-i0
-w
3
-s
$size
-q
$peer
||
echo
"# skipped -> enable ping in sudo for
`
whoami
`
@
`
hostname
`
"
...
...
@@ -796,7 +800,11 @@ cmd_bench-cluster() {
done
echo
-e
"
\n
*** TCP latency:"
sizev
=
"1 1472 4096"
# 1 = minimum TCP payload
# 1460 = 1500 (Ethernet MTU) - 20 (IPv4 header !options) - 20 (TCP header !options)
# 1440 = 1500 (Ethernet MTU) - 40 (IPv6 header !options) - 20 (TCP header !options)
# FIXME somehow IPv6 uses lower MTU than 1500 - recheck
sizev
=
"1 1400 1500 4096"
# 1400 = 1440 - ε (1 eth frame); 1500 = 1440 + ε (2 eth frames); 4096 - just big 4K (3 eth frames)
for
size
in
$sizev
;
do
echo
-e
"
\n
#
`
hostname
`
⇄
$peer
(lat_tcp.c
${
size
}
B -> lat_tcp.c -s)"
# TODO profile remotely
...
...
Kirill Smelkov
@kirr
mentioned in commit
26006d7e
·
Jul 12, 2018
mentioned in commit
26006d7e
mentioned in commit 26006d7ece004407f1f255316b5ac355cf3473fb
Toggle commit list
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