Memory autoballoon (host side)

This commit is contained in:
Mikhail Klementev 2020-01-05 09:02:03 +00:00
parent 573be66059
commit 806448df17
No known key found for this signature in database
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; [ environment.systemPackages = with pkgs; [
appvm virtmanager chromium appvm virtmanager chromium