You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Edit /etc/cloudstack/agent/agent.properties to enable DPDK support on the agent and on ovs-vstcl commands for port creations as well as the path to OVS ports (usually: /var/run/openvswitch)
287
290
288
291
::
289
-
292
+
290
293
openvswitch.dpdk.enabled=true
291
294
openvswitch.dpdk.ovs.path=OVS_PATH
292
295
@@ -295,15 +298,15 @@ Agent should be restarted for actions to take effect.
295
298
When the host agent connects to the management server, it sends the list of hosts capabilities. When DPDK support is enabled on the host, the capability with name 'dpdk' is sent to the management server. The list of host capabilities are persisted on the 'capabilities' column on 'hosts' table, and can be retrieved by the 'listHosts' API method:
296
299
297
300
::
298
-
301
+
299
302
list hosts id=HOST_ID filter=capabilities
300
303
301
304
Additional VM configurations
302
305
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
303
306
In order to enable DPDK on VM deployments, users should pass addition configuration to VMs. The required configurations are listed on the next section. Administrators can allow users to pass additional configurations to their VMs by the account scoped setting:
304
307
305
308
::
306
-
309
+
307
310
enable.additional.vm.configuration
308
311
309
312
Users are able to pass extra configurations as part of the 'deployVirtualMachine' or 'updateVirtualMachine' API methods.
@@ -323,7 +326,7 @@ Example:
323
326
In order to pass the below extra configuration to the VM, named 'config-1'
324
327
325
328
::
326
-
329
+
327
330
config-1:
328
331
<tag>
329
332
<inner-tag>VALUE</inner-tag>
@@ -332,26 +335,26 @@ In order to pass the below extra configuration to the VM, named 'config-1'
332
335
The 'extraconfig' parameter should receive the UTF-8 URL encoded string:
On 'user_vm_details' table the additional configuration is persisted with key: 'extraconfig-config-1'
339
342
340
343
341
-
Additional configurations to enable DPDK on VMs
344
+
Additional configurations to enable DPDK on VMs
342
345
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
343
346
To enable DPDK on VM deployments:
344
347
345
348
- Set the global configuration to 'true' (as global setting or account setting)
346
349
347
350
::
348
-
351
+
349
352
enable.additional.vm.configuration
350
353
351
354
- Generate the UTF-8 URL encoded additional configuration to enable huge pages and NUMA, examples below:
352
355
353
356
::
354
-
357
+
355
358
dpdk-hugepages:
356
359
<memoryBacking>
357
360
<hugepages>
@@ -368,13 +371,13 @@ To enable DPDK on VM deployments:
368
371
- Pass the 'extraconfig' parameter to 'deployVirtualMachine' or 'updateVirtualMachine' API methods as a single UTF-8 URL encoded string containing multiple extra configurations (as shown above). Note: if multiple extra configurations are needed, follow the example above and add new sections separated by an empty line, encode the whole string and pass it as a single string to the APIs as 'extraconfig' parameter.
The preferred DPDK vHost User Mode must be passed as a service offering detail, with special key name: "DPDK-VHOSTUSER". Possible values are: "client" or "server". The following table illustrates the expected behaviour on DPDK ports and VM guest interfaces.
@@ -419,7 +422,7 @@ By default, the server mode is assumed if it is not passed as a service offering
0 commit comments