Memory autoballoon (host side)

This commit is contained in:
dump_stack() 2020-01-05 09:02:03 +00:00
parent 573be66059
commit 806448df17
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

View File

@ -44,7 +44,21 @@ in {
'';
};
# TODO run ${appvm}/bin/appvm autoballoon each second
systemd.user.services."autoballoon" = {
serviceConfig.StartLimitBurst = 64;
script = "${appvm}/bin/appvm autoballoon";
};
systemd.user.timers."autoballoon" = {
description = "Autoupdate resolution crutch";
timerConfig = {
OnBootSec = "1s";
OnUnitInactiveSec = "1s";
Unit = "autoballoon.service";
AccuracySec = "1us";
};
wantedBy = ["timers.target"];
};
environment.systemPackages = with pkgs; [
appvm virtmanager chromium