鲲鹏社区首页
中文
注册
我要评分
文档获取效率
文档正确性
内容完整性
文档易理解
在线提单
论坛求助

配置memory bandwidth

通过XML直接配置虚拟机memory bandwidth,使MPAM能够通过XML配置参数提供限制进程最大内存使用带宽的功能。

memory bandwidth配置的XML如下所示。

1
2
3
4
5
<cputune>
    <memorytune vcpus='0-15'>
      <node id='0' bandwidth='60' min_bandwidth='10' hardlimit='0' priority='2'/>
    </memorytune>
</cputune>

参数说明如下:

  • vcpus:需要限制的vCPU列表。
  • id:NUMA ID。
  • bandwidth:必选,对应MPAM的MB,有效值范围[1,100]。
  • min_bandwidth:可选,对应MPAM的MBMIN,有限制范围[0,100]。
  • hardlimit:可选,对应MPAM的MBHDL,有效值0或者1。
  • priority:可选,对应MPAM的MBPRI,有效值[0,7]。

    关于MPAM参数的更多内容请参见MPAM参数介绍