Linux Mint 20, LXD 4.11, 6c/12t Intel i7
For a quick test, I created three containers:
test with 4 cpus (after
lxc launch ubuntu:lts testI also ran
lxc config set test limits.cpu 4)
- test2 with 8 cpus (same, but with 8 cpus)
- test3 with 8 cpus (same, but with 8 cpus)
I then ran
lxc exec <container> bash for each of these containers.
On test, I just monited online CPU cores from
lscpu command. Got
On-line CPU(s) list: 0,5,7,10 all the time.
For test2 and test3 I not only monitored online CPU cores, but also ran
stress --cpu 8. The on-line core list for test2 and test3 was same, and remained same once the load was applied (
On-line CPU(s) list: 1-4,6,8,9,11), which means htop on host showed less than 30% usage on 4 threads.
So I would like to ask, how to automatically spread the load between unused cores? Here is written that LXD supports dynamic load balancing when using core count instead of specific CPUs - how can I enable that?