From 928a1cb034e6f9e8edcdd1dc07264cd703e00827 Mon Sep 17 00:00:00 2001 From: Ondrej Zajicek Date: Tue, 17 Jan 2023 17:13:50 +0100 Subject: Alloc: Disable transparent huge pages The usage pattern implemented in allocator seems to be incompatible with transparent huge pages, as memory released using madvise(MADV_DONTNEED) with regular page size and alignment does not seem to trigger demotion of huge pages back to regular pages, even when significant number of pages is released. Even if demotion is triggered when system memory is low, it still breaks memory accounting. --- sysdep/cf/linux.h | 1 + 1 file changed, 1 insertion(+) (limited to 'sysdep/cf/linux.h') diff --git a/sysdep/cf/linux.h b/sysdep/cf/linux.h index 9c37dd8a..5edc4969 100644 --- a/sysdep/cf/linux.h +++ b/sysdep/cf/linux.h @@ -24,6 +24,7 @@ #define CONFIG_INCLUDE_SYSPRIV_H "sysdep/linux/syspriv.h" #define CONFIG_MADV_DONTNEED_TO_FREE +#define CONFIG_DISABLE_THP #ifndef AF_MPLS #define AF_MPLS 28 -- cgit v1.2.3