From 8411b6ccecdede73e89c4595025f6c72fb2cccc3 Mon Sep 17 00:00:00 2001 From: Ilya Maximets Date: Tue, 29 Jan 2019 11:11:50 +0300 Subject: dpdk: Limit DPDK memory usage. Since 18.05 release, DPDK moved to dynamic memory model in which hugepages could be allocated on demand. At the same time '--socket-mem' option was re-defined as a size of pre-allocated memory, i.e. memory that should be allocated at startup and could not be freed. So, DPDK with a new memory model could allocate more hugepage memory than specified in '--socket-mem' or '-m' options. This change adds new configurable 'other_config:dpdk-socket-limit' which could be used to limit the ammount of memory DPDK could use. It uses new DPDK option '--socket-limit'. Ex.: ovs-vsctl set Open_vSwitch . other_config:dpdk-socket-limit="1024,1024" Also, in order to preserve old behaviour, if '--socket-limit' is not specified, it will be defaulted to the amount of memory specified by '--socket-mem' option, i.e. OVS will not be able to allocate more. This is needed, for example, to disallow OVS to allocate more memory than reserved for it by Nova in OpenStack installations. Signed-off-by: Ilya Maximets Signed-off-by: Ian Stokes --- NEWS | 3 +++ 1 file changed, 3 insertions(+) (limited to 'NEWS') diff --git a/NEWS b/NEWS index 4985dbaac..a64b9d94d 100644 --- a/NEWS +++ b/NEWS @@ -1,5 +1,8 @@ Post-v2.11.0 --------------------- + - DPDK: + * New option 'other_config:dpdk-socket-limit' to limit amount of + hugepage memory that can be used by DPDK. v2.11.0 - xx xxx xxxx -- cgit v1.2.1