mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 06:15:47 +00:00
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>
This commit is contained in:
committed by
Ilya Maximets
parent
b5d2dbdbb5
commit
269b927fd7
@@ -405,6 +405,13 @@ dpdk_init__(const struct smap *ovs_other_config)
|
||||
svec_add(&args, ovs_get_program_name());
|
||||
construct_dpdk_args(ovs_other_config, &args);
|
||||
|
||||
#ifdef DPDK_IN_MEMORY_SUPPORTED
|
||||
if (!args_contains(&args, "--in-memory") &&
|
||||
!args_contains(&args, "--legacy-mem")) {
|
||||
svec_add(&args, "--in-memory");
|
||||
}
|
||||
#endif
|
||||
|
||||
if (args_contains(&args, "-c") || args_contains(&args, "-l")) {
|
||||
auto_determine = false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user