This could be set to 1 for aarch64, which introduces some issues when
trying to allocate large amounts of memory. Setting it to 0 will prevent
faulty processes from consuming all memory.
Fixes https://jira.akraino.org/browse/IEC-26
Signed-off-by: Ciprian Barbu <ciprian.barbu@enea.com>
Change-Id: I332a91a669de2123d6e9e61fee0ad3627a003d83
sudo modprobe br_netfilter
_conf='/etc/sysctl.d/99-akraino-iec.conf'
echo 'net.bridge.bridge-nf-call-iptables = 1' |& sudo tee "${_conf}"
+# Set memory overcommit to 0 for extra checks during memory allocation
+echo 'vm.overcommit_memory = 0' |& sudo tee -a "${_conf}"
sudo sysctl -q -p "${_conf}"