Skip to content

Commit

Permalink
misc | doc, install iperf
Browse files Browse the repository at this point in the history
  • Loading branch information
naveenrajm7 committed Nov 27, 2022
1 parent 63cb39a commit ac8cbf7
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 2 deletions.
5 changes: 5 additions & 0 deletions Resources.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,8 @@ The map changes dynamically according to the CPU bitmask to /sys/class/net/<dev>
https://garycplin.blogspot.com/2017/06/linux-network-scaling-receives-packets.html

Disable irqbalance ?


### Facebook Katran

https://github.com/facebookincubator/katran/issues/158
9 changes: 8 additions & 1 deletion exp-setup/aws/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,20 @@
Select from the following supported instance types:
C3, C4, D2, I2, M4 (excluding m4.16xlarge), and R3.

* Use specialised instance for network optimization


c5.4xlarge - 0.744 - 10Gbps
**c5n.2xlarge - 0.472 - 25Gbps**


c5n.large
n – Network optimization


## Resources

[AWS Enhanced Networking](https://aws.amazon.com/premiumsupport/knowledge-center/enable-configure-enhanced-networking/)

[AWS Placement group](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-groups.html)

[XDP on AWS](https://trying2adult.com/what-is-xdp-and-how-do-you-use-it-in-linux-amazon-ec2-example/)
27 changes: 27 additions & 0 deletions exp-setup/aws/bench/baseline.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Baseline speed

iperf3

```bash
ubuntu@tRex:/opt/trex/v3.00$ iperf3 -s -p 8001
[ 24] 0.00-60.01 sec 674 MBytes 94.2 Mbits/sec receiver
[SUM] 0.00-60.01 sec 6.70 GBytes 958 Mbits/sec receiver
-----------------------------------------------------------
Server listening on 8001
-----------------------------------------------------------
```

```bash
ubuntu@xdp-DUT:~/linux-aws-5.15.0$ iperf3 -c 10.0.1.37 -P 10 -i 1 -t 60 -V -p 8001
...
[SUM] 0.00-60.00 sec 6.70 GBytes 960 Mbits/sec 7769 sender
[SUM] 0.00-60.01 sec 6.70 GBytes 958 Mbits/sec receiver
CPU Utilization: local/sender 5.3% (0.3%u/5.0%s), remote/receiver 11.2% (2.0%u/9.1%s)
snd_tcp_congestion cubic
rcv_tcp_congestion cubic

iperf Done.
```

t2.micro
TCP ~1Gbps
5 changes: 4 additions & 1 deletion exp-setup/scripts/install-tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,7 @@ sudo DEBIAN_FRONTEND=noninteractive apt-get install -y net-tools
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y conntrack

# mpstat : To measure CPU usage
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y sysstat
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y sysstat

# iperf3 : To measure baseline band width
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y iperf3
3 changes: 3 additions & 0 deletions exp-setup/scripts/install-trex.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/bash

# set hostname
# hostname tRex

# run as root
# create trex dir
mkdir -p /opt/trex
Expand Down

0 comments on commit ac8cbf7

Please sign in to comment.