Skip to content

Instantly share code, notes, and snippets.

@jianzzha
Last active December 29, 2023 07:03
Show Gist options
  • Save jianzzha/7623b3ac3573147b4241071a0ac6f11d to your computer and use it in GitHub Desktop.
Save jianzzha/7623b3ac3573147b4241071a0ac6f11d to your computer and use it in GitHub Desktop.
ovn-perf150
#### on host
ovs-vsctl set open . external-id:ovn-remote="unix:/usr/local/var/run/ovn/ovnsb_db.sock"
ovs-vsctl set open . external-id:ovn-encap-type=geneve
ovs-vsctl set open . external-id:ovn-encap-ip=127.0.0.1
ovs-vsctl set open . external-id:system-id=test
podman run --rm -it --privileged --net=host -v /var/run/openvswitch:/usr/local/var/run/openvswitch ovn-image sh
#### inide container
ovn-ctl start_northd
ovn-ctl start_controller
ovn-nbctl ls-add sw0
ovn-nbctl lsp-add sw0 sw0-port1
ovn-nbctl lsp-add sw0 sw0-port2
ovs-vsctl add-port br-int ens7f0 -- set Interface ens7f0 external_ids:iface-id=sw0-port1
ovs-vsctl add-port br-int ens7f1 -- set Interface ens7f1 external_ids:iface-id=sw0-port2
ovn-nbctl lsp-set-addresses sw0-port2 3c:fd:fe:b8:99:a4
ovn-nbctl lsp-set-addresses sw0-port1 3c:fd:fe:b8:99:a5
#### trafficgen
pbench-trafficgen --config=ovn-nonrt --devices=0000:06:00.0,0000:06:00.1 --validation-runtime=10 --search-runtime=10 --sniff-runtime=10 --num-flows=1 --frame-size=64 --skip-git-pull --flow-mods=src-ip --max-loss-pct=10 -- --rate-tolerance=100 --rate-tolerance-failure=fail
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment