nixos/mimalloc: Tune allocator

This commit is contained in:
Mikael Voss 2024-10-08 22:22:27 +02:00
parent c277a93913
commit 19e472e29e
No known key found for this signature in database

View file

@ -1,4 +1,8 @@
{ ... }: { config, lib, pkgs, ... }: {
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;
};
}