I am currently working on a little project setting up a pair of Raspberry Pis to try out Docker Swarm to replace my current huge Intel server. I installed Ubuntu server to keep my servers the same and keep the management overhead, but the initial load on the server was very high. I managed to reduce it a fair bit by the following:
- Removing the
lxd
snap and uninstallingsnapd
- Removing
modemmanager
, which runs constantly in case I hook up a 4G modem. Which I won’t. - Removing packagekit, which apparently provides a standard interface for installing packages but I’ve also never heard of it.
- Disabling unattended upgrades, since I run those myself for predictable update loads
I wish I was cool and had good metrics of before and after, but I did save a couple hundred MB of RAM, which is significant on a Pi3B with 1GB of RAM. Altogether the commands I ran were:
snap remove lxd
apt remove snapd packagekit modemmanager
dpkg-reconfigure unattended-upgrades