Skip to content

Commit

Permalink
hosts(pve-c3758): set tx-flush-interval to hopefully increase throughput
Browse files Browse the repository at this point in the history
  • Loading branch information
xddxdd committed Nov 29, 2024
1 parent c90e6f4 commit 9c47224
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions hosts/pve-c3758/openvswitch-dpdk.nix
Original file line number Diff line number Diff line change
Expand Up @@ -43,18 +43,19 @@ in
ovs-vsctl set Open_vSwitch . "other_config:dpdk-socket-limit=2048"
ovs-vsctl set Open_vSwitch . "other_config:vhost-iommu-support=true"
ovs-vsctl set Open_vSwitch . "other_config:pmd-auto-lb=true"
ovs-vsctl set Open_vSwitch . "other_config:tx-flush-interval=50"
# Allow list for DPDK interfaces
ovs-vsctl set Open_vSwitch . "other_config:dpdk-extra=${
builtins.concatStringsSep " " (lib.mapAttrsToList (_n: v: "-a ${v}") interfaces)
}"
ovs-vsctl add-br br0 -- set bridge br0 datapath_type=netdev || true
ovs-vsctl --may-exist add-br br0 -- set bridge br0 datapath_type=netdev || true
ovs-vsctl set Bridge br0 rstp_enable=true || true
''
+ (builtins.concatStringsSep "\n" (
lib.mapAttrsToList (n: v: ''
ovs-vsctl add-port br0 ${n} || true
ovs-vsctl --may-exist add-port br0 ${n} || true
ovs-vsctl set Interface ${n} type=dpdk \
options:dpdk-devargs=${v} \
mtu_request=9000 \
Expand All @@ -63,7 +64,7 @@ in
'') interfaces
))
+ (lib.concatMapStringsSep "\n" (i: ''
ovs-vsctl add-port br0 vhost${i} || true
ovs-vsctl --may-exist add-port br0 vhost${i} || true
ovs-vsctl set Interface vhost${i} \
type=dpdkvhostuserclient \
options:vhost-server-path=/run/ovs-vhost${i}.sock \
Expand Down

0 comments on commit 9c47224

Please sign in to comment.