Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ycai
simbricks
Commits
d0d2b608
"...composable_kernel_rocm.git" did not exist on "3835318cc32cac3155060c9614013f2e988de40c"
Commit
d0d2b608
authored
Dec 06, 2020
by
Hejing Li
Browse files
nodeconfig: node memory, udp sleep client, nopaxos last client
parent
e2f54f09
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
4 deletions
+24
-4
experiments/modes/nodeconfig.py
experiments/modes/nodeconfig.py
+24
-4
No files found.
experiments/modes/nodeconfig.py
View file @
d0d2b608
...
...
@@ -7,7 +7,7 @@ class NodeConfig(object):
ip
=
'10.0.0.1'
prefix
=
24
cores
=
1
memory
=
4
*
1024
memory
=
8
*
1024
disk_image
=
'base'
app
=
None
mtu
=
1500
...
...
@@ -215,7 +215,7 @@ class I40eDCTCPNode(NodeConfig):
return
super
().
prepare_post_cp
()
+
[
'modprobe i40e'
,
'ethtool -G eth0 rx 4096 tx 4096'
,
'ethtool -K eth0 tso o
n
'
,
'ethtool -K eth0 tso o
ff
'
,
'ip link set eth0 txqueuelen 13888'
,
f
'ip link set dev eth0 mtu
{
self
.
mtu
}
up'
,
f
'ip addr add
{
self
.
ip
}
/24 dev eth0'
,
...
...
@@ -293,7 +293,15 @@ class IperfUDPClient(AppConfig):
rate
=
'150m'
def
run_cmds
(
self
,
node
):
return
[
'sleep 1'
,
'iperf -c '
+
self
.
server_ip
+
' -u -b '
+
self
.
rate
]
'iperf -c '
+
self
.
server_ip
+
' -i 1 -u -b '
+
self
.
rate
]
class
IperfUDPClientSleep
(
AppConfig
):
server_ip
=
'10.0.0.1'
rate
=
'150m'
def
run_cmds
(
self
,
node
):
return
[
'sleep 1'
,
'sleep 10'
]
class
NetperfServer
(
AppConfig
):
def
run_cmds
(
self
,
node
):
...
...
@@ -303,7 +311,7 @@ class NetperfServer(AppConfig):
class
NetperfClient
(
AppConfig
):
server_ip
=
'10.0.0.1'
def
run_cmds
(
self
,
node
):
return
[
'netserver'
,
return
[
'netserver'
,
'sleep 0.5'
,
'netperf -H '
+
self
.
server_ip
,
'netperf -H '
+
self
.
server_ip
+
' -t TCP_RR -- -o mean_latency,p50_latency,p90_latency,p99_latency'
]
...
...
@@ -321,6 +329,18 @@ class NOPaxosClient(AppConfig):
cmds
.
append
(
'ping -c 1 '
+
ip
)
cmds
.
append
(
'/root/nopaxos/bench/client -c /root/nopaxos.config '
+
'-m nopaxos -n 2000'
)
cmds
.
append
(
'sleep 20'
)
return
cmds
class
NOPaxosClientLast
(
AppConfig
):
server_ips
=
[]
def
run_cmds
(
self
,
node
):
cmds
=
[]
for
ip
in
self
.
server_ips
:
cmds
.
append
(
'ping -c 1 '
+
ip
)
cmds
.
append
(
'/root/nopaxos/bench/client -c /root/nopaxos.config '
+
'-m nopaxos -n 2000'
)
cmds
.
append
(
'sleep 0.5'
)
return
cmds
class
NOPaxosSequencer
(
AppConfig
):
...
...
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