Changes

Jump to navigation Jump to search

Performance Optimization

641 bytes added, 06:18, 2 March 2020
no edit summary
=== Assigning CPU Affinity ===
To tie cores/threads to a VM open the VM's .XML file and use find the <code>vcpu placement</code> section. Beneath this you will append <code>cputune</code> and modify it's configuration:<syntaxhighlight lang=text><vcpu placement='static'>16</vcpu> <cputune> <vcpupin vcpu='0' cpuset='0'/> <vcpupin vcpu='1' cpuset='1'/> <vcpupin vcpu='2' cpuset='2'/> <vcpupin vcpu='3' cpuset='3'/> <vcpupin vcpu='4' cpuset='8'/> <vcpupin vcpu='5' cpuset='9'/> <vcpupin vcpu='6' cpuset='10'/> <vcpupin vcpu='7' cpuset='11'/> </cputune></codesyntaxhighlight> tagCPU tune works on a per thread basis. If NUMA Node 0 or NUMA Node 1 were threads 0-3,8-11 then you would assign these to the VM's vCPU's with the above example.
=== Verifying CPU Affinity ===
172

edits

Navigation menu