]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
global: disable THP for Ceph daemons 31582/head
authorPatrick Donnelly <pdonnell@redhat.com>
Tue, 12 Nov 2019 22:50:52 +0000 (14:50 -0800)
committerPatrick Donnelly <pdonnell@redhat.com>
Wed, 13 Nov 2019 20:15:58 +0000 (12:15 -0800)
commit1713f73fedd9ea0b620c9cb27b7b606f5e00a4ea
tree068468ef0a559c91b1b4f57ae1d607822860e5c7
parent53324c10bac3b9d5d8c40ccbb546385f8f4d4735
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 <pdonnell@redhat.com>
Signed-off-by: Mark Nelson <mnelson@redhat.com>
src/common/options.cc
src/global/global_init.cc