Skip to content

Instantly share code, notes, and snippets.

@ArseniyShestakov
Last active July 6, 2016 04:28
Show Gist options
  • Save ArseniyShestakov/5b0d15256f9cb0285c81a138bd03534a to your computer and use it in GitHub Desktop.
Save ArseniyShestakov/5b0d15256f9cb0285c81a138bd03534a to your computer and use it in GitHub Desktop.
CPU pinning for FX8350 (Intel has different core / processor pairs)
This is how you check physical CPU locations:
cat /proc/cpuinfo | grep "\(core id\|processor\)"
<vcpu placement='static'>6</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='4'/>
<vcpupin vcpu='5' cpuset='5'/>
<emulatorpin cpuset="6-7"/>
<iothreadpin iothread="1" cpuset="6"/>
<iothreadpin iothread="2" cpuset="7"/>
</cputune>
<iothreads>2</iothreads>
<vcpu placement='static'>8</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='4'/>
<vcpupin vcpu='5' cpuset='5'/>
<vcpupin vcpu='6' cpuset='6'/>
<vcpupin vcpu='7' cpuset='7'/>
<iothreadpin iothread="1" cpuset="0"/>
<iothreadpin iothread="2" cpuset="1"/>
<iothreadpin iothread="3" cpuset="2"/>
<iothreadpin iothread="4" cpuset="3"/>
<iothreadpin iothread="5" cpuset="4"/>
<iothreadpin iothread="6" cpuset="5"/>
<iothreadpin iothread="7" cpuset="6"/>
<iothreadpin iothread="8" cpuset="7"/>
</cputune>
<iothreads>8</iothreads>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment