From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Tremer To: development@lists.ipfire.org Subject: [PATCH 2/2] amazon-ssm-agent: Allow to overcommit memory Date: Mon, 30 Mar 2020 17:24:42 +0000 Message-ID: <20200330172442.11391-2-michael.tremer@ipfire.org> In-Reply-To: <20200330172442.11391-1-michael.tremer@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0810016949178806090==" List-Id: --===============0810016949178806090== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Signed-off-by: Michael Tremer --- lfs/amazon-ssm-agent | 2 +- src/initscripts/packages/amazon-ssm-agent | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/lfs/amazon-ssm-agent b/lfs/amazon-ssm-agent index d4aa3fa90..4b08bd41d 100644 --- a/lfs/amazon-ssm-agent +++ b/lfs/amazon-ssm-agent @@ -33,7 +33,7 @@ DL_FROM =3D $(URL_IPFIRE) DIR_APP =3D $(DIR_SRC)/$(THISAPP) TARGET =3D $(DIR_INFO)/$(THISAPP) PROG =3D amazon-ssm-agent -PAK_VER =3D 2 +PAK_VER =3D 3 =20 DEPS =3D =20 diff --git a/src/initscripts/packages/amazon-ssm-agent b/src/initscripts/pack= ages/amazon-ssm-agent index c385d890c..eeaa7b7e5 100644 --- a/src/initscripts/packages/amazon-ssm-agent +++ b/src/initscripts/packages/amazon-ssm-agent @@ -13,6 +13,12 @@ case "${1}" in exit 0 fi =20 + # Allow the kernel to overcommit memory. + # The SSM agent fails to clone() itself when there is + # "not enough memory" available. This simply seems to + # fail no matter how much free memory is available. + echo 1 > /proc/sys/vm/overcommit_memory + boot_mesg "Starting Amazon SSM Agent..." /usr/bin/amazon-ssm-agent &>/dev/null & evaluate_retval --=20 2.20.1 --===============0810016949178806090==--