Select CPU/Core type for container

Hello,

I was reading the docker documentation and I saw there is a setting we can use to limit the specific CPUs or cores a container can use. But if my intel i7 13th gen CPU has power cores and efficiency cores and using Ubuntu 2023.10.
How do I know what kind of core will the container get assigned ?
Could it happen that a container get assigned to an efficiency core and the container performance be impacted? If this could happen, how could we ensure the container only gets power cores?

Thanks in advance

You can use the “--cpuset-cpus” option also mentioned in the documentation

I use it in my tutorial too:

That way you can use a specific CPU by referring to its number.

@rimelek And --cpuset-cpus is only available with group v2. Am I correct?

To be honest, I’m not sure, but I don’t know why it would be the case. I think I used it before CGroup v2, but I can’t confirm it. Do you have a machine with Cgroup v1 where it doesn’t work?