From 4ffd44cfd147d157406a26c995cd0c373bffd7a0 Mon Sep 17 00:00:00 2001 From: brakmo Date: Fri, 1 Mar 2019 12:38:50 -0800 Subject: bpf: HBM test script Script for testing HBM (Host Bandwidth Manager) framework. It creates a cgroup to use for testing and load a BPF program to limit egress bandwidht. It then uses iperf3 or netperf to create loads. The output is the goodput in Mbps (unless -D is used). It can work on a single host using loopback or among two hosts (with netperf). When using loopback, it is recommended to also introduce a delay of at least 1ms (-d=1), otherwise the assigned bandwidth is likely to be underutilized. USAGE: $name [out] [-b=|--bpf=] [-c=|--cc=] [-D] [-d=|--delay=] [--debug] [-E] [-f=<#flows>|--flows=<#flows>] [-h] [-i=|--id=] [-l] [-N] [-p=|--port=] [-P] [-q=] [-R] [-s=|--server=|--time=