]> git.proxmox.com Git - mirror_ovs.git/commitdiff
docs: Add some detail about dpdk-socket-mem.
authorKevin Traynor <ktraynor@redhat.com>
Mon, 24 Apr 2017 17:48:34 +0000 (18:48 +0100)
committerBen Pfaff <blp@ovn.org>
Mon, 24 Apr 2017 18:50:21 +0000 (11:50 -0700)
Using dpdk-socket-mem to allocate memory for some NUMA nodes
but leaving blank for subsequent ones is equivalent of assigning
0 MB memory to those subsequent nodes. Document this behavior.

Signed-off-by: Kevin Traynor <ktraynor@redhat.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
Documentation/intro/install/dpdk.rst
vswitchd/vswitch.xml

index f29ac05ddeb083c2bff0fed97062ec253937990a..d1c0e651e7055fed2c5036abd9ba00d64ec23697 100644 (file)
@@ -226,11 +226,16 @@ listed below. Defaults will be provided for all values not explicitly set.
 
 If allocating more than one GB hugepage, you can configure the
 amount of memory used from any given NUMA nodes. For example, to use 1GB from
-NUMA node 0, run::
+NUMA node 0 and 0GB for all other NUMA nodes, run::
 
     $ ovs-vsctl --no-wait set Open_vSwitch . \
         other_config:dpdk-socket-mem="1024,0"
 
+or::
+
+    $ ovs-vsctl --no-wait set Open_vSwitch . \
+        other_config:dpdk-socket-mem="1024"
+
 Similarly, if you wish to better scale the workloads across cores, then
 multiple pmd threads can be created and pinned to CPU cores by explicity
 specifying ``pmd-cpu-mask``. Cores are numbered from 0, so to spawn two pmd
index 870c8131831716464f50fc9b4e088e4460803bc2..02980b12691411c3b37202dd93b46535a23c1212 100644 (file)
         </p>
         <p>
           The specifier is a comma-separated string, in ascending order of CPU
-          socket (ex: 1024,2048,4096,8192 would set socket 0 to preallocate
-          1024MB, socket 1 to preallocate 2048MB, etc.)
+          socket. E.g. On a four socket system 1024,0,2048 would set socket 0
+          to preallocate 1024MB, socket 1 to preallocate 0MB, socket 2 to
+          preallocate 2048MB and socket 3 (no value given) to preallocate 0MB.
         </p>
         <p>
           If dpdk-socket-mem and dpdk-alloc-mem are not specified, dpdk-socket-mem