linux – KVM中的CPU放置
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了linux – KVM中的CPU放置,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含1123字,纯文字阅读大概需要2分钟。
内容图文
![linux – KVM中的CPU放置](/upload/InfoBanner/zyjiaocheng/958/515008e327344d50808ec23377d4e88d.jpg)
我有一个KVM来宾配置,其中cpu放置配置如下:
<vcpu placement='static'>1</vcpu>
既然我没有指定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.
资料来源:20.4. CPU allocation
参考
内容总结
以上是互联网集市为您收集整理的linux – KVM中的CPU放置全部内容,希望文章能够帮你解决linux – KVM中的CPU放置所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。