Hi Guys
I noticed recently that my LXC containers have a new option called "Cores". I previously had an LXC container configured with a CPU limit of 1 on a 4 core box and the end result was that the workload was spread across all cores but each one was loaded at about 25% - This resulted in overall 25% of the CPU being used but no one core was maxed out.
If I change this around to Cores 1 CPU Limit unlimited then the container maxes out 1 single core and indicentally the container only sees the 1 core its assigned.
This is absolutely fine
I'm just curious though as to when I'd want to assign whole actual cores to a container instead of letting things get scheduled by the host.
I noticed recently that my LXC containers have a new option called "Cores". I previously had an LXC container configured with a CPU limit of 1 on a 4 core box and the end result was that the workload was spread across all cores but each one was loaded at about 25% - This resulted in overall 25% of the CPU being used but no one core was maxed out.
If I change this around to Cores 1 CPU Limit unlimited then the container maxes out 1 single core and indicentally the container only sees the 1 core its assigned.
This is absolutely fine
I'm just curious though as to when I'd want to assign whole actual cores to a container instead of letting things get scheduled by the host.