I have an ubuntu 18.04 desktop with 12GB of RAM.
This morning I noticed a dialog saying Chrome had crashed, but the system didn’t have enough free ram to analyze it. Evidently 12GB isn’t enough for whatever I’m doing. After killing off the apps, I looked at ps to see what behind-the-scenes thingy was taking up RAM (RSS), and the #1 user was… lxd. Here are the processes with more than 100MB RSS:
dank 4688 0.0 1.3 1394392 168492 tty2 SLl+ Sep09 0:27 /usr/bin/gnome-software --gapplication-service
dank 4462 4.0 3.1 3814640 381572 tty2 Sl+ Sep09 419:03 /usr/bin/gnome-shell
root 2167 2.3 5.2 1990008 644532 ? Ssl Sep09 246:03 /usr/lib/lxd/lxd --group lxd --logfile=/var/log/lxd/lxd.log
Half an hour later, lxd’s vss and rss had both increased:
root 2167 2.3 5.3 1991324 649188 ? Ssl Sep09 247:17 /usr/lib/lxd/lxd --group lxd --logfile=/var/log/lxd/lxd.log
Being someone who still remembers buying 16Kb DRAM chips, it’s somewhat horrifying to me that a daemon I’m not even using, at all, is taking up over half a gigabyte of RAM.
Wuffo is lxd using some much RAM in between doing its periodic image update tasks? Is it leaking?
dank@thinky:~/oblong$ lxd --version
3.0.1
dank@thinky:~/oblong$ apt-cache policy lxd
lxd:
Installed: 3.0.1-0ubuntu1~18.04.1