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
fddf6344
Commit
fddf6344
authored
Sep 05, 2024
by
Hejing Li
Browse files
example script checkpoint
parent
f115d2ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
experiments/pyexps/netperf_sysconf.py
experiments/pyexps/netperf_sysconf.py
+12
-12
No files found.
experiments/pyexps/netperf_sysconf.py
View file @
fddf6344
...
@@ -34,22 +34,22 @@ nic1 = system.IntelI40eNIC(sys)
...
@@ -34,22 +34,22 @@ nic1 = system.IntelI40eNIC(sys)
nic1
.
add_ipv4
(
'10.0.0.2'
)
nic1
.
add_ipv4
(
'10.0.0.2'
)
pcichannel1
=
system
.
PCIeChannel
(
pcie1
,
nic1
.
pci_if
)
pcichannel1
=
system
.
PCIeChannel
(
pcie1
,
nic1
.
pci_if
)
'''
# create switch and its ports
port0 = spec.NetDev(
)
switch
=
system
.
EthSwitch
(
sys
)
port1 = spec.NetDev(
)
netif0
=
system
.
EthInterface
(
switch
)
switch
= spec.Switch(system
)
switch
.
if_add
(
netif0
)
switch.install_netdev(port0
)
netif1
=
system
.
EthInterface
(
switch
)
switch.i
nstall_netdev(port
1)
switch
.
i
f_add
(
netif
1
)
ethchannel0 = spec.Eth(system)
# create channels and connect the switch to the host nics
ethchannel0.install(nic0, port0)
ethchannel0
=
system
.
EthChannel
(
switch
.
eth_ifs
[
0
],
nic0
.
eth_if
)
ethchannel1 = spec.Eth(system)
ethchannel1
=
system
.
EthChannel
(
switch
.
eth_ifs
[
1
],
nic1
.
eth_if
)
ethchannel1.install(nic1, port1)
# configure the software to run on the host
# configure the software to run on the host
host0.a
pp = spec
.NetperfClient(
'10.0.0.2'
)
host0
.
a
dd_app
(
system
.
NetperfClient
(
host0
,
nic1
.
ip
)
)
host1.a
pp = spec
.NetperfServer()
host1
.
a
dd_app
(
system
.
NetperfServer
(
host1
)
)
'''
"""
"""
Execution Config
Execution Config
"""
"""
...
...
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