Skip to content

Commit 68f997d

Browse files
committed
net, passt: Rm optimization requirements
Remove redundant node optimization requirements which are no longer required, and update some stale information that is no longer relevant. Signed-off-by: Nir Dothan <[email protected]>
1 parent cddff7b commit 68f997d

File tree

1 file changed

+5
-17
lines changed
  • docs/network/net_binding_plugins

1 file changed

+5
-17
lines changed

docs/network/net_binding_plugins/passt.md

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -28,23 +28,11 @@ Its main benefits are:
2828
| Primary network (pod network) | Yes |
2929
| Secondary network | No |
3030

31-
### Node optimization requirements/recommendations:
32-
33-
1. To get better performance the node should be configured with:
34-
```
35-
sysctl -w net.core.rmem_max = 33554432
36-
sysctl -w net.core.wmem_max = 33554432
37-
```
38-
2. To run multiple passt VMs with no explicit ports, the node's `fs.file-max` should be increased
39-
(for a VM forwards all IPv4 and IPv6 ports, for TCP and UDP, passt needs to create ~2^18 sockets):
40-
```
41-
sysctl -w fs.file-max = 9223372036854775807
42-
```
4331

4432
> **NOTE**: To achieve optimal memory consumption with Passt binding,
4533
> specify ports required for your workload.
4634
> When no ports are explicitly specified, all ports are forwarded,
47-
> leading to memory overhead of up to 800 Mi.
35+
> leading to memory overhead of up to 250 Mi.
4836
4937
## Passt network binding plugin
5038
[v1.1.0]
@@ -123,8 +111,8 @@ The sidecar sources can be found
123111
The relevant sidecar image needs to be accessible by the cluster and
124112
specified in the Kubevirt CR when registering the network binding plugin.
125113
126-
### Feature Gate
127-
If not already set, add the `NetworkBindingPlugins` FG.
114+
### Feature Gate - prior to v1.15
115+
For KubeVirt versions prior to 1.15, make sure to enable the `NetworkBindingPlugins` FG.
128116
```
129117
kubectl patch kubevirts -n kubevirt kubevirt --type=json -p='[{"op": "add", "path": "/spec/configuration/developerConfiguration/featureGates/-", "value": "NetworkBindingPlugins"}]'
130118
```
@@ -147,7 +135,7 @@ kubectl patch kubevirts -n kubevirt kubevirt --type=json -p='[{"op": "add", "pat
147135
"migration": {},
148136
"computeResourceOverhead": {
149137
"requests": {
150-
"memory": "500Mi",
138+
"memory": "250Mi",
151139
}
152140
}
153141
}
@@ -159,7 +147,7 @@ The NetworkAttachmentDefinition and sidecarImage values should correspond with t
159147
names used in the previous sections, [here](#passt-networkattachmentdefinition)
160148
and [here](#passt-sidecar-image).
161149

162-
When using the plugin, additional memory overhead of `500Mi` will be requested for the compute container in the virt-launcher pod.
150+
When using the plugin, additional memory overhead of `250Mi` will be requested for the compute container in the virt-launcher pod.
163151

164152
When the VM boots for the first time, Passt's internal DHCP server assigns an IP address to the guest with an "infinite" lease duration.
165153

0 commit comments

Comments
 (0)