Skip to content

Commit

Permalink
stop google services
Browse files Browse the repository at this point in the history
  • Loading branch information
bra-fsn committed Nov 15, 2024
1 parent 344f306 commit 654eb56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inspector/lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@
systemctl restart docker
# stop some services to preserve memory
snap stop amazon-ssm-agent >> /tmp/output 2>&1
systemctl stop chrony acpid fwupd cron multipathd snapd systemd-timedated unattended-upgrades polkit packagekit systemd-udevd hv-kvp-daemon.service >> /tmp/output 2>&1
systemctl stop chrony acpid fwupd cron multipathd snapd systemd-timedated google-osconfig-agent google-guest-agent networkd-dispatcher unattended-upgrades polkit packagekit systemd-udevd hv-kvp-daemon.service >> /tmp/output 2>&1
# remove unwanted packages
apt-get autoremove -y apport fwupd unattended-upgrades snapd packagekit walinuxagent >> /tmp/output 2>&1
apt-get autoremove -y apport fwupd unattended-upgrades snapd packagekit walinuxagent google-osconfig-agent >> /tmp/output 2>&1
# https://github.com/NVIDIA/nvidia-container-toolkit/issues/202
# on some machines docker initialization times out with a lot of GPUs. Enable persistence mode to overcome that.
nvidia-smi -pm 1
Expand Down

0 comments on commit 654eb56

Please sign in to comment.