Skip to content

Commit

Permalink
delft/common: use hardware.ksm abstraction
Browse files Browse the repository at this point in the history
  • Loading branch information
mweinelt committed Jan 28, 2024
1 parent 8c0a1c6 commit 003ee5c
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions delft/common.nix
Original file line number Diff line number Diff line change
Expand Up @@ -71,17 +71,7 @@ with lib;
];

# Enable Kernel Samepage Merging (reduces memory footprint of VMs).
systemd.services."enable-ksm" =
{ description = "Enable Kernel Same-Page Merging";
wantedBy = [ "multi-user.target" ];
after = [ "systemd-udev-settle.service" ];
script =
''
if [ -e /sys/kernel/mm/ksm ]; then
echo 1 > /sys/kernel/mm/ksm/run
fi
'';
};
hardware.ksm.enable = true;

# Disable the systemd-journald watchdog. The default timeout (1min)
# can easily be triggered on our slow, heavily-loaded disks. And
Expand Down

0 comments on commit 003ee5c

Please sign in to comment.