14
VCPU: CPU Affinity
----------------------------------
0: 2-7
1: 2-7
# Display the bindings between vCPUs and physical CPUs for VM centos7.
<Sysname> display vmcpupin vm centos7
VCPU: CPU Affinity
----------------------------------
0: 2-7
Table 4 Command output
VCPU vCPU core number.
CPU Affinty Physical CPU core number.
display vmcpu-usage vm
Use display vmcpu-usage vm to display CPU usage information about a VM.
Syntax
display vmcpu-usage vm vm-name
Views
Any view
Predefined user roles
network-admin
Parameters
vm-name: Specifies a VM by its name. The vm-name argument is a case-sensitive string of 1 to 30
characters.
Usage guidelines
Use this command only for a running VM.
Examples
# Display CPU usage information about VM centos7.
<Sysname> display vmcpu-usage vm centos7
CpuNum Cpu-Usage
---------------------------------------
0 27%
Table 5 Command output
CpuNum CPU number.
Cpu-Usage CPU usage.