Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rate Limiting in MoonGen Simple vs Example Scripts #299

Open
AqsaKashaf opened this issue Feb 3, 2021 · 0 comments
Open

Rate Limiting in MoonGen Simple vs Example Scripts #299

AqsaKashaf opened this issue Feb 3, 2021 · 0 comments

Comments

@AqsaKashaf
Copy link

AqsaKashaf commented Feb 3, 2021

Hi,

When I run moon-gen simple, I can successfully set a rate limit. However, when I use the scripts in sxample folder, it gives me the warning
[WARN] Per-queue rate limit is not supported on this device, setting per-device rate limit to 1 Mbit/s instead (note: this may fail as well if the NIC doesn't support any rate limiting).

and does not set the rate. If the problem was my NIC, then moongen-simple should also not set the rate.

`sudo ./build/MoonGen examples/l3-tcp-syn-flood.lua 0 -r 10
[INFO] Initializing DPDK. This will take a few seconds...
EAL: Detected 32 lcore(s)
EAL: No free hugepages reported in hugepages-1048576kB
EAL: Probing VFIO support...
EAL: PCI device 0000:04:00.0 on NUMA socket 0
EAL: probe driver: 8086:1521 net_e1000_igb
EAL: PCI device 0000:04:00.1 on NUMA socket 0
EAL: probe driver: 8086:1521 net_e1000_igb
EAL: PCI device 0000:06:00.0 on NUMA socket 0
EAL: probe driver: 8086:1572 net_i40e
EAL: PCI device 0000:06:00.1 on NUMA socket 0
EAL: probe driver: 8086:1572 net_i40e
EAL: PCI device 0000:06:00.2 on NUMA socket 0
EAL: probe driver: 8086:1572 net_i40e
EAL: PCI device 0000:06:00.3 on NUMA socket 0
EAL: probe driver: 8086:1572 net_i40e
[INFO] Found 1 usable devices:
Device 0: 3C:FD:FE:05:94:C2 (Intel Corporation Ethernet Controller X710 for 10GbE SFP+)
[INFO] Device 0 (3C:FD:FE:05:94:C2) is up: 10000 MBit/s
[WARN] Per-queue rate limit is not supported on this device, setting per-device rate limit to 10 Mbit/s instead (note: this may fail as well if the NIC doesn't support any rate limiting).
[INFO] Detected an IPv4 address.

[Device: id=0] TX: 14.84 Mpps, 7597 Mbit/s (9972 Mbit/s with framing)
[Device: id=0] TX: 14.60 Mpps, 7476 Mbit/s (9812 Mbit/s with framing)
[Device: id=0] TX: 14.86 Mpps, 7609 Mbit/s (9986 Mbit/s with framing)
[Device: id=0] TX: 14.85 Mpps, 7604 Mbit/s (9981 Mbit/s with framing)
[Device: id=0] TX: 14.85 Mpps, 7604 Mbit/s (9981 Mbit/s with framing)`

and with moon-gen simple I get:

sudo ./moongen-simple start tcp-syn-flood4:0:0:rate=10mbit/s
[INFO] Initializing DPDK. This will take a few seconds...
EAL: Detected 32 lcore(s)
EAL: No free hugepages reported in hugepages-1048576kB
EAL: Probing VFIO support...
EAL: PCI device 0000:04:00.0 on NUMA socket 0
EAL: probe driver: 8086:1521 net_e1000_igb
EAL: PCI device 0000:04:00.1 on NUMA socket 0
EAL: probe driver: 8086:1521 net_e1000_igb
EAL: PCI device 0000:06:00.0 on NUMA socket 0
EAL: probe driver: 8086:1572 net_i40e
EAL: PCI device 0000:06:00.1 on NUMA socket 0
EAL: probe driver: 8086:1572 net_i40e
EAL: PCI device 0000:06:00.2 on NUMA socket 0
EAL: probe driver: 8086:1572 net_i40e
EAL: PCI device 0000:06:00.3 on NUMA socket 0
EAL: probe driver: 8086:1572 net_i40e
[INFO] Found 1 usable devices:
Device 0: 3C:FD:FE:05:94:C2 (Intel Corporation Ethernet Controller X710 for 10GbE SFP+)
[INFO] Flow tcp-syn-flood4 => 0x1
[INFO] Waiting for devices to come up...
[INFO] Device 0 (3C:FD:FE:05:94:C2) is up: 10000 MBit/s
[INFO] 1 device is up.
[Device: id=0] TX: 0.02 Mpps, 10 Mbit/s (13 Mbit/s with framing)
[Device: id=0] RX: 0.00 Mpps, 0 Mbit/s (0 Mbit/s with framing)
[Flow: dev=0 uid=0x1] TX: 0.00 Mpps, 0 Mbit/s (0 Mbit/s with framing)
[Flow: dev=0 uid=?] RX: 0.02 Mpps, 9 Mbit/s (12 Mbit/s with framing)
[Device: id=0] TX: 0.02 Mpps, 10 Mbit/s (13 Mbit/s with framing)
[Flow: dev=0 uid=?] RX: 0.02 Mpps, 9 Mbit/s (12 Mbit/s with framing)
[Device: id=0] RX: 0.00 Mpps, 0 Mbit/s (0 Mbit/s with framing)
[Flow: dev=0 uid=0x1] TX: 0.00 Mpps, 0 Mbit/s (0 Mbit/s with framing)
[Device: id=0] TX: 0.02 Mpps, 10 Mbit/s (13 Mbit/s with framing)
[Flow: dev=0 uid=?] RX: 0.02 Mpps, 9 Mbit/s (12 Mbit/s with framing)
[Flow: dev=0 uid=0x1] TX: 0.00 Mpps, 0 Mbit/s (0 Mbit/s with framing)
[Device: id=0] RX: 0.00 Mpps, 0 Mbit/s (0 Mbit/s with framing)
[Device: id=0] TX: 0.02 Mpps, 10 Mbit/s (13 Mbit/s with framing)
[Flow: dev=0 uid=?] RX: 0.02 Mpps, 9 Mbit/s (12 Mbit/s with framing)
[Flow: dev=0 uid=0x1] TX: 0.00 Mpps, 0 Mbit/s (0 Mbit/s with framing)
[Device: id=0] RX: 0.00 Mpps, 0 Mbit/s (0 Mbit/s with framing)
^C[Flow: dev=0 uid=?] RX: 0.02 (StdDev 0.00) Mpps, 9 (StdDev 0) Mbit/s (12 Mbit/s with framing), total 86670 packets with 5546880 bytes (incl. CRC)
[Flow: dev=0 uid=0x1] TX: 0.00 (StdDev 0.00) Mpps, 0 (StdDev 0) Mbit/s (0 Mbit/s with framing), total 0 packets with 0 bytes (incl. CRC)
[Device: id=0] TX: 0.02 (StdDev 0.00) Mpps, 10 (StdDev 0) Mbit/s (13 Mbit/s with framing), total 86720 packets with 5896960 bytes (incl. CRC)
[Device: id=0] RX: 0.00 (StdDev 0.00) Mpps, 0 (StdDev 0) Mbit/s (0 Mbit/s with framing), total 0 packets with 0 bytes (incl. CRC)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant