diff options
author | Rosemarie O'Riorden <roriorde@redhat.com> | 2021-08-06 08:44:32 -0400 |
---|---|---|
committer | Ilya Maximets <i.maximets@ovn.org> | 2021-12-15 18:22:51 +0100 |
commit | 269b927fd78863eed39e4dfb6ffd7652b0a04009 (patch) | |
tree | b5b7f34ef49f4b0b2d345d7afc46e872cf977e05 /acinclude.m4 | |
parent | b5d2dbdbb56b8a5e022aaf63ec43364c93a42b69 (diff) | |
download | openvswitch-269b927fd78863eed39e4dfb6ffd7652b0a04009.tar.gz |
dpdk: Use --in-memory by default.
If anonymous memory mapping is supported by the kernel, it's better
to run OVS entirely in memory rather than creating shared data
structures. OVS doesn't work in multi-process mode, so there is no need
to litter a filesystem.
Reported-at: https://bugzilla.redhat.com/show_bug.cgi?id=1949849
Acked-by: David Marchand <david.marchand@redhat.com>
Acked-by: Ian Stokes <ian.stokes@intel.com>
Signed-off-by: Rosemarie O'Riorden <roriorde@redhat.com>
Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
Diffstat (limited to 'acinclude.m4')
-rw-r--r-- | acinclude.m4 | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index 8ab690f47..23cd6df44 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -472,6 +472,12 @@ AC_DEFUN([OVS_CHECK_DPDK], [ ], [[#include <rte_config.h>]]) ], [], [[#include <rte_config.h>]]) + AC_CHECK_DECL([MAP_HUGE_SHIFT], [ + AC_DEFINE([DPDK_IN_MEMORY_SUPPORTED], [1], [If MAP_HUGE_SHIFT is + defined, anonymous memory mapping is supported by the + kernel, and --in-memory can be used.]) + ], [], [[#include <sys/mman.h>]]) + # DPDK uses dlopen to load plugins. OVS_FIND_DEPENDENCY([dlopen], [dl], [libdl]) |