我有一个KVM来宾配置,其中cpu放置配置如下:
1
既然我没有指定cpuset,我正在阅读libvirt文档并看到以下内容:
“如果未指定cpuset和placement,或者placement是”static“,但未指定cpuset,则域进程将固定到所有可用的物理CPU.”
这到底是什么意思?我知道CPU固定说明您只能在指定的特定CPU上运行任务. “固定”到所有可用的物理CPU是什么意思?
解决方法:
What does it mean to be “pinned” to all available physical CPUs?
这意味着它可以在主机系统上物理上可用的任何CPU上自由运行.
来自KVM文档的原始段落……
The optional attribute placement can be used to indicate the CPU placement mode for domain process, its value can be either static or auto, which defaults to placement, or numatune, or static if cpuset is specified. auto indicates the domain process will be pinned to the advisory nodeset from querying numad, and the value of attribute cpuset will be ignored if it’s specified. If both cpuset and placement are not specified, or if placement is static, but no cpuset is specified, the domain process will be pinned to all the available physical CPUs.
参考
标签:performance,linux,cpu,virtualization,kvm
来源: https://codeday.me/bug/20190813/1647176.html