Eee: earlyoom, drop disk swap
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
5dba1d9271
commit
de5e2968e7
2 changed files with 7 additions and 4 deletions
|
|
@ -98,8 +98,11 @@ in
|
||||||
# WebKit is the only engine left that handles the modern web.
|
# WebKit is the only engine left that handles the modern web.
|
||||||
environment.systemPackages = [ pkgs.epiphany ];
|
environment.systemPackages = [ pkgs.epiphany ];
|
||||||
|
|
||||||
# 1GB RAM: compressed swap in front of the disk swap.
|
# 1GB RAM: compressed swap only (disk swap is off, see hardware file).
|
||||||
zramSwap.enable = true;
|
zramSwap.enable = true;
|
||||||
|
# A heavy page (bbc.co.uk) used to freeze everything; now the biggest
|
||||||
|
# process (the browser's web process) dies instead.
|
||||||
|
services.earlyoom.enable = true;
|
||||||
|
|
||||||
# The NixOS manual is a big from-source build on i686 for a page nobody reads.
|
# The NixOS manual is a big from-source build on i686 for a page nobody reads.
|
||||||
documentation.nixos.enable = false;
|
documentation.nixos.enable = false;
|
||||||
|
|
|
||||||
|
|
@ -23,9 +23,9 @@
|
||||||
fsType = "ext4";
|
fsType = "ext4";
|
||||||
};
|
};
|
||||||
|
|
||||||
swapDevices = [
|
# sda2 (uuid 32ca4097-…) is swap but left off: paging a browser to this disk
|
||||||
{ device = "/dev/disk/by-uuid/32ca4097-0ea0-4594-998c-c5756591530e"; }
|
# froze the box for minutes. zram only, so earlyoom fires before a thrash.
|
||||||
];
|
swapDevices = [ ];
|
||||||
|
|
||||||
nixpkgs.hostPlatform = "i686-linux";
|
nixpkgs.hostPlatform = "i686-linux";
|
||||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue