diff --git a/morph/grid/hro-cloud/storage001-hardware.nix b/morph/grid/hro-cloud/storage001-hardware.nix index 37d04225462c5f176c85e15e4e4272cc68d19c3e..b2ebd742a69509706301ec547a9664833ef1c2d7 100644 --- a/morph/grid/hro-cloud/storage001-hardware.nix +++ b/morph/grid/hro-cloud/storage001-hardware.nix @@ -12,6 +12,7 @@ boot.initrd.kernelModules = [ ]; boot.kernelModules = [ "kvm-intel" ]; boot.extraModulePackages = [ ]; + boot.kernel.sysctl = { "vm.swappiness" = 1; }; fileSystems."/" = { device = "/dev/disk/by-uuid/d0837e6f-72cb-4ffa-85ba-fd57bbbd9a97"; diff --git a/morph/grid/hro-cloud/storage002-hardware.nix b/morph/grid/hro-cloud/storage002-hardware.nix index c011e02f86e5da2e0f17c356e4e7507f6af97376..15cdbba331b49a9d3dc8f4deb125d5e478b375fd 100644 --- a/morph/grid/hro-cloud/storage002-hardware.nix +++ b/morph/grid/hro-cloud/storage002-hardware.nix @@ -12,7 +12,7 @@ boot.initrd.kernelModules = [ ]; boot.kernelModules = [ "kvm-intel" ]; boot.extraModulePackages = [ ]; - boot.kernel.sysctl = { "vm.swappiness" = 0; }; + boot.kernel.sysctl = { "vm.swappiness" = 1; }; fileSystems."/" = { device = "/dev/disk/by-uuid/c8d29070-c5d3-4cfb-9bb2-c14d3727c45b"; diff --git a/morph/grid/hro-cloud/storage003-hardware.nix b/morph/grid/hro-cloud/storage003-hardware.nix index 3e4d5d8b14b753e06dc7e5fc94fa898455c4dbcc..1a4bc3f764f68503945b804e3d756e2de2b1dbec 100644 --- a/morph/grid/hro-cloud/storage003-hardware.nix +++ b/morph/grid/hro-cloud/storage003-hardware.nix @@ -12,6 +12,7 @@ boot.initrd.kernelModules = [ ]; boot.kernelModules = [ "kvm-intel" ]; boot.extraModulePackages = [ ]; + boot.kernel.sysctl = { "vm.swappiness" = 1; }; fileSystems."/" = { device = "/dev/disk/by-uuid/8f88c0f1-3aef-41ec-bfd7-55b4ba6c1341"; diff --git a/morph/grid/testing/testing001-hardware.nix b/morph/grid/testing/testing001-hardware.nix index 5dceb16af1deaeb4668e67cbb65715ae79aa55d9..3e6b85aaace9395add1413e18ba6beb63580739d 100644 --- a/morph/grid/testing/testing001-hardware.nix +++ b/morph/grid/testing/testing001-hardware.nix @@ -1,4 +1,5 @@ { + boot.kernel.sysctl = { "vm.swappiness" = 1; }; boot.supportedFilesystems = [ "zfs" ]; networking.hostId = "10000000"; diff --git a/morph/lib/hardware-vagrant.nix b/morph/lib/hardware-vagrant.nix index c13cef856552e43e1bdfcab8bffce487dd4c0887..10c198a1c34430473fd4f4d01361937faea2d71d 100644 --- a/morph/lib/hardware-vagrant.nix +++ b/morph/lib/hardware-vagrant.nix @@ -20,7 +20,7 @@ boot.loader.grub.device = "/dev/vda"; boot.initrd.availableKernelModules = [ "ata_piix" "virtio_pci" "virtio_blk" "sd_mod" "sr_mod" ]; - boot.kernel.sysctl = { "vm.swappiness" = 0; }; + boot.kernel.sysctl = { "vm.swappiness" = 1; }; boot.kernelParams = [ "console=tty0" "console=ttyS0,115200" ]; # remove the fsck that runs at startup. It will always fail to run, stopping diff --git a/morph/lib/issuer-monitoring-ovh.nix b/morph/lib/issuer-monitoring-ovh.nix index 51a51afdfa913744a0bbe9116e6ed3c8786250a3..45e6c80f40e753185dc941b2ec906590b6877a1f 100644 --- a/morph/lib/issuer-monitoring-ovh.nix +++ b/morph/lib/issuer-monitoring-ovh.nix @@ -4,9 +4,9 @@ boot.loader.grub.device = "/dev/sda"; boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "xen_blkfront" ]; boot.initrd.kernelModules = [ "nvme" ]; - fileSystems."/" = { device = "/dev/sda1"; fsType = "ext4"; }; - + boot.kernel.sysctl = { "vm.swappiness" = 1; }; + fileSystems."/" = { device = "/dev/sda1"; fsType = "ext4"; }; swapDevices = [ { device = "/var/swapfile"; diff --git a/morph/lib/issuer-payments-ovh.nix b/morph/lib/issuer-payments-ovh.nix index 6408645038566a6be038899e27df9dd81e511004..7b13ac0f419622130960f566f10a1458645aaeff 100644 --- a/morph/lib/issuer-payments-ovh.nix +++ b/morph/lib/issuer-payments-ovh.nix @@ -2,6 +2,8 @@ imports = [ (modulesPath + "/profiles/qemu-guest.nix") ]; boot.loader.grub.device = "/dev/sda"; + boot.kernel.sysctl = { "vm.swappiness" = 1; }; + fileSystems."/" = { device = "/dev/sda3"; fsType = "ext4"; }; swapDevices = [ {