]> 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)
committerIgor Putovny <igor.putovny@nic.cz>
Thu, 30 May 2024 10:30:00 +0000 (12:30 +0200)
commit1338ba86da300cb62a7e3ac69126bf245f21c94d
treebbe589f1e705ad022a4a4271fd7269aca12d587a
parentfead4077d50f5112a42797021156dd75c495f149
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