Skip to content

Commit

Permalink
set the max locked-in to 204800 for root and ceph users
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
guits committed Mar 21, 2024
1 parent 08b1ab5 commit 6ef3b22
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ceph-releases/ALL/__QAT_ACCELERATION__
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
echo '@ceph - memlock 204800' >> /etc/security/limits.conf && \
echo '@root - memlock 204800' >> /etc/security/limits.conf && \
Empty file.
Empty file.
1 change: 1 addition & 0 deletions src/daemon-base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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%*/}"')" && \
Expand Down

0 comments on commit 6ef3b22

Please sign in to comment.