From: Patrick Donnelly Date: Tue, 12 Nov 2019 22:50:52 +0000 (-0800) Subject: global: disable THP for Ceph daemons X-Git-Tag: v15.1.0~901^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=1713f73fedd9ea0b620c9cb27b7b606f5e00a4ea;p=ceph-ci.git global: disable THP for Ceph daemons Ceph is known to suffer from memory fragmentation due to transparent huge pages (THP). This is indicated by RSS usage above configured memory targets and is only observable when the distribution default for THP is "always", which is the default in the upstream kernel if CONFIG_TRANSPARENT_HUGEPAGE_MADVISE is unset. For now, enabling THP is currently discouraged until selective use of THP by Ceph is implemented via madvise. We will need to consider both defaults for THP so madvise calls to both enable and disable THP will need implemented. All credit to Mark Nelson for doing the legwork identifying this issue and potential solutions. Signed-off-by: Patrick Donnelly Signed-off-by: Mark Nelson --- diff --git a/src/common/options.cc b/src/common/options.cc index f20568501cf..051f5e47e3f 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -786,6 +786,12 @@ std::vector