akkoma: Force use of system allocator and pre‐allocate hugepages

This commit is contained in:
Mikael Voss 2024-10-11 12:32:34 +02:00
parent c26e1a32bd
commit 2d5ff56730
No known key found for this signature in database

View file

@ -47,6 +47,16 @@ in {
mpv = final.mpv-unwrapped; mpv = final.mpv-unwrapped;
extraMakeWrapperArgs = [ "--set" "MIMALLOC_RESERVE_HUGE_OS_PAGES" "1" ]; extraMakeWrapperArgs = [ "--set" "MIMALLOC_RESERVE_HUGE_OS_PAGES" "1" ];
}; };
akkoma = prev.akkoma.overrideAttrs (prevAttrs: {
postInstall = prevAttrs.postInstall or "" + ''
sed -i \
'/^start () {/a \
export MIMALLOC_RESERVE_HUGE_OS_PAGES=1 \
export ERL_FLAGS="''${ERL_FLAGS:-} +MBe false +MDe false +MEe false +MFe false +MHe false +MIe false +MLe false +MMe false +MRe false +MSe false +MTe false"' \
"$out/bin/pleroma"
'';
});
} // lib.genAttrs [ } // lib.genAttrs [
"bat" "bat"
"bottom" "bottom"