配置Cache
通过XML直接配置虚拟机Cache,使MPAM能够通过XML配置参数提供限制进程使用Cache Line数量的功能。
Cache配置的XML如下所示。
1 2 3 4 5 6 | <cputune> <cachetune vcpus='0-15'> <cache id='0' level='3' type='both' size='2560' unit='KiB'/> <cache id='0' level='3' type='priority' size='2'/> </cachetune> </cputune> |
参数说明如下:
- vcpus:需要限制的vCPU列表。
- id:NUMA ID。
- level:Cache Level,目前仅支持L3。
- type:参数类型,有效值有both、code、data以及priority,分别对应MPAM中的L3、L3CODE、L3DATA以及L3PRI。
- size:type为priority时是优先级值,有效值0-3。type为其他类型时,size与unit一起组成Cache Line大小。
- unit:type为priority时缺省,其他类型时是Cache Line单位,有效值有KiB、MiB以及GiB,默认值为KiB。
父主题: 配置虚拟机XML