From 6ef3b222c9fb660f5e7ea5c9ef5bdfe43cc74fd0 Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Thu, 21 Mar 2024 15:57:54 +0100 Subject: [PATCH] set the max locked-in to 204800 for root and ceph users This sets the maximum locked-in memory to ~200Mb for both root and ceph users. Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2266529 Signed-off-by: Guillaume Abrioux --- ceph-releases/ALL/__QAT_ACCELERATION__ | 2 ++ ceph-releases/pacific/__QAT_ACCELERATION__ | 0 ceph-releases/quincy/__QAT_ACCELERATION__ | 0 src/daemon-base/Dockerfile | 1 + 4 files changed, 3 insertions(+) create mode 100644 ceph-releases/ALL/__QAT_ACCELERATION__ create mode 100644 ceph-releases/pacific/__QAT_ACCELERATION__ create mode 100644 ceph-releases/quincy/__QAT_ACCELERATION__ diff --git a/ceph-releases/ALL/__QAT_ACCELERATION__ b/ceph-releases/ALL/__QAT_ACCELERATION__ new file mode 100644 index 000000000..426d49355 --- /dev/null +++ b/ceph-releases/ALL/__QAT_ACCELERATION__ @@ -0,0 +1,2 @@ +echo '@ceph - memlock 204800' >> /etc/security/limits.conf && \ + echo '@root - memlock 204800' >> /etc/security/limits.conf && \ diff --git a/ceph-releases/pacific/__QAT_ACCELERATION__ b/ceph-releases/pacific/__QAT_ACCELERATION__ new file mode 100644 index 000000000..e69de29bb diff --git a/ceph-releases/quincy/__QAT_ACCELERATION__ b/ceph-releases/quincy/__QAT_ACCELERATION__ new file mode 100644 index 000000000..e69de29bb diff --git a/src/daemon-base/Dockerfile b/src/daemon-base/Dockerfile index 9b72f842e..3c6965f4d 100644 --- a/src/daemon-base/Dockerfile +++ b/src/daemon-base/Dockerfile @@ -31,6 +31,7 @@ RUN \ # Typical workflow: add new repos; refresh repos; install packages; package-manager clean; # download and install packages from web, cleaning any files as you go. # Installs should support install of ganesha for luminous + __QAT_ACCELERATION__ __DOCKERFILE_INSTALL__ && \ # Clean container, starting with record of current size (strip / from end) INITIAL_SIZE="$(bash -c 'sz="$(du -sm --exclude=/proc /)" ; echo "${sz%*/}"')" && \