1
|
# echo 0 > /proc/sys/kernel/numa_balancing
|
1
|
echo 1 > /proc/sys/kernel/numa_balancing
|
1
2
3
4
5
6
|
<
numatune
>
<
memory
mode
=
'strict'
placement
=
'auto'
/>
</
numatune
>
<
numatune
>
<
memory
mode
=
'strict'
nodeset
=
'0,2-3'
/>
</
numatune
>
|
1
2
|
<
vcpu
placement
=
'auto'
>8</
vcpu
>
<
vcpu
placement
=
'static'
cpuset
=
'0-10,5'
>8</
vcpu
>
|
1
|
<
vcpu
placement
=
'auto'
current
=
'8'
>32</
vcpu
>
|
1
2
3
4
5
6
|
<
cputune
>
<
vcpupin
vcpu
=
"0"
cpuset
=
"1-4,2"
/>
<
vcpupin
vcpu
=
"1"
cpuset
=
"0,1"
/>
<
vcpupin
vcpu
=
"2"
cpuset
=
"2,3"
/>
<
vcpupin
vcpu
=
"3"
cpuset
=
"0,4"
/>
</
cputune
>
|
1
2
3
|
<
cputune
>
<
emulatorpin
cpuset
=
"1-3"
/>
</
cputune
>
|
1
|
virsh emulatorpin rhel7 1-3
|
1
2
3
4
5
6
7
8
|
<
cpu
>
...
<
numa
>
<
cell
cpus
=
'0-3'
memory
=
'512000'
/>
<
cell
cpus
=
'4-7'
memory
=
'512000'
/>
</
numa
>
...
</
cpu
>
|
1
2
3
|
<
memoryBacking
>
<
nosharepages
/>
</
memoryBacking
>
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
<
cpus
>
<
arch
name
=
'x86'
>
<!-- vendor definitions -->
<
vendor
name
=
'Intel'
string
=
'GenuineIntel'
/>
<
vendor
name
=
'AMD'
string
=
'AuthenticAMD'
/>
<!-- standard features, EDX -->
<
feature
name
=
'fpu'
>
<!-- CPUID_FP87 -->
<
cpuid
function
=
'0x00000001'
edx
=
'0x00000001'
/>
</
feature
>
<
feature
name
=
'vme'
>
<!-- CPUID_VME -->
<
cpuid
function
=
'0x00000001'
edx
=
'0x00000002'
/>
</
feature
>
...
<!-- models -->
<
model
name
=
'486'
>
<
feature
name
=
'fpu'
/>
<
feature
name
=
'vme'
/>
<
feature
name
=
'pse'
/>
</
model
>
...
<
model
name
=
'Haswell'
>
<
model
name
=
'SandyBridge'
/>
<
feature
name
=
'fma'
/>
<
feature
name
=
'pcid'
/>
<
feature
name
=
'movbe'
/>
<
feature
name
=
'fsgsbase'
/>
<
feature
name
=
'bmi1'
/>
<
feature
name
=
'hle'
/>
<
feature
name
=
'avx2'
/>
<
feature
name
=
'smep'
/>
<
feature
name
=
'bmi2'
/>
<
feature
name
=
'erms'
/>
<
feature
name
=
'invpcid'
/>
<
feature
name
=
'rtm'
/>
</
model
>
....
|
1
2
3
4
5
|
<
cpu
mode
=
'custom'
match
=
'exact'
>
<
model
fallback
=
'allow'
>kvm64</
model
>
...
<
feature
policy
=
'require'
name
=
'monitor'
/>
</
cpu
>
|
1
|
<
cpu
mode
=
'host-model'
/>
|
1
|
<
cpu
mode
=
'host-passthrough'
/>
|
1
2
3
4
5
6
|
processor : 3
vendor_id : GenuineIntel
cpu family : 6
model : 44
model name : Westmere E56xx/L56xx/X56xx (Nehalem-C)
...
|
1
2
3
4
5
|
processor : 3
vendor_id : GenuineIntel
cpu family : 6
model : 44
model name : Intel(R) Xeon(R) CPU X5650 @ 2.67GHz
|
1
|
virsh setvcpus centos7 5 --live
|
1
|
modprobe kvm-intel nested=1
|
1
|
options kvm-intel nested=y
|
1
2
|
cat
/sys/module/kvm_intel/parameters/nested
Y
|
1
|
<cpu mode=
'host-passthrough'
/>
|