Skip to content

Commit

Permalink
docs: Add some detail about dpdk-socket-mem.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
kevintraynor authored and blp committed May 1, 2017
1 parent 7dc44a4 commit fd700f4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
7 changes: 6 additions & 1 deletion Documentation/intro/install/dpdk.rst
Expand Up @@ -221,11 +221,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
Expand Down
5 changes: 3 additions & 2 deletions vswitchd/vswitch.xml
Expand Up @@ -255,8 +255,9 @@
</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 not specified, the default value is 1024,0. Changing this value
Expand Down

0 comments on commit fd700f4

Please sign in to comment.