diff options
author | Ondrej Zajicek <santiago@crfreenet.org> | 2023-01-17 17:13:50 +0100 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2023-01-17 17:13:50 +0100 |
commit | 928a1cb034e6f9e8edcdd1dc07264cd703e00827 (patch) | |
tree | 9ad75ba3b044056f4de764eda7a003580bb617f5 /sysdep/cf/README | |
parent | 54234c9eae978463a2518446da399470ff916252 (diff) |
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.
Diffstat (limited to 'sysdep/cf/README')
-rw-r--r-- | sysdep/cf/README | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sysdep/cf/README b/sysdep/cf/README index 68078bbe..af65aaec 100644 --- a/sysdep/cf/README +++ b/sysdep/cf/README @@ -14,3 +14,6 @@ CONFIG_DONTROUTE_UNICAST Use MSG_DONTROUTE flag for unicast packets (def for Fre CONFIG_USE_HDRINCL Use IP_HDRINCL instead of control messages for source address on raw IP sockets. CONFIG_RESTRICTED_PRIVILEGES Implements restricted privileges using drop_uid() + +CONFIG_MADV_DONTNEED_TO_FREE To free pages, use MADV_DONTNEED instead of MADV_FREE (linux) +CONFIG_DISABLE_THP Disable transparent huge pages (linux) |