mirror of
https://github.com/Jokiller230/puzzlevision.git
synced 2025-12-19 13:48:48 +00:00
🔧 Reduce swappiness and zram swap priority
This commit is contained in:
parent
e5cf3d49ad
commit
078c4aebe8
1 changed files with 2 additions and 2 deletions
|
|
@ -33,7 +33,7 @@ in
|
||||||
# Increase swappiness, if ZRAM swap is enabled,
|
# Increase swappiness, if ZRAM swap is enabled,
|
||||||
# as it doesn't come with the same "speed" caveats as standard swap.
|
# as it doesn't come with the same "speed" caveats as standard swap.
|
||||||
kernel.sysctl = mkIf config.zramSwap.enable {
|
kernel.sysctl = mkIf config.zramSwap.enable {
|
||||||
"vm.swappiness" = 140;
|
"vm.swappiness" = 10;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -46,7 +46,7 @@ in
|
||||||
# Enable ZRAM
|
# Enable ZRAM
|
||||||
zramSwap = {
|
zramSwap = {
|
||||||
enable = true;
|
enable = true;
|
||||||
priority = 100;
|
priority = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
# Disable standard swap
|
# Disable standard swap
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue