Skip to content

Commit

Permalink
experiments: reformat python code
Browse files Browse the repository at this point in the history
  • Loading branch information
marvin71 authored and FreakyPenguin committed May 8, 2024
1 parent 1ea0f3b commit c2896bf
Show file tree
Hide file tree
Showing 10 changed files with 245 additions and 246 deletions.
4 changes: 2 additions & 2 deletions experiments/pyexps/e2e_automatic_split.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@

import typing as tp

import simbricks.orchestration.e2e_components as e2e
import simbricks.orchestration.experiments as exp
import simbricks.orchestration.nodeconfig as node
import simbricks.orchestration.simulators as sim
import simbricks.orchestration.e2e_components as e2e
from simbricks.orchestration.simulator_utils import create_tcp_cong_hosts
from simbricks.orchestration.e2e_helpers import E2ELinkAssigner, E2ELinkType
from simbricks.orchestration.simulator_utils import create_tcp_cong_hosts

mtu = 1500
congestion_control = e2e.CongestionControl.CUBIC
Expand Down
12 changes: 6 additions & 6 deletions experiments/pyexps/e2e_cc.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@
# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

import simbricks.orchestration.e2e_components as e2e
import simbricks.orchestration.experiments as exp
import simbricks.orchestration.nodeconfig as node
import simbricks.orchestration.simulators as sim
import simbricks.orchestration.e2e_components as e2e
from simbricks.orchestration.simulator_utils import create_tcp_cong_hosts
from simbricks.orchestration.e2e_topologies import E2EDumbbellTopology
from simbricks.orchestration.simulator_utils import create_tcp_cong_hosts

# iperf TCP_multi_client test
# naming convention following host-nic-net-app
Expand All @@ -48,9 +48,9 @@
#max_k = 199680
#k_step = 16640
#k_step = 33280
link_rate = 200 # in Mbps
link_latency = 5 # in ms
bdp = int(link_rate * link_latency / 1000 * 10**6) # Bandwidth-delay product
link_rate = 200 # in Mbps
link_latency = 5 # in ms
bdp = int(link_rate * link_latency / 1000 * 10**6) # Bandwidth-delay product
cpu_freq = '5GHz'
cpu_freq_qemu = '2GHz'
sys_clock = '1GHz' # if not set, default 1GHz
Expand Down Expand Up @@ -160,7 +160,7 @@ def gem5_timing(node_config: node.NodeConfig):
freq,
mtu,
congestion_control.gem5,
ip_start=2*num_ns3_hosts + num_simbricks_hosts + 1
ip_start=2 * num_ns3_hosts + num_simbricks_hosts + 1
)

for i, server in enumerate(servers, 1):
Expand Down
2 changes: 1 addition & 1 deletion experiments/pyexps/e2e_split.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

import simbricks.orchestration.e2e_components as e2e
import simbricks.orchestration.experiments as exp
import simbricks.orchestration.nodeconfig as node
import simbricks.orchestration.simulators as sim
import simbricks.orchestration.e2e_components as e2e
from simbricks.orchestration.simulator_utils import create_tcp_cong_hosts

# iperf TCP_multi_client test
Expand Down

0 comments on commit c2896bf

Please sign in to comment.