system: enable tmpfsHugeMemoryPages as advisable
this might improve tmpfs performance, and reduce cpu usage. origin: https://github.com/NixOS/nixpkgs/pull/404514
This commit is contained in:
parent
04ea5a6556
commit
7a9bcd3dfc
1 changed files with 1 additions and 0 deletions
|
|
@ -61,6 +61,7 @@ in
|
||||||
boot.tmp = lib.mkDefault {
|
boot.tmp = lib.mkDefault {
|
||||||
useTmpfs = true;
|
useTmpfs = true;
|
||||||
tmpfsSize = "70%";
|
tmpfsSize = "70%";
|
||||||
|
tmpfsHugeMemoryPages = "within_size";
|
||||||
};
|
};
|
||||||
|
|
||||||
# run fstrim monthly instead of weekly
|
# run fstrim monthly instead of weekly
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue