Editing Performance Optimization

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 104: Line 104:
  
 
=== Assigning CPU Affinity ===
 
=== Assigning CPU Affinity ===
To tie cores/threads to a VM open the VM's .XML file and find the <code>vcpu placement</code> section. Beneath this you will append <code>cputune</code> and modify it's configuration:
+
To tie cores/threads to a VM open the VM's .XML file and use the <code><cputune></code> tag.
<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>
 
</syntaxhighlight>
 
CPU 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 ===
 
=== Verifying CPU Affinity ===

Please note that all contributions to Looking Glass may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Looking Glass:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)