nixos/mimalloc: Tune allocator

This commit is contained in:
Mikael 2024-10-08 22:22:27 +02:00
parent c277a93913
commit 19e472e29e
Signed by: mikael
SSH key fingerprint: SHA256:21QyD2Meiot7jOUVitIR5YkGB/XuXdCvLW1hE6dsri0

View file

@ -1,4 +1,8 @@
{ ... }: { config, lib, pkgs, ... }: { { ... }: { config, lib, pkgs, ... }: {
environment.memoryAllocator.provider = "mimalloc"; environment.memoryAllocator.provider = "mimalloc";
environment.variables.MIMALLOC_LARGE_OS_PAGES = 1; environment.variables = {
MIMALLOC_PURGE_DELAY = 50;
MIMALLOC_PURGE_DECOMMITS = 0;
MIMALLOC_ALLOW_LARGE_OS_PAGES = 1;
};
} }