LXD High Load on host Server

Hi, I’m facing a very weird problem. My load average is always remain 5+ even if i stop all vm. only after stopping LXD it becomes normal (less than 0.20). I have checked syslog and everything there is no sign of error. Do anyone have any idea what can be the reason? i have also checked iotop and nothing suspicious there.

i have used container before and my load average never exceed 2. I have recently removed the containers and started using VM and this happened. Is there any easy way to convert three vm to containers or create three containers using these three VM’s data in the same/different server?. I know its possible to migrate using move or copy but i want to migrate and change vm to container during the migration. please guide me.

I’m using lxd 6.1 latest stable version.

Thanks in advance

Does LXD show up in top persistently as using CPU/load?

@greenwebbd we have very little information about your affected system but since you mentioned high load I thought it could be Bug #2057693 “Activating autotrim results in high load average d...” : Bugs : zfs-linux package : Ubuntu if you are using ZFS.

2 Likes

@sdeziel1 Thanks a lot for the bug report. Yes i saw it in the process for last few weeks and its a continuous process in D state. How to solve it? Should i disable autotrim?

@tomp thanks for your prompt response. Lxd showing inside top but cpu usage is not that much. I guess its happening due to autotrim bugs. I’m using zfs and i saw autotrim related process in D state for long time. Here is the process photo

It’s a 6 core 12 thread server running at 4500mhz with 64 gb ram and 75 gb swap and 512 gb nvme software raid 1 disk.
Top -C and Htop with thread


And here is the result of ps aux | grep -w D<

So those are artificially increasing load but CPU isn’t burned due to them. Annoying but not actual resource waste is my understanding of that bug.

2 Likes