nixos/mimalloc: Tune allocator
This commit is contained in:
parent
c277a93913
commit
19e472e29e
1 changed files with 5 additions and 1 deletions
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue