From: brakmo Date: Fri, 1 Mar 2019 20:38:50 +0000 (-0800) Subject: bpf: HBM test script X-Git-Tag: v5.1-rc1~178^2~17^2~2^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4ffd44cfd147d157406a26c995cd0c373bffd7a0;p=thirdparty%2Fkernel%2Flinux.git 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=