]> git.ipfire.org Git - thirdparty/bird.git/commit
Alloc: Disable transparent huge pages
authorOndrej Zajicek <santiago@crfreenet.org>
Tue, 17 Jan 2023 16:13:50 +0000 (17:13 +0100)
committerOndrej Zajicek <santiago@crfreenet.org>
Tue, 17 Jan 2023 16:13:50 +0000 (17:13 +0100)
commit928a1cb034e6f9e8edcdd1dc07264cd703e00827
tree9ad75ba3b044056f4de764eda7a003580bb617f5
parent54234c9eae978463a2518446da399470ff916252
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/README
sysdep/cf/linux.h
sysdep/unix/alloc.c