virtcontainers: fix invalid CPU topology#1606
Conversation
|
/test |
sockets * cores * threads should be equal to maxcpus otherwise a
warning is thrown: 'warning: Invalid CPU topology deprecated:
sockets * cores * threads != maxcpus'
This warning in the future will be an error and won't be possible to run
kata containers.
fixes kata-containers#1605
Signed-off-by: Julio Montes <julio.montes@intel.com>
c06fabd to
fa5de87
Compare
|
/test |
| smp := govmmQemu.SMP{ | ||
| CPUs: vcpus, | ||
| Sockets: vcpus, | ||
| Sockets: maxvcpus, |
There was a problem hiding this comment.
(thought I'd left this question already - maybe it was on a parallel PR or Issue???)
@devimc - does this have any performance impacts? iirc, way back when we first played with topologies there was discussion that different topologies could affect performance. Did you measure with the metrics report by chance?
There was a problem hiding this comment.
@grahamwhaley metrics-CI is happy, do you want me to run a specific test?
|
@devimc - nope, thats fine. Fair point. Maybe it made more of a difference when we used to set the default ncpu to >=4 etc. Now we set to 1 and use hotplug, maybe we won't notice (at least not in the default container case). Hmm, maybe we need some metrics using ncpu > 1 :-) Just for ref, metrics looks good with: |
|
Nudged fedora CI rebuild - looked like a net timeout. |
sockets * cores * threads should be equal to maxcpus otherwise a
warning is thrown: 'warning: Invalid CPU topology deprecated:
sockets * cores * threads != maxcpus'
This warning in the future will be an error and won't be possible to run
kata containers.
fixes #1605
Signed-off-by: Julio Montes julio.montes@intel.com