From 02665acfcb2c2821eb99da5e70fd8980fa713721 Mon Sep 17 00:00:00 2001 From: Matias Elo Date: Fri, 16 Apr 2021 12:49:33 +0300 Subject: linux-dpdk: preallocate dpdk memory in process mode MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit DPDK memory needs to be preallocated to support process mode. The amount of preallocated memory can be adjusted with dpdk.process_mode_memory_mb configuration file option. Signed-off-by: Matias Elo Reviewed-by: Jere Leppänen --- config/odp-linux-dpdk.conf | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'config') diff --git a/config/odp-linux-dpdk.conf b/config/odp-linux-dpdk.conf index 7242bc32f..0c541fdd5 100644 --- a/config/odp-linux-dpdk.conf +++ b/config/odp-linux-dpdk.conf @@ -16,7 +16,7 @@ # Mandatory fields odp_implementation = "linux-dpdk" -config_file_version = "0.1.10" +config_file_version = "0.1.11" # System options system: { @@ -37,6 +37,16 @@ system: { thread_count_max = 256 } +# DPDK options +dpdk: { + # Amount of preallocated memory for process mode usage in megabytes + # + # NOTE: Process mode is not officially supported by DPDK. Application + # should reserve all shared resources and configure the system before + # forking child processes for the best success probability. + process_mode_memory_mb = 512 +} + # Pool options pool: { # Packet pool options -- cgit v1.2.3